6b456c1b7a
Currently paying the price of months of non-diligent git usage. Here's what has changed. - Theming support in Gvcci and wpgtk - Dropping support for i3 - Supporting EXWM - Many Elisp modules - Collapsed redundant directories in ./configs
30 lines
458 B
Bash
Executable file
30 lines
458 B
Bash
Executable file
#!/bin/sh
|
|
lock() {
|
|
i3lock
|
|
}
|
|
|
|
case "$1" in
|
|
lock)
|
|
xsecurelock
|
|
;;
|
|
logout)
|
|
i3-msg exit
|
|
;;
|
|
suspend)
|
|
lock && systemctl suspend
|
|
;;
|
|
hibernate)
|
|
lock && systemctl hibernate
|
|
;;
|
|
reboot)
|
|
systemctl reboot
|
|
;;
|
|
shutdown)
|
|
systemctl poweroff
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}"
|
|
exit 2
|
|
esac
|
|
|
|
exit 0
|