eexiting and others changed
This commit is contained in:
parent
628d2a2197
commit
e4cc581ebc
2 changed files with 4 additions and 32 deletions
|
@ -109,19 +109,10 @@ bindsym $mod+Shift+0 move container to workspace 10; workspace 10
|
||||||
################# how to exit, logoff, suspend, ... #################
|
################# how to exit, logoff, suspend, ... #################
|
||||||
#####################################################################################################################
|
#####################################################################################################################
|
||||||
|
|
||||||
#Press Super+x - check toolbar for next choices
|
bindsym $mod+r systemctl reboot
|
||||||
bindsym $mod+x mode "$mode_system"
|
bindsym $mod+s systemctl shutdown
|
||||||
|
bindsym $mod+x systemctl shutdown
|
||||||
set $mode_system System (l) logout, (r) reboot, (s) shutdown
|
bindsym $mod+l i3-mesg exit
|
||||||
mode "$mode_system" {
|
|
||||||
bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
|
|
||||||
bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
|
|
||||||
bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
|
|
||||||
|
|
||||||
# back to normal: Enter or Escape
|
|
||||||
bindsym Return mode "default"
|
|
||||||
bindsym Escape mode "default"
|
|
||||||
}
|
|
||||||
|
|
||||||
#####################################################################################################################
|
#####################################################################################################################
|
||||||
################# reload changed configuration #################
|
################# reload changed configuration #################
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
logout)
|
|
||||||
i3-msg exit
|
|
||||||
;;
|
|
||||||
reboot)
|
|
||||||
systemctl reboot
|
|
||||||
;;
|
|
||||||
shutdown)
|
|
||||||
systemctl poweroff
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Usage: $0 {logout|reboot|shutdown}"
|
|
||||||
exit 2
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
Loading…
Reference in a new issue