You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.4 KiB
36 lines
1.4 KiB
#------------------------------------------------ |
|
# |
|
# session/power management |
|
# |
|
#------------------------------------------------ |
|
|
|
# regenerate and reload i3 configuration file |
|
bindsym $mod+Shift+c exec rfreload |
|
|
|
# regenerate i3 configuration file and restart i3 (preserves your layout/session, can be used to upgrade i3) |
|
bindsym $mod+Shift+r exec rfreload --restart |
|
|
|
# exit i3 (logs you out of your X session) |
|
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" |
|
|
|
# use i3exit script from https://github.com/giacomos/i3wm-config/blob/master/i3exit |
|
set $exitScript /usr/share/ratflow/scripts/i3exit |
|
|
|
mode "session_management" { |
|
bindsym l exec --no-startup-id $exitScript lock, mode "default" |
|
bindsym e exec --no-startup-id $exitScript logout, mode "default" |
|
bindsym s exec --no-startup-id $exitScript suspend, mode "default" |
|
bindsym h exec --no-startup-id $exitScript hibernate, mode "default" |
|
bindsym r exec --no-startup-id $exitScript reboot, mode "default" |
|
bindsym Shift+s exec --no-startup-id $exitScript shutdown, mode "default" |
|
|
|
# back to normal: Enter or Escape |
|
bindsym Return mode "default" |
|
bindsym Escape mode "default" |
|
} |
|
bindsym $mod+Pause mode "session_management" |
|
|
|
bindsym $mod+Escape exec systemctl suspend |
|
|
|
bindsym $mod+Shift+b exec xscreensaver-command -activate |
|
|
|
|