summaryrefslogtreecommitdiff
path: root/.config/i3/i3status_script.delete.later.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/i3/i3status_script.delete.later.sh')
-rwxr-xr-x.config/i3/i3status_script.delete.later.sh19
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