Files
2022-12-10 12:44:53 +03:00

30 lines
480 B
Bash
Executable File

#!/bin/sh
case "$1" in
lock)
i3lock -c 090000
;;
switch)
dm-tool switch-to-greeter
;;
logout)
i3-msg exit
;;
suspend)
systemctl suspend
;;
hibernate)
systemctl hibernate
;;
reboot)
systemctl reboot
;;
shutdown)
shutdown 0
;;
*)
echo "Usage: $0 {lock|switch|logout|suspend|hibernate|reboot|shutdown}"
exit 2
esac
exit 0