aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-04-17 19:26:20 -0500
committerJesús <heckyel@hyperbola.info>2019-04-17 19:26:20 -0500
commitadf513ff4284022b401f73d92d07f1618bc9c52c (patch)
treee482f6bbb1f4b365167dc1df5c07056604929ecb
parent867e1cf679c00dcd7b956da8d3e693a8314bf895 (diff)
downloadi3-config-adf513ff4284022b401f73d92d07f1618bc9c52c.tar.lz
i3-config-adf513ff4284022b401f73d92d07f1618bc9c52c.tar.xz
i3-config-adf513ff4284022b401f73d92d07f1618bc9c52c.zip
added system → poweroff, reboot, logout, hibernate, suspend, switch_user
-rw-r--r--config15
1 files changed, 15 insertions, 0 deletions
diff --git a/config b/config
index 5f53546..e325472 100644
--- a/config
+++ b/config
@@ -272,6 +272,21 @@ mode "$mode_display" {
# Declare here the shortcut to bring the display selection menu
bindsym $mod+x mode "$mode_display"
+# System poweroff, reboot, logout, hibernate, suspend, switch_user
+set $mode_system System (e) logout, (u) switch_user, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
+mode "$mode_system" {
+ bindsym s exec --no-startup-id loginctl 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 loginctl hibernate, mode "default"
+ bindsym r exec --no-startup-id loginctl reboot, mode "default"
+ bindsym Shift+s exec --no-startup-id loginctl poweroff, mode "default"
+ # back to normal: Enter or Escape
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+}
+bindsym $mod+Pause mode "$mode_system"
+
#open audio player
exec --no-startup-id audacious
#players global horkeys