i3blocks scripts added

This commit is contained in:
Luke Smith
2018-04-22 17:39:23 -07:00
parent 84557167e6
commit cec92894fc
8 changed files with 51 additions and 4 deletions

12
.scripts/i3volume Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
case $BLOCK_BUTTON in
1) $TERMINAL -e ncpamixer & disown ;;
3) pamixer -t ;;
4) pamixer -i 5 ;;
5) pamixer -d 5 ;;
esac
printpastatus() { [[ $(pamixer --get-mute) = "true" ]] && echo -n 🔇 && exit
echo 🔊 $(pamixer --get-volume)% ;}
printpastatus