From b2cf73db9fd91f7e12f0c411aedbd7678dc93c0c Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 6 Dec 2025 10:16:46 +0100 Subject: [PATCH] update hyprland config --- hypr/hypridle.conf | 26 +++++++++++++ hypr/hyprland.conf | 5 ++- hypr/hyprlock.conf | 90 +++++++++++++++++++++++++++++++++++++++++++++ hypr/hyprpaper.conf | 4 ++ 4 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 hypr/hypridle.conf create mode 100644 hypr/hyprlock.conf create mode 100644 hypr/hyprpaper.conf diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf new file mode 100644 index 0000000..672c667 --- /dev/null +++ b/hypr/hypridle.conf @@ -0,0 +1,26 @@ + +general { + lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. + before_sleep_cmd = loginctl lock-session # lock before suspend. + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. +} + +# Turn screen off after 5 min +listener { + timeout = 300 + on-timeout = hyprctl dispatch dpms off + on-resume = hyprctl dispatch dpms on && brightnessctl -r +} + +# Lock screen after 10 min +listener { + timeout = 600 + on-timeout = loginctl lock-session +} + + +# Suspend after 30 min +listener { + timeout = 1800 + on-timeout = systemctl suspend +} diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 99601b3..1433247 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -185,8 +185,11 @@ bindm = $mainMod, mouse:273, resizewindow # Autostart # ------------- +# Hyprland apps +exec-once = hypridle + # set wallpaper -exec-once=swaybg -i ~/.local/share/wallpapers/current +exec-once=hyprpaper # Bar exec-once=waybar diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf new file mode 100644 index 0000000..cbae601 --- /dev/null +++ b/hypr/hyprlock.conf @@ -0,0 +1,90 @@ +# sample hyprlock.conf +# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock +# +# rendered text in all widgets supports pango markup (e.g. or tags) +# ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks +# +# shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace +# +# you can get started by copying this config to ~/.config/hypr/hyprlock.conf +# + +$mainMonitor=DP-2 +$font = Monospace +$color_text=rgb(205, 214, 244) +$color_fail=rgb(235, 160, 172) +$color_check=rgb(180, 190, 254) +$color_input=rgb(147, 153, 178) + +general { + hide_cursor = true + ignore_empty_input = true + immediate_render = true +} + +animations { + enabled = true + bezier = linear, 1, 1, 0, 0 + animation = fade, 1, 3, linear + animation = inputFieldColors, 0 + animation = inputFieldFade, 0 + animation = inputFieldWidth, 0 + animation = inputFieldDots, 1, 1, linear +} + +background { + monitor = $mainMonitor + path = screenshot + vibrancy = 0.02 + color = rgb(17, 17, 27) + blur_passes = 5 +} + +input-field { + monitor = $mainMonitor + size = 500, 70 + outline_thickness = 0 + outer_color = rgba(0, 0, 0, 0) + inner_color = rgba(0, 0, 0, 0) + font_color = $color_input + check_color = $color_check + fail_color = $color_fail + swap_font_color = true + fade_on_empty = false + rounding = 0 + placeholder_text = + fail_text = $PAMFAIL ($ATTEMPTS) + + dots_size = 0.4 + dots_spacing = 0.2 + dots_center = true + + position = 0, 0 + halign = center + valign = center +} + +# TIME +label { + monitor = $mainMonitor + text = $TIME # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution + font_size = 90 + color = $color_text + + position = 0, -300 + halign = center + valign = top +} + +# DATE +label { + monitor = $mainMonitor + text = cmd[update:60000] date +"%A, %d %B %Y" # update every 60 seconds + font_size = 25 + color = $color_text + + position = 0, -450 + halign = center + valign = top +} + diff --git a/hypr/hyprpaper.conf b/hypr/hyprpaper.conf new file mode 100644 index 0000000..03fd180 --- /dev/null +++ b/hypr/hyprpaper.conf @@ -0,0 +1,4 @@ +$PATH=~/.local/share/wallpapers/wallpaper.jpeg + +preload = $PATH +wallpaper = , $PATH