simplestatus improvements

This commit is contained in:
randomuser 2022-06-18 15:33:14 -05:00
parent 2090938b98
commit 513f9a4e87
3 changed files with 14 additions and 4 deletions

View File

@ -1,8 +1,9 @@
module power 7 30
module time 7 30
module date 7 30
module bspwm 10 1000000
module volume 12 30
module bspwm 10 30
order bspwm date time power
order bspwm date time volume power
format %{l}&%{c}& &%{r}&
format %{l}&%{r}& & & &

View File

@ -1,5 +1,5 @@
#!/bin/sh
printf "%s" $(date '+%Y-%m-%d')
printf "%s" $(date '+%m-%d')
exit

9
simplestatus/volume Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
if [ "$(ps aux | grep pulseaudio | wc -l)" -eq 2 ]; then
text="$(pactl list sinks | awk -F' ' '$1 == "Volume:" {print $5}')"
printf "pv%s" "$text"
else
text="$(amixer | grep '^ Front' | awk -F'[' '{ ORS = ""; print substr($2, 1, 3); exit }')"
printf "av%s" "$text"
fi