You are not logged in.

#1 2018-11-27 07:47:07

MorbusChronos
Member
Registered: 2018-11-09
Posts: 20

i3wm i3exit.sh does not work with autologin

Hello all,

I just set up arch 4.18.XX with i3wm.  I enabled autologin, which works fine as long as I reboot directly from console.
As soon as i call my i3exit.sh; i am presented with all configured options just as it should be, keybindings work, path works.
BUT after rebooting that way, I always get to login again, despite the command being the same!

My i3config

 
bindsym $mod+X mode "$mode_system"
bindsym control+mod1+Delete mode "$mode_system"

set $mode_system System (k) lock, (l) logout, (u) suspend, (h) hibernate, (r) reboot, (s) shutdown
mode "$mode_system" {
    bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
    bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
    bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
    bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, 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"
}

My i3exit.sh

#!/bin/sh


case "$1" in
    lock)
        slimlock
        ;;
    logout)
        i3-msg exit
        ;;
    suspend)
        systemctl suspend
        ;;
    hibernate)
        systemctl hibernate
        ;;
    reboot)
        systemctl reboot
        ;;
    shutdown)
        systemctl poweroff
        ;;
    *)
        echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}"
        exit 2
esac

exit 0

Last edited by MorbusChronos (2018-11-27 07:48:30)

Offline

Board footer

Powered by FluxBB