From 84c01230346d4541d767ff2042d6a75ef616679f Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 14 Oct 2026 17:57:24 +0200 Subject: [PATCH] add app specific windowrules --- .config/hypr/custom/windowrules.example | 3 +++ .config/hypr/custom/windowrules/signal.lua | 10 ++++++++++ .config/hypr/custom/windowrules/telegram.lua | 10 ++++++++++ .config/hypr/custom/windowrules/zen.lua | 10 ++++++++++ .config/hypr/hyprland/windowrules.lua | 18 ------------------ 5 files changed, 33 insertions(+), 18 deletions(-) create mode 100644 .config/hypr/custom/windowrules/signal.lua create mode 100644 .config/hypr/custom/windowrules/telegram.lua create mode 100644 .config/hypr/custom/windowrules/zen.lua diff --git a/.config/hypr/custom/windowrules.example b/.config/hypr/custom/windowrules.example index 4f423cb..cf9f4c0 100644 --- a/.config/hypr/custom/windowrules.example +++ b/.config/hypr/custom/windowrules.example @@ -3,5 +3,8 @@ -- Uncomment these lines to enable the ones you want on this machine: -- require("custom/windowrules/godot") +-- require("custom/windowrules/signal") +-- require("custom/windowrules/telegram") +-- require("custom/windowrules/zen") -- vim: ft=lua diff --git a/.config/hypr/custom/windowrules/signal.lua b/.config/hypr/custom/windowrules/signal.lua new file mode 100644 index 0000000..11be322 --- /dev/null +++ b/.config/hypr/custom/windowrules/signal.lua @@ -0,0 +1,10 @@ +-- Signal application windowrules -- + +hl.window_rule({ + name = "Floating Signal", + match = { class = "signal" }, + size = "425 790", + move = "(monitor_w*0.72) (monitor_h*0.15)", + float = true, + pin = true, +}) diff --git a/.config/hypr/custom/windowrules/telegram.lua b/.config/hypr/custom/windowrules/telegram.lua new file mode 100644 index 0000000..1f265a6 --- /dev/null +++ b/.config/hypr/custom/windowrules/telegram.lua @@ -0,0 +1,10 @@ +-- Telegram application windowrules -- + +hl.window_rule({ + name = "Floating Telegram", + match = { class = "org.telegram.desktop" }, + size = "425 790", + move = "(monitor_w*0.72) (monitor_h*0.15)", + float = true, + pin = true, +}) diff --git a/.config/hypr/custom/windowrules/zen.lua b/.config/hypr/custom/windowrules/zen.lua new file mode 100644 index 0000000..7aac251 --- /dev/null +++ b/.config/hypr/custom/windowrules/zen.lua @@ -0,0 +1,10 @@ +-- Zen browser windowrules -- + +hl.window_rule({ + name = "Zen Picture-in-Picture", + match = { class = "zen", title = "Picture-in-Picture" }, + center = true, + size = "1280 720", + float = true, + pin = true, +}) diff --git a/.config/hypr/hyprland/windowrules.lua b/.config/hypr/hyprland/windowrules.lua index 5970954..748510a 100644 --- a/.config/hypr/hyprland/windowrules.lua +++ b/.config/hypr/hyprland/windowrules.lua @@ -15,15 +15,6 @@ hl.window_rule({ center = true, }) -hl.window_rule({ - name = "floating-messages", - match = { class = "(signal|org.telegram.desktop)" }, - size = "425 790", - move = "(monitor_w*0.72) (monitor_h*0.15)", - float = true, - pin = true, -}) - hl.window_rule({ name = "filesystems", match = { class = "DevTools|Tous les fichiers|org.gnome.Nautilus" }, @@ -31,12 +22,3 @@ hl.window_rule({ center = true, size = "(monitor_w*0.48) (monitor_h*0.5)", }) - -hl.window_rule({ - name = "pip", - match = { class = "zen", title = "Picture-in-Picture" }, - center = true, - size = "1280 720", - float = true, - pin = true, -})