Created
August 6, 2020 04:59
-
-
Save husen-hn/03e5caf700ffac1f225b8145db17ba41 to your computer and use it in GitHub Desktop.
i3 : Set shut down, restart and locking features
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bindsym $mod+0 mode "$mode_system" | |
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown | |
mode "$mode_system" { | |
bindsym l exec --no-startup-id i3exit lock, mode "default" | |
bindsym s exec --no-startup-id i3exit suspend, mode "default" | |
bindsym u exec --no-startup-id i3exit switch_user, mode "default" | |
bindsym e exec --no-startup-id i3exit logout, mode "default" | |
bindsym h exec --no-startup-id i3exit hibernate, mode "default" | |
bindsym r exec --no-startup-id i3exit reboot, mode "default" | |
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" | |
# exit system mode: "Enter" or "Escape" | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment