mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update openbox config
This commit is contained in:
parent
2a67211908
commit
8511aa4130
9 changed files with 57 additions and 12 deletions
17
script/volume
Executable file
17
script/volume
Executable 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
3
script/wifi-signal
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
SIGNAL="$(cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*')"
|
||||
echo " $SIGNAL%"
|
||||
Loading…
Add table
Add a link
Reference in a new issue