add example how to manage multiple keyboard layouts under i3

This commit is contained in:
Martin Minka
2021-11-12 00:17:41 +01:00
parent b1d7d12e00
commit 13b6447cbb
3 changed files with 12 additions and 0 deletions
+2
View File
@@ -338,6 +338,8 @@ exec --no-startup-id dex -a -s /etc/xdg/autostart/:~/.config/autostart/
# num lock activated
#exec --no-startup-id numlockx on
# configure multiple keyboard layouts and hotkey to switch (Alt+CAPSLOCK in this example)
#exec --no-startup-id setxkbmap -layout 'us,sk' -variant altgr-intl,qwerty -option 'grp:alt_caps_toggle'
# start conky:
#exec_always --no-startup-id conky
+5
View File
@@ -136,6 +136,11 @@ interval=1
full_text=
command=~/.config/i3/scripts/keyhint.sh
# display keyboard layout name
#[keyboard-layout]
#command=~/.config/i3/scripts/keyboard-layout.sh
#interval=2
[time]
#label=
command=date '+%a %d %b %H:%M:%S'
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
KBD=$(/usr/bin/xkblayout-state print '%s')
echo $KBD