summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMouad Alami <moadalami40@gmail.com>2023-06-27 10:16:00 +0100
committerMouad Alami <moadalami40@gmail.com>2023-06-27 10:16:00 +0100
commit7c5a00ebe39318ba0a8b683bd98282d5fd522dff (patch)
tree8d24a5a68100e0485a351a21a47a0da6a7e7f8dd
parente377b80e33ead0fa00c93c700a200eb114201480 (diff)
switch keyboard layout with alt+shift+(e/f)
-rw-r--r--config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.h b/config.h
index 80a54d1..2c02b9f 100644
--- a/config.h
+++ b/config.h
@@ -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")},