přidán skripty

This commit is contained in:
archos
2024-05-01 07:11:23 +02:00
parent 1a45915976
commit 4984384a94
11 changed files with 634 additions and 0 deletions

28
.config/i3/scripts/i3exit.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/sh
case "$1" in
lock)
betterlockscreen -l dimblur -- --timestr="%H:%M"
;;
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