Permalink
Switch branches/tags
Nothing to show
Find file Copy path
08ca70e Feb 8, 2016
1 contributor

Users who have contributed to this file

executable file 34 lines (30 sloc) 511 Bytes
#!/usr/bin/env bash
lock() {
# killall compton
$HOME/.config/i3lock/i3lock.sh
# compton -b
}
case "$1" in
lock)
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