From 015118d74aaef29952031e143d20b97fe0051945 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 29 Sep 2026 15:46:15 +0100 Subject: [PATCH] Update opacity --- .config/hypr/apps.lua | 4 ++-- .config/hypr/windows.lua | 33 +++++++++++++++++---------------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.config/hypr/apps.lua b/.config/hypr/apps.lua index aa27262..47e85dc 100644 --- a/.config/hypr/apps.lua +++ b/.config/hypr/apps.lua @@ -61,13 +61,13 @@ hl.window_rule { -- Only a subtle opacity change, but not for video sites hl.window_rule { - opacity = '1.0 0.97', + opacity = '1.0 0.8', match = { tag = 'chromium-based-browser', }, } hl.window_rule { - opacity = '1.0 0.97', + opacity = '1.0 0.8', match = { tag = 'firefox-based-browser', }, diff --git a/.config/hypr/windows.lua b/.config/hypr/windows.lua index 1097765..77d0d4c 100644 --- a/.config/hypr/windows.lua +++ b/.config/hypr/windows.lua @@ -1,31 +1,32 @@ -- See https://wiki.hyprland.org/Configuring/Window-Rules/ for more -- Tag all windows for default opacity (apps can override with -default-opacity tag) -hl.window_rule({ - name = "default-opacity", - tag = "+default-opacity", - match = { class = ".*" }, -}) +hl.window_rule { + name = 'default-opacity', + tag = '+default-opacity', + match = { class = '.*' }, +} -- Fix some dragging issues with XWayland -hl.window_rule({ - name = "xwayland-dragging", +hl.window_rule { + name = 'xwayland-dragging', match = { - class = "^$", - title = "^$", + class = '^$', + title = '^$', xwayland = true, float = true, fullscreen = false, pin = false, }, no_focus = true, -}) +} -- App-specific tweaks (may remove default-opacity tag) -require("apps") +require 'apps' -- Apply default opacity after apps have had a chance to opt out -hl.window_rule({ - name = "apply-opacity", - match = { tag = "default-opacity" }, - opacity = "0.97 0.9", -}) +hl.window_rule { + name = 'apply-opacity', + match = { tag = 'default-opacity' }, + opacity = '0.97 0.8', +} +