viking-mate: match hypridle/hyprlock to cn-arch

This commit is contained in:
2025-09-19 17:37:45 +02:00
parent 1026fca614
commit ce2eb2dd79
3 changed files with 42 additions and 22 deletions

View File

@@ -41,6 +41,8 @@ bind = $mainMod, E, exec, $fileManager
bind = $mainMod, D, exec, $launcher
bind = $mainMod SHIFT, D, exec, $uuctl
bind = $mainMod, PERIOD, exec, $emote
bind = $mainMod, F12, exec, pkill -SIGUSR2 waybar
# SwayNC controls
bind = $mainMod, Grave, exec, $notcenter

View File

@@ -1,33 +1,21 @@
# Laptop: dim -> lock -> dpms off -> suspend
# Same as cn-arch: lock at 10 min, screen off at 15 min.
general {
lock_cmd = hyprlock
before_sleep_cmd = hyprlock
after_sleep_cmd = hyprctl dispatch dpms on
}
# Dim after 4 min
# Lock after 10 minutes
listener {
timeout = 240
on-timeout = brightnessctl -s set 10%
on-resume = brightnessctl -r
}
# Lock after 6 min
listener {
timeout = 360
timeout = 600
on-timeout = hyprlock
}
# Screen off after 8 min
# DPMS off after 15 minutes (wakes on input)
listener {
timeout = 480
timeout = 900
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
# Suspend after 20 min
listener {
timeout = 1200
on-timeout = systemctl suspend
}

View File

@@ -1,5 +1,35 @@
background { path = ~/.config/hypr/images/standard.jpg; blur_size = 8; blur_passes = 2; brightness = 0.7; }
input-field { outline_thickness = 2; rounding = 8; size = 300, 42; position = 0, -100; dots_center = true; }
label { text = $TIME; font_size = 32; position = 0, 40; color = rgba(ffffffff); }
label { text = $USER; font_size = 16; position = 0, 80; color = rgba(ddddddff); }
# Same minimal lock as cn-arch
background {
monitor =
path = ~/.config/hypr/images/standard.jpg
blur_size = 8
blur_passes = 2
brightness = 0.7
}
input-field {
monitor =
outline_thickness = 2
rounding = 8
size = 300, 42
position = 0, -100
dots_center = true
}
label {
monitor =
text = $TIME
font_size = 32
position = 0, 40
color = rgba(ffffffff)
}
label {
monitor =
text = $USER
font_size = 16
position = 0, 80
color = rgba(ddddddff)
}