Hypr: tidy env setup and laptop idle guard

This commit is contained in:
2025-09-22 14:34:46 +02:00
parent 17d2e5457e
commit 8661a0ebf3
3 changed files with 5 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
# ~/.config/hypr/conf.d/50-autostart.conf
exec-once = dbus-update-activation-environment --all
exec-once = uwsm app -- swaync
exec-once = uwsm app -- waybar
exec-once = xsettingsd
exec-once = hyprsunset
exec-once = ~/.config/waybar/scripts/hyprsunset_daemon.sh
exec-once = hyprpaper -c $HOME/.config/hyprpaper.conf

View File

@@ -14,5 +14,4 @@ exec-once = bash -lc 'command -v nm-applet >/dev/null && nm-applet &'
exec-once = bash -lc 'command -v blueman-applet >/dev/null && blueman-applet &'
exec-once = pkill mako; mako
exec-once = pkill wl-paste; wl-paste -t text --watch clipman store

View File

@@ -1,11 +1,13 @@
# Same as cn-arch: lock at 10 min, screen off at 15 min.
# Brightness dimmer (requires brightnessctl)
listener {
timeout = 300
on-timeout = brightnessctl --save && brightnessctl set 25%
on-resume = brightnessctl --restore
on-timeout = bash -lc "command -v brightnessctl >/dev/null && brightnessctl --save && brightnessctl set 25%"
on-resume = bash -lc "command -v brightnessctl >/dev/null && brightnessctl --restore"
}
general {
lock_cmd = hyprlock
before_sleep_cmd = hyprlock