Skip to content

Instantly share code, notes, and snippets.

@fredj
Created December 10, 2018 16:01
Show Gist options
  • Save fredj/93b1699f5a909464e24b1a900a485650 to your computer and use it in GitHub Desktop.
Save fredj/93b1699f5a909464e24b1a900a485650 to your computer and use it in GitHub Desktop.
# exit i3 (logs you out of your X session)
set $mode_system System (e) logout, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+e mode "$mode_system"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment