Hypr (laptop): align media and idle handling

This commit is contained in:
2025-09-22 14:27:32 +02:00
parent 4c13c16ffc
commit 17d2e5457e
3 changed files with 8 additions and 11 deletions

View File

@@ -105,9 +105,6 @@ bindm = $mainMod SHIFT, mouse:272, movewindow
bindm = $mainMod SHIFT, mouse:273, resizewindow
# Audio via PipeWire ctl (desktop style)
bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bindl = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous
bindl = , XF86AudioNext, exec, playerctl next

View File

@@ -4,8 +4,8 @@ exec-once = uwsm app -- swaync
exec-once = xsettingsd
exec-once = ~/.config/waybar/scripts/hyprsunset_daemon.sh
exec-once = uwsm app -- waybar
exec = hyprpaper -c $HOME/.config/hyprpaper.conf
exec = swayosd-server
exec-once = hyprpaper -c $HOME/.config/hyprpaper.conf
exec-once = swayosd-server
exec-once = hypridle
@@ -13,12 +13,6 @@ exec-once = hypridle
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 swayidle; swayidle \
timeout 300 'brightnessctl set 25%' \
timeout 600 'swaylock -f -c 000000' \
timeout 600 'hyprctl dispatch dpms off' \
resume 'hyprctl dispatch dpms on' \
before-sleep 'swaylock -f -c 000000'
exec-once = pkill mako; mako
exec-once = pkill wl-paste; wl-paste -t text --watch clipman store

View File

@@ -1,5 +1,11 @@
# Same as cn-arch: lock at 10 min, screen off at 15 min.
listener {
timeout = 300
on-timeout = brightnessctl --save && brightnessctl set 25%
on-resume = brightnessctl --restore
}
general {
lock_cmd = hyprlock
before_sleep_cmd = hyprlock