Switch to bspwm
This commit is contained in:
parent
4133deacdb
commit
d77432d398
10 changed files with 297 additions and 0 deletions
16
panel/volume
Executable file
16
panel/volume
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#/bin/sh
|
||||
|
||||
prefix=$1
|
||||
suffix=$2
|
||||
|
||||
while [ true ]; do
|
||||
echo -n "$prefix"
|
||||
volume=$(
|
||||
pulseaudio-ctl | grep 'Volume level' | cut -d: -f2 | tr -d ' ' \
|
||||
| sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
|
||||
)
|
||||
echo -n $volume
|
||||
echo -n "$suffix"
|
||||
echo
|
||||
sleep 1
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue