xinitrc: add current keyboard layout to dwm status

This commit is contained in:
dogeystamp 2022-07-05 17:42:20 -04:00
parent aee8d23b7e
commit d20eb1e85c
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -25,9 +25,10 @@ while true; do
DATE=$(date +'%H:%M:%S %a %b %d')
TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C"
BAT="$(acpi | cut -f4 -d " " | tr -d ',')"
KEY="$(xkblayout-state print '%s')"
xsetroot -name " $DATE // $TEMP, $BAT "
sleep 2
xsetroot -name " $DATE // $TEMP, $BAT // $KEY"
sleep 1
done &
dwm