Initial commit.

This commit is contained in:
2020-10-29 09:49:04 +01:00
commit 7e1c8b251f
5 changed files with 447 additions and 0 deletions

30
i3/i3exit Executable file
View File

@ -0,0 +1,30 @@
#!/bin/sh
lock() {
i3lock
}
case "$1" in
lock)
lock
;;
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