From 8e50bb2f465eff7559e28292daca954878092c16 Mon Sep 17 00:00:00 2001 From: pablu Date: Fri, 5 Jun 2026 09:33:02 +0200 Subject: [PATCH] Update some hypr config --- dot_config/hypr/config/autostart.lua | 5 +++-- dot_config/hypr/config/binds.lua | 2 +- dot_config/hypr/config/rules.lua | 14 +++++++++++++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/dot_config/hypr/config/autostart.lua b/dot_config/hypr/config/autostart.lua index dad08b3..6523deb 100644 --- a/dot_config/hypr/config/autostart.lua +++ b/dot_config/hypr/config/autostart.lua @@ -1,7 +1,8 @@ hl.on("hyprland.start", function() hl.exec_cmd("awww-daemon") - hl.exec_cmd("awww img ~/.wallpaper/cat.gif -o " .. SECONDARY_DISPLAY) - hl.exec_cmd("awww img ~/.wallpaper/train_station.gif -o " .. MAIN_DISPLAY) + hl.exec_cmd("awww restore") + -- hl.exec_cmd("awww img ~/.wallpaper/cat.gif -o " .. SECONDARY_DISPLAY) + -- hl.exec_cmd("awww img ~/.wallpaper/train_station.gif -o " .. MAIN_DISPLAY) hl.exec_cmd("gentoo-pipewire-launcher") hl.exec_cmd("/usr/libexec/hyprpolkitagent") hl.exec_cmd("dunst") diff --git a/dot_config/hypr/config/binds.lua b/dot_config/hypr/config/binds.lua index 116aceb..1180f1b 100644 --- a/dot_config/hypr/config/binds.lua +++ b/dot_config/hypr/config/binds.lua @@ -51,4 +51,4 @@ hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = tru hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true }) hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = true }) -hl.bind("code:51", hl.dsp.pass({ window = "class:^(Discord)$" }), { non_consuming = true }) +hl.bind("code:51", hl.dsp.pass({ window = "class:^([Dd]iscord)$" }), { non_consuming = true }) diff --git a/dot_config/hypr/config/rules.lua b/dot_config/hypr/config/rules.lua index b3c5024..23fe9ba 100644 --- a/dot_config/hypr/config/rules.lua +++ b/dot_config/hypr/config/rules.lua @@ -40,8 +40,20 @@ hl.window_rule({ name = "steam_notifications", match = { class = "^(steam)$", - title = "^(notificationtoasts_*)$" + title = "^(notificationtoasts_.*)$" }, no_focus = true, no_initial_focus = true }) + +hl.window_rule({ + name = "discord", + match = { + class = "discord" + }, + monitor = SECONDARY_DISPLAY, + workspace = "6 silent", + no_initial_focus = true, + focus_on_activate = false, + suppress_event = "activatefocus" +})