-
Notifications
You must be signed in to change notification settings - Fork 17
Usecases
qnikst edited this page Nov 9, 2010
·
13 revisions
Short kbdd description, usecases and widget code can be found on awesome wiki
In order to use kbdd as layout switcher one can use `xbindkeys` program for sending xbus events
So you can install `xbindkeys` and add next lines to `.xbindkeysrc` config file:
"dbus-send --dest=ru.gentoo.KbddService /ru/gentoo/KbddService ru.gentoo.kbdd.set_layout uint32:1"
Mod1+Shift + 1
"dbus-send --dest=ru.gentoo.KbddService /ru/gentoo/KbddService ru.gentoo.kbdd.set_layout uint32:1"
Mod1+Shift + 2
Thus will bind switching to first group on Alt+Shift+1 keys and second group on Alt+Shift+2 keys. You can add up to 4 groups (limited by XKB).
If you use more than 3 layout groups you may be interested in using only 2 of them with current program. To perform such action you should call `prev_layout` dbus method after switching layouts that you are interested in. To do so you can use `xbindkeys` or any other program. Just add next lines to `.xbindkeysrc` file: ```sh "dbus-send --dest=ru.gentoo.KbddService /ru/gentoo/KbddService ru.gentoo.kbdd.prev_layout" Mod1+Shift + 5 ``` and you can select last but one group used in current window. Supposing you use 3 layout groups (1:en, 2:es, 3:de). Pressing Mod1+Shift+2 would switch to es, pressing Mod1+Shift+3 after that would switch to de, but es would be remembered as "previous layout". And you would be able to switch between es and de with Mod1+Shift+5.