From 7c5a00ebe39318ba0a8b683bd98282d5fd522dff Mon Sep 17 00:00:00 2001 From: Mouad Alami Date: Tue, 27 Jun 2023 10:16:00 +0100 Subject: switch keyboard layout with alt+shift+(e/f) --- config.h | 5 +++++ 1 file changed, 5 insertions(+) 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")}, -- cgit v1.2.3