Browse Source

Hyprland: Improve lockscreen

wayland
Riyyi 4 weeks ago
parent
commit
e1700384a8
  1. 3
      .config/hypr/hyprlock.conf
  2. 2
      .local/bin/system
  3. 5
      .local/bin/wm/lock.sh

3
.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)

2
.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="\

5
.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"

Loading…
Cancel
Save