From 1b4cbcbec4ef493444920c473538b6d03d308c07 Mon Sep 17 00:00:00 2001 From: Robin Steinberg Date: Thu, 19 Mar 2026 11:26:39 +0100 Subject: [PATCH] Binding changes, adjust window rules for newer hyprland version --- config/hypr/bindings.conf | 9 ++++++-- config/hypr/hypridle.conf | 2 +- config/hypr/hyprland.conf | 20 +++++++++++------- config/hypr/hyprpaper.conf | 8 +++++-- config/hypr/rules.conf | 28 ++++++++++++------------- config/uwsm/env | 3 ++- config/walker/themes/hyprtron/style.css | 5 ++--- 7 files changed, 45 insertions(+), 30 deletions(-) diff --git a/config/hypr/bindings.conf b/config/hypr/bindings.conf index e9eea20..197215b 100644 --- a/config/hypr/bindings.conf +++ b/config/hypr/bindings.conf @@ -14,13 +14,18 @@ source = ./bindings/utilities.conf # See https://wiki.hypr.land/Configuring/Keywords/ $mainMod = SUPER # Sets "Windows" key as main modifier -bindd = $mainMod, B, Launch Browser, exec, flatpak run app.zen_browser.zen +bindd = $mainMod, B, Launch Browser, exec, firefox +bindd = $mainMod SHIFT, B, Launch Browser (Private window), exec, flatpak run app.zen_browser.zen --private-window +bindd = $mainMod, M, Spotify, exec, flatpak run com.spotify.Client bindd = $mainMod, T, System Monitor, exec, $terminal btop bindd = $mainMod, U, Todoist, exec, todoist bindd = $mainMod, I, Notion, exec, notion-app bindd = $mainMod, G, Telegram, exec, Telegram bindd = $mainMod SHIFT, G, Signal, exec, signal-desktop -bindd = $mainMod, F, WhatsApp, exec, gtk-launch WebApp-WhatsAppWeb7770.desktop +bindd = $mainMod, F, WhatsApp, exec, omarchy-launch-webapp https://web.whatsapp.com +bindd = $mainMod, A, Gemini, exec, omarchy-launch-webapp https://gemini.google.com +bindd = $mainMod SHIFT, A, Perplexity, exec, omarchy-launch-webapp https://perplexity.ai +bindd = $mainMod, H, Home Assistant, exec, omarchy-launch-webapp https://ha.vektron.casa bind = $mainMod, return, exec, $terminal bind = $mainMod, Q, killactive, diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf index 1e9b562..7feaafc 100644 --- a/config/hypr/hypridle.conf +++ b/config/hypr/hypridle.conf @@ -2,7 +2,7 @@ general { lock_cmd = ~/.config/hypr/scripts/lock-screen # lock screen and 1password 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. - inhibit_sleep = 3 # wait until screen is locked + inhibit_sleep = 3 # wait until screen is locked } listener { diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 55dbdf5..287c430 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -6,12 +6,15 @@ source = ~/.config/hypr/bindings.conf source = ~/.config/hypr/monitors.conf source = ~/.config/hypr/rules.conf -exec-once = hyprpaper -exec-once = waybar -exec-once = hypridle +exec-once = uwsm app -- hyprpaper +exec-once = uwsm app -- waybar +exec-once = uwsm app -- hypridle exec-once = systemctl --user start hyprpolkitagent -exec-once = swayosd-server -exec-once = elephant & walker --gapplication-service +exec-once = eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) +exec-once = uwsm app -- nautilus --gapplication-service +exec-once = uwsm app -- swayosd-server +exec-once = uwsm app -- elephant +exec-once = uwsm app -- walker --gapplication-service ############################# ### ENVIRONMENT VARIABLES ### @@ -157,6 +160,9 @@ misc { disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :( } +cursor { + inactive_timeout = 3 +} ############# ### INPUT ### @@ -276,7 +282,7 @@ device { # windowrule = float,class:^(kitty)$,title:^(kitty)$ # Ignore maximize requests from apps. You'll probably like this. -windowrule = suppressevent maximize, class:.* +windowrule = suppress_event maximize # Fix some dragging issues with XWayland -windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 +windowrule = no_focus true,match:class ^$,match:title ^$,match:xwayland true,match:float true,match:fullscreen false,match:pin false diff --git a/config/hypr/hyprpaper.conf b/config/hypr/hyprpaper.conf index c07e3d3..0530a17 100644 --- a/config/hypr/hyprpaper.conf +++ b/config/hypr/hyprpaper.conf @@ -1,3 +1,7 @@ -preload = /home/vektron/Bilder/wallpaper/omarchy/3-Milad-Fakurian-Abstract-Purple-Blue.jpg -wallpaper = , /home/vektron/Bilder/wallpaper/omarchy/3-Milad-Fakurian-Abstract-Purple-Blue.jpg +wallpaper { + monitor = + path = /home/vektron/Bilder/wallpaper/omarchy/3-Milad-Fakurian-Abstract-Purple-Blue.jpg + fit_mode = cover +} +splash = false diff --git a/config/hypr/rules.conf b/config/hypr/rules.conf index ebf0036..cc3fb72 100644 --- a/config/hypr/rules.conf +++ b/config/hypr/rules.conf @@ -1,14 +1,14 @@ -layerrule = blur, waybar -layerrule = blurpopups, waybar -layerrule = ignorezero, waybar -layerrule = blur, swaync-control-center -layerrule = blur, swaync-notification-window -layerrule = ignorezero, swaync-control-center -layerrule = ignorezero, swaync-notification-window -layerrule = ignorealpha 0.5, swaync-control-center -layerrule = ignorealpha 0.5, swaync-notification-window -layerrule = blur, swayosd -layerrule = ignorezero, swayosd -layerrule = blur, walker -layerrule = ignorezero, walker -layerrule = ignorealpha 0.5, walker +layerrule = blur true, match:namespace waybar +layerrule = blur_popups true, match:namespace waybar +layerrule = ignore_alpha 0, match:namespace waybar +layerrule = blur true, match:namespace swaync-control-center +layerrule = blur true, match:namespace swaync-notification-window +layerrule = ignore_alpha 0, match:namespace swaync-control-center +layerrule = ignore_alpha 0, match:namespace swaync-notification-window +layerrule = ignore_alpha 0.5, match:namespace swaync-control-center +layerrule = ignore_alpha 0.5, match:namespace swaync-notification-window +layerrule = blur true, match:namespace swayosd +layerrule = ignore_alpha 0, match:namespace swayosd +layerrule = blur true, match:namespace walker +layerrule = ignore_alpha 0, match:namespace walker +layerrule = ignore_alpha 0.5, match:namespace walker diff --git a/config/uwsm/env b/config/uwsm/env index cb295b6..b8c0574 100644 --- a/config/uwsm/env +++ b/config/uwsm/env @@ -1,2 +1,3 @@ -export XDG_CURRENT_DESKTOP=GNOME +#export XDG_CURRENT_DESKTOP=GNOME export TERMINAL=kitty +export PATH=$PATH:$HOME/.local/share/omarchy/bin diff --git a/config/walker/themes/hyprtron/style.css b/config/walker/themes/hyprtron/style.css index 2f2d724..7241c8a 100644 --- a/config/walker/themes/hyprtron/style.css +++ b/config/walker/themes/hyprtron/style.css @@ -28,7 +28,7 @@ scrollbar { 0 15px 12px rgba(0, 0, 0, 0.22); background: @background-t0; padding: 12px; - border: var(--border); + border: var(--border-thick); border-radius: var(--border-radius); } @@ -41,7 +41,7 @@ scrollbar { } .search-container { - border: var(--border); + border: var(--border-thick); border-radius: var(--border-radius); } @@ -81,7 +81,6 @@ child { .item-quick-activation { margin-left: 8px; - background: alpha(@background, 0.7); border-radius: var(--border-radius); padding: 8px; color: @border;