From d20eb1e85c6349a9d49061432a0bdffa58880732 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 5 Jul 2022 17:42:20 -0400 Subject: [PATCH] xinitrc: add current keyboard layout to dwm status --- src/.xinitrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/.xinitrc b/src/.xinitrc index e623747..fa2c624 100755 --- a/src/.xinitrc +++ b/src/.xinitrc @@ -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