hyprland: add hypridle and hyprlock integration

This commit is contained in:
org-agenda-api
2026-03-03 11:51:37 -08:00
committed by Kat Huang
parent a06da4f647
commit 3ee63d7ef6
4 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
general {
lock_cmd = pidof hyprlock || hyprlock
before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch dpms on
}
listener {
timeout = 600
on-timeout = loginctl lock-session
}
listener {
timeout = 900
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}

View File

@@ -552,6 +552,7 @@ exec-once = systemctl --user start graphical-session.target
exec-once = systemctl --user start hyprland-session.target
# Force a fresh daemon after compositor restarts so hyprscratch doesn't keep a stale socket.
exec-once = systemctl --user restart hyprscratch.service
exec-once = hypridle
exec-once = ~/.config/hypr/scripts/workspace-history.sh
# Clipboard history daemon

View File

@@ -0,0 +1,39 @@
background {
monitor =
path = screenshot
blur_passes = 3
blur_size = 8
noise = 0.0117
contrast = 0.8916
brightness = 0.8172
vibrancy = 0.1696
}
input-field {
monitor =
size = 280, 56
outline_thickness = 3
dots_size = 0.2
dots_spacing = 0.2
outer_color = rgb(edb443)
inner_color = rgb(1e1e2e)
font_color = rgb(cdd6f4)
fade_on_empty = false
rounding = 12
placeholder_text = <i>Password...</i>
hide_input = false
position = 0, -80
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$(date +'%a %b %-d %I:%M %p')"
color = rgb(cdd6f4)
font_size = 40
font_family = Noto Sans
position = 0, 80
halign = center
valign = center
}

View File

@@ -11,6 +11,9 @@ in
makeEnable config "myModules.hyprland" true {
myModules.taffybar.enable = true;
# Needed for hyprlock authentication without PAM fallback warnings.
security.pam.services.hyprlock = {};
programs.hyprland = {
enable = true;
# Use Hyprland from the flake for proper plugin compatibility