Skip to content

Instantly share code, notes, and snippets.

@juanolon
Created March 30, 2017 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanolon/2a2f7896d477cd7b8fc1716db618f70d to your computer and use it in GitHub Desktop.
Save juanolon/2a2f7896d477cd7b8fc1716db618f70d to your computer and use it in GitHub Desktop.
set $mode_location (h) home, (w) work
set $location home
mode "$mode_location" {
bindsym h exec set $location home
bindsym w exec set $location work
# back to normal: Enter or Escape
bindsym Escape mode "default"
#bindsym $mod+Shift+s mode "default"
}
set $mode_language (d) german, (e) english, (m) set-mode
mode "$mode_language" {
bindsym d exec --no-startup-id keyboard de $location, mode "default"
bindsym e exec --no-startup-id keyboard en $location, mode "default"
bindsym m mode "$mode_location"
# back to normal: Enter or Escape
bindsym Escape mode "default"
bindsym $mod+Shift+s mode "default"
}
bindsym $mod+Shift+s mode "$mode_language"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment