Adding keyboard layout switching

This commit is contained in:
Siina Mashek 2020-06-30 01:56:00 +03:00 committed by Siina Maček
parent 6f93f19b1b
commit 7cb25d1366
2 changed files with 9 additions and 0 deletions

4
config/openbox/kblayout.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
(setxkbmap -query | grep -q "layout:\s\+us") && setxkbmap fi || setxkbmap us

View file

@ -335,6 +335,11 @@
<command>rofi -show calc</command>
</action>
</keybind>
<keybind key="W-space">
<action name="Execute">
<command>/home/siina/.config/openbox/kblayout.sh</command>
</action>
</keybind>
<!-- Keybindings for manipulating volume -->
<!-- keybind key="0x1008ff13">
<action name="RaiseVolume">