simplestatus improvements
This commit is contained in:
parent
2090938b98
commit
513f9a4e87
|
@ -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}& & & &
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
printf "%s" $(date '+%Y-%m-%d')
|
||||
printf "%s" $(date '+%m-%d')
|
||||
|
||||
exit
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue