xinitrc: add current keyboard layout to dwm status
This commit is contained in:
parent
aee8d23b7e
commit
d20eb1e85c
@ -25,9 +25,10 @@ while true; do
|
|||||||
DATE=$(date +'%H:%M:%S %a %b %d')
|
DATE=$(date +'%H:%M:%S %a %b %d')
|
||||||
TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C"
|
TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C"
|
||||||
BAT="$(acpi | cut -f4 -d " " | tr -d ',')"
|
BAT="$(acpi | cut -f4 -d " " | tr -d ',')"
|
||||||
|
KEY="$(xkblayout-state print '%s')"
|
||||||
|
|
||||||
xsetroot -name " $DATE // $TEMP, $BAT "
|
xsetroot -name " $DATE // $TEMP, $BAT // $KEY"
|
||||||
sleep 2
|
sleep 1
|
||||||
done &
|
done &
|
||||||
|
|
||||||
dwm
|
dwm
|
||||||
|
Loading…
Reference in New Issue
Block a user