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.
This commit is contained in:
@@ -239,12 +239,8 @@ bindsym $mod+z exec ~/.local/bin/zoom-links
|
|||||||
# Keyboard layout
|
# Keyboard layout
|
||||||
# German layout without dead keys and escape and capslock switched.
|
# German layout without dead keys and escape and capslock switched.
|
||||||
# exec setxkbmap de nodeadkeys -option 'caps:swapescape'
|
# exec setxkbmap de nodeadkeys -option 'caps:swapescape'
|
||||||
# German layout without dead keys
|
# German layout without dead keys + custom keymap changes + Control_R is escape when pressed alone and shortly
|
||||||
exec setxkbmap de nodeadkeys -option
|
exec /bin/sh -c "setxkbmap de nodeadkeys -option && xmodmap ~/.Xmodmap && xcape -t 250 -e 'Control_R=Escape'"
|
||||||
# Load custom keymap
|
|
||||||
exec xmodmap ~/.Xmodmap
|
|
||||||
# Control is escape when pressed alone and shortly
|
|
||||||
exec xcape -t 250 -e 'Control_R=Escape'
|
|
||||||
|
|
||||||
# Restore GNOME's settings
|
# Restore GNOME's settings
|
||||||
exec --no-startup-id /usr/libexec/gnome-settings-daemon-localeexec
|
exec --no-startup-id /usr/libexec/gnome-settings-daemon-localeexec
|
||||||
|
|||||||
Reference in New Issue
Block a user