From 5c4a2489186232248995909ba35105053efa3d60 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Wed, 7 Aug 2024 09:42:07 -0300 Subject: Added dnd mode and general i3 fixes --- .config/i3/i3status_script.delete.later.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 .config/i3/i3status_script.delete.later.sh (limited to '.config/i3/i3status_script.delete.later.sh') diff --git a/.config/i3/i3status_script.delete.later.sh b/.config/i3/i3status_script.delete.later.sh new file mode 100755 index 00000000..b7788360 --- /dev/null +++ b/.config/i3/i3status_script.delete.later.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# +# | '__/ _ \ / _` / __| Roger González +# | | | (_) | (_| \__ \ https://rogs.me +# |_| \___/ \__, |___/ https://git.rogs.me +# |___/ +# +i3status --config ~/.config/i3status/config | while : +do + read line + LG=$(setxkbmap -query | awk '/layout/{print $2}') + if [ $LG == "es" ] + then + dat="[{ \"full_text\": \"LANG: $LG\", \"color\":\"#88b090\" }," + else + dat="[{ \"full_text\": \"LANG: $LG\", \"color\":\"#e89393\" }," + fi + echo "${line/[/$dat}" || exit 1 +done -- cgit v1.2.3