From e4cc581ebcaa4d7cd2cfb5949b88290db82e89ce Mon Sep 17 00:00:00 2001 From: Erik Dubois Date: Tue, 26 Jan 2021 20:18:26 +0100 Subject: [PATCH] eexiting and others changed --- airootfs/etc/skel/.config/i3/config | 17 ++++------------- .../etc/skel/.config/i3/scripts/i3exit.sh | 19 ------------------- 2 files changed, 4 insertions(+), 32 deletions(-) delete mode 100755 airootfs/etc/skel/.config/i3/scripts/i3exit.sh diff --git a/airootfs/etc/skel/.config/i3/config b/airootfs/etc/skel/.config/i3/config index 464d4f0..998f9db 100644 --- a/airootfs/etc/skel/.config/i3/config +++ b/airootfs/etc/skel/.config/i3/config @@ -109,19 +109,10 @@ bindsym $mod+Shift+0 move container to workspace 10; workspace 10 ################# how to exit, logoff, suspend, ... ################# ##################################################################################################################### -#Press Super+x - check toolbar for next choices -bindsym $mod+x mode "$mode_system" - -set $mode_system System (l) logout, (r) reboot, (s) shutdown -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" -} +bindsym $mod+r systemctl reboot +bindsym $mod+s systemctl shutdown +bindsym $mod+x systemctl shutdown +bindsym $mod+l i3-mesg exit ##################################################################################################################### ################# reload changed configuration ################# diff --git a/airootfs/etc/skel/.config/i3/scripts/i3exit.sh b/airootfs/etc/skel/.config/i3/scripts/i3exit.sh deleted file mode 100755 index 19965a3..0000000 --- a/airootfs/etc/skel/.config/i3/scripts/i3exit.sh +++ /dev/null @@ -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