diff --git a/arch-config/.config/i3/scripts/i3exit.sh b/arch-config/.config/i3/scripts/i3exit.sh new file mode 100644 index 00000000..70dc96f8 --- /dev/null +++ b/arch-config/.config/i3/scripts/i3exit.sh @@ -0,0 +1,28 @@ +#!/bin/sh + + +case "$1" in + lock) + slimlock + ;; + 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