diff options
author | Roger Gonzalez <roger@rogs.me> | 2024-08-07 09:42:07 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2024-08-07 09:42:07 -0300 |
commit | 5c4a2489186232248995909ba35105053efa3d60 (patch) | |
tree | 941cb24aa07d27b06ae4c74a477f9c9d76212ab3 /.config/i3/i3status_script.delete.later.sh | |
parent | 2e9544cb385877770c1f3a71e209a8743a4a0793 (diff) |
Added dnd mode and general i3 fixes
Diffstat (limited to '.config/i3/i3status_script.delete.later.sh')
-rwxr-xr-x | .config/i3/i3status_script.delete.later.sh | 19 |
1 files changed, 19 insertions, 0 deletions
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 |