From 100882f912d7e821374928a95ef73df964fcfb49 Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Fri, 3 Jul 2020 02:04:55 +0200 Subject: [PATCH] Combine keyboard commands Combine keyboard related commands to have control over the order of execution. Sometimes the layout was not set properly since xmodmap takes a while an then xcape gets messed up. --- .config/i3/config | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 992729a..26dd61a 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -239,12 +239,8 @@ bindsym $mod+z exec ~/.local/bin/zoom-links # Keyboard layout # German layout without dead keys and escape and capslock switched. # exec setxkbmap de nodeadkeys -option 'caps:swapescape' -# German layout without dead keys -exec setxkbmap de nodeadkeys -option -# Load custom keymap -exec xmodmap ~/.Xmodmap -# Control is escape when pressed alone and shortly -exec xcape -t 250 -e 'Control_R=Escape' +# German layout without dead keys + custom keymap changes + Control_R is escape when pressed alone and shortly +exec /bin/sh -c "setxkbmap de nodeadkeys -option && xmodmap ~/.Xmodmap && xcape -t 250 -e 'Control_R=Escape'" # Restore GNOME's settings exec --no-startup-id /usr/libexec/gnome-settings-daemon-localeexec