mirror of
https://github.com/lordmathis/dotfiles.git
synced 2025-11-06 01:34:22 +00:00
Update configs
This commit is contained in:
@@ -2,16 +2,6 @@
|
||||
|
||||
sink=0
|
||||
|
||||
show_active() {
|
||||
if pacmd list-sinks | grep active | head -n 1 | grep -q speaker; then
|
||||
echo "speaker"
|
||||
elif pacmd list-sinks | grep active | head -n 1 | grep headphones; then
|
||||
echo "headphones"
|
||||
else
|
||||
echo "hdmi"
|
||||
fi
|
||||
}
|
||||
|
||||
volume_up() {
|
||||
pactl set-sink-volume $sink +1%
|
||||
}
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
updates_arch=$(checkupdates | wc -l)
|
||||
updates_aur=$(pacaur -k | wc -l)
|
||||
|
||||
updates=$(("$updates_arch" + "$updates_aur"))
|
||||
|
||||
if [ "$updates" -gt 0 ]; then
|
||||
echo " $updates"
|
||||
if [ "$updates_arch" -gt 0 ]; then
|
||||
echo " $updates_arch"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user