Added a dmanu script to change to xkb keymap

This commit is contained in:
Richard Thomra 2019-02-01 00:54:25 +01:00
parent 25bc0bc263
commit aef442fc3e
2 changed files with 10 additions and 0 deletions

View File

@ -292,6 +292,7 @@ bindsym $mod+F9 exec --no-startup-id dmenumount
bindsym $mod+F10 exec --no-startup-id dmenuumount
bindsym $mod+F11 exec --no-startup-id ducksearch
bindsym $mod+F12 exec $term -e nmtui
bindsym $mod+Shift+F12 exec keymap
# #---Arrow Keys---# #
bindsym $mod+Left focus left

9
.scripts/i3cmds/keymap Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# A dmenu keymap script to change the languish
# Its also easy to add xkb -options to this script
list_default=$(localectl list-x11-keymap-layouts)
list=$(sed '/! variant/,/^$/!d;/..:/!d;s/:/ /g' < /usr/share/X11/xkb/rules/evdev.lst| awk -F" " '{print $2" "$1}')
list="$list_default$list"
choice=$(printf "$list" | dmenu -i -p "$1" -nb darkblue -sb blue -sf white -nf gray )
setxkbmap $choice