Update openbox config

This commit is contained in:
Smirnov Alexandr 2021-02-26 09:52:43 +02:00
parent 2a67211908
commit 8511aa4130
9 changed files with 57 additions and 12 deletions

17
script/volume Executable file
View file

@ -0,0 +1,17 @@
#!/bin/sh
CHK_MUTE() { amixer -D pulse get Master | grep '%' | grep -oE '[^ ]+$' | grep off; }
VOLUME="$(amixer -D pulse get Master | grep '%' | head -n 1 | awk -F'[' '{print $2}' | awk -F'%' '{print $1}';)"
case $1 in
percent)
if CHK_MUTE &> /dev/null
then
echo ""
else
echo " $VOLUME%"
fi
;;
up) amixer sset Master 2%+ ;;
down) amixer sset Master 2%- ;;
mute) amixer sset Master toggle ;;
esac

3
script/wifi-signal Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
SIGNAL="$(cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*')"
echo " $SIGNAL%"