This repository has been archived on 2024-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
al-skel/home/.config/i3/scripts/i3exit.sh

27 lines
423 B
Bash
Raw Normal View History

2017-10-16 14:38:02 -05:00
#!/bin/sh
case "$1" in
lock)
i3lock-fancy -p
;;
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