Sunday, 31 January 2021

Memasang logout, restart dan shutdown

# Set shut down, restart and locking features dari https://www.linuxquestions.org/questions/linux-newbie-8/i3wm-mode_system-i3exit-reboot-shutdown-script-inaction-4175623765/

bindsym $super+End mode "$mode_system"

set $mode_system (l)ogout,(r)eboot,(s)hutdown

mode "$mode_system" {

    bindsym l exec --no-startup-id i3-msg exit lock, mode "default"

    bindsym r exec --no-startup-id systemctl reboot, mode "default"

    bindsym s exec --no-startup-id systemctl poweroff, mode "default"


    # exit system mode: "Enter" or "Escape"

    bindsym Return mode "default"

    bindsym Escape mode "default"

}

Share:

0 comments:

Post a Comment