dotfiles/i3/.config/i3/i3exit

30 lines
477 B
Bash
Executable file

#!/usr/bin/env bash
case "$1" in
lock)
light-locker-command -l
;;
switch_user)
dm-tool lock
;;
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