From e1700384a862b8b50ce236aec3ba75e698eed7fa Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 3 Mar 2025 13:04:26 +0100 Subject: [PATCH] Hyprland: Improve lockscreen --- .config/hypr/hyprlock.conf | 3 ++- .local/bin/system | 2 ++ .local/bin/wm/lock.sh | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf index c42aad5..31baacc 100644 --- a/.config/hypr/hyprlock.conf +++ b/.config/hypr/hyprlock.conf @@ -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) diff --git a/.local/bin/system b/.local/bin/system index 94e6583..0fca297 100755 --- a/.local/bin/system +++ b/.local/bin/system @@ -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="\ diff --git a/.local/bin/wm/lock.sh b/.local/bin/wm/lock.sh index 2fed212..3863b6e 100755 --- a/.local/bin/wm/lock.sh +++ b/.local/bin/wm/lock.sh @@ -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"