Hyprland: Improve lockscreen
This commit is contained in:
@@ -6,6 +6,8 @@ if [ "$WM" = "bspwm" ]; then
|
||||
logout="bspc quit"
|
||||
elif [ "$WM" = "i3" ]; then
|
||||
logout="i3-msg exit"
|
||||
elif [ "$WM" = "hyprland" ]; then
|
||||
logout="hyprctl dispatch exit"
|
||||
fi
|
||||
|
||||
commands="\
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
|
||||
LOCK="$XDG_CACHE_HOME/lock.png"
|
||||
|
||||
if [ "$WM" = "hyprland" ]; then
|
||||
hyprlock
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Cache the lock image
|
||||
if [ ! -f "$LOCK" ]; then
|
||||
touch "$LOCK"
|
||||
|
||||
Reference in New Issue
Block a user