Update configs

This commit is contained in:
LordMathis
2018-06-10 20:59:46 +02:00
parent de152d1212
commit 32d9cae95f
5 changed files with 27 additions and 29 deletions

View File

@@ -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%
}

View File

@@ -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