diff options
| author | Mouad Alami <moadalami40@gmail.com> | 2023-06-27 10:16:00 +0100 |
|---|---|---|
| committer | Mouad Alami <moadalami40@gmail.com> | 2023-06-27 10:16:00 +0100 |
| commit | 7c5a00ebe39318ba0a8b683bd98282d5fd522dff (patch) | |
| tree | 8d24a5a68100e0485a351a21a47a0da6a7e7f8dd | |
| parent | e377b80e33ead0fa00c93c700a200eb114201480 (diff) | |
switch keyboard layout with alt+shift+(e/f)
| -rw-r--r-- | config.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -126,6 +126,11 @@ static const Key keys[] = { {MODKEY | ShiftMask, XK_o, spawn, SHCMD("[ $(echo -e 'Yes\nNo' | dmenu -i -p 'Are you sure you want to shutdown?') == 'Yes' ] && shutdown now")}, {MODKEY | ShiftMask, XK_l, spawn, SHCMD("slock")}, + /* keyboard layout */ + {Mod1Mask | ShiftMask, XK_e, spawn, SHCMD("setxkbmap -option caps:escape && setxkbmap -layout us && notify-send '🇬🇧'")}, + {Mod1Mask | ShiftMask, XK_f, spawn, SHCMD("setxkbmap -option caps:escape && setxkbmap -layout fr && notify-send '🇫🇷'")}, + + /* dunst control */ {ControlMask, XK_7, spawn, SHCMD("dunstctl history-pop")}, {ControlMask, XK_space, spawn, SHCMD("dunstctl close")}, |
