Create exit script for sway
This commit is contained in:
parent
14a74a18d2
commit
0e675619a2
@ -1,20 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
lock)
|
lock)
|
||||||
#betterlockscreen -l; dunstctl set-paused true
|
swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen"
|
||||||
betterlockscreen -l
|
|
||||||
;;
|
;;
|
||||||
logout)
|
logout)
|
||||||
i3-msg exit
|
swaymsg exit
|
||||||
;;
|
;;
|
||||||
suspend)
|
suspend)
|
||||||
#betterlockscreen -s
|
|
||||||
systemctl suspend
|
systemctl suspend
|
||||||
;;
|
;;
|
||||||
hibernate)
|
hibernate)
|
||||||
systemctl hibernate
|
exit 1
|
||||||
;;
|
;;
|
||||||
reboot)
|
reboot)
|
||||||
systemctl reboot
|
systemctl reboot
|
Loading…
Reference in New Issue
Block a user