Hyprland: Improve lockscreen

This commit is contained in:
Riyyi
2025-03-03 13:04:26 +01:00
parent ebc6245ea2
commit e1700384a8
3 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -54,9 +54,10 @@ input-field {
size = $image_size, $image_size
outline_thickness = 10
outer_color = rgba(0, 0, 0, 0.0)
outer_color = rgba(255, 255, 255, 0.0)
inner_color = rgba(0, 0, 0, 0.0)
check_color = rgba(0, 0, 0, 0.0)
fail_color = rgba(255, 0, 0, 1.0)
font_family = DejaVu Sans Serif
font_color = rgba(255, 255, 255, 0.9)
+2
View File
@@ -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="\
+5
View File
@@ -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"