mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Fix opacity issues by using a tag to apply the default opacity that can be removed
Fixes #4168
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
# Browser types
|
# Browser types
|
||||||
windowrule = tag +chromium-based-browser, match:class ((google-)?[cC]hrom(e|ium)|[bB]rave-browser|[mM]icrosoft-edge|Vivaldi-stable|helium)
|
windowrule = tag +chromium-based-browser, match:class ((google-)?[cC]hrom(e|ium)|[bB]rave-browser|[mM]icrosoft-edge|Vivaldi-stable|helium)
|
||||||
windowrule = tag +firefox-based-browser, match:class ([fF]irefox|zen|librewolf)
|
windowrule = tag +firefox-based-browser, match:class ([fF]irefox|zen|librewolf)
|
||||||
|
windowrule = tag -default-opacity, match:tag chromium-based-browser
|
||||||
|
windowrule = tag -default-opacity, match:tag firefox-based-browser
|
||||||
|
|
||||||
# Force chromium-based browsers into a tile to deal with --app bug
|
# Force chromium-based browsers into a tile to deal with --app bug
|
||||||
windowrule = tile on, match:tag chromium-based-browser
|
windowrule = tile on, match:tag chromium-based-browser
|
||||||
|
|
||||||
# Only a subtle opacity change, but not for video sites
|
# Only a subtle opacity change, but not for video sites
|
||||||
windowrule = opacity 1 0.97, match:tag chromium-based-browser
|
windowrule = opacity 1.0 0.97, match:tag chromium-based-browser
|
||||||
windowrule = opacity 1 0.97, match:tag firefox-based-browser
|
windowrule = opacity 1.0 0.97, match:tag firefox-based-browser
|
||||||
|
|
||||||
# Some video sites should never have opacity applied to them
|
# Some video sites should never have opacity applied to them
|
||||||
windowrule = opacity 1.0 1.0, match:initial_title ((?i)(?:[a-z0-9-]+\.)*youtube\.com_/|app\.zoom\.us_/wc/home)
|
windowrule = opacity 1.0 1.0, match:initial_title ((?i)(?:[a-z0-9-]+\.)*youtube\.com_/|app\.zoom\.us_/wc/home)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# Picture-in-picture overlays
|
# Picture-in-picture overlays
|
||||||
windowrule = tag +pip, match:title (Picture.?in.?[Pp]icture)
|
windowrule = tag +pip, match:title (Picture.?in.?[Pp]icture)
|
||||||
|
windowrule = tag -default-opacity, match:tag pip
|
||||||
windowrule = float on, match:tag pip
|
windowrule = float on, match:tag pip
|
||||||
windowrule = pin on, match:tag pip
|
windowrule = pin on, match:tag pip
|
||||||
windowrule = size 600 338, match:tag pip
|
windowrule = size 600 338, match:tag pip
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
windowrule = tag -default-opacity, match:class qemu
|
||||||
windowrule = opacity 1 1, match:class qemu
|
windowrule = opacity 1 1, match:class qemu
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
windowrule = fullscreen on, match:class com.libretro.RetroArch
|
windowrule = fullscreen on, match:class com.libretro.RetroArch
|
||||||
|
windowrule = tag -default-opacity, match:class com.libretro.RetroArch
|
||||||
windowrule = opacity 1 1, match:class com.libretro.RetroArch
|
windowrule = opacity 1 1, match:class com.libretro.RetroArch
|
||||||
windowrule = idle_inhibit fullscreen, match:class com.libretro.RetroArch
|
windowrule = idle_inhibit fullscreen, match:class com.libretro.RetroArch
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# Float Steam
|
# Float Steam
|
||||||
windowrule = float on, match:class steam
|
windowrule = float on, match:class steam
|
||||||
windowrule = center on, match:class steam, match:title Steam
|
windowrule = center on, match:class steam, match:title Steam
|
||||||
|
windowrule = tag -default-opacity, match:class steam.*
|
||||||
windowrule = opacity 1 1, match:class steam.*
|
windowrule = opacity 1 1, match:class steam.*
|
||||||
windowrule = size 1100 700, match:class steam, match:title Steam
|
windowrule = size 1100 700, match:class steam, match:title Steam
|
||||||
windowrule = size 460 800, match:class steam, match:title Friends List
|
windowrule = size 460 800, match:class steam, match:title Friends List
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ windowrule = fullscreen on, match:class org.omarchy.screensaver
|
|||||||
windowrule = float on, match:class org.omarchy.screensaver
|
windowrule = float on, match:class org.omarchy.screensaver
|
||||||
|
|
||||||
# No transparency on media windows
|
# No transparency on media windows
|
||||||
|
windowrule = tag -default-opacity, match:class ^(zoom|vlc|mpv|org.kde.kdenlive|com.obsproject.Studio|com.github.PintaProject.Pinta|imv|org.gnome.NautilusPreviewer)$
|
||||||
windowrule = opacity 1 1, match:class ^(zoom|vlc|mpv|org.kde.kdenlive|com.obsproject.Studio|com.github.PintaProject.Pinta|imv|org.gnome.NautilusPreviewer)$
|
windowrule = opacity 1 1, match:class ^(zoom|vlc|mpv|org.kde.kdenlive|com.obsproject.Studio|com.github.PintaProject.Pinta|imv|org.gnome.NautilusPreviewer)$
|
||||||
|
|
||||||
# Popped window rounding
|
# Popped window rounding
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
# Define terminal tag to style them uniformly
|
# Define terminal tag to style them uniformly
|
||||||
windowrule = tag +terminal, match:class (Alacritty|kitty|com.mitchellh.ghostty)
|
windowrule = tag +terminal, match:class (Alacritty|kitty|com.mitchellh.ghostty)
|
||||||
|
windowrule = tag -default-opacity, match:tag terminal
|
||||||
|
windowrule = opacity 0.97 0.9, match:tag terminal
|
||||||
|
|||||||
@@ -2,11 +2,14 @@
|
|||||||
# Hyprland 0.53+ syntax
|
# Hyprland 0.53+ syntax
|
||||||
windowrule = suppress_event maximize, match:class .*
|
windowrule = suppress_event maximize, match:class .*
|
||||||
|
|
||||||
# Just dash of opacity by default
|
# Tag all windows for default opacity (apps can override with -default-opacity tag)
|
||||||
windowrule = opacity 0.97 0.9, match:class .*
|
windowrule = tag +default-opacity, match:class .*
|
||||||
|
|
||||||
# Fix some dragging issues with XWayland
|
# Fix some dragging issues with XWayland
|
||||||
windowrule = no_focus on, match:class ^$, match:title ^$, match:xwayland 1, match:float 1, match:fullscreen 0, match:pin 0
|
windowrule = no_focus on, match:class ^$, match:title ^$, match:xwayland 1, match:float 1, match:fullscreen 0, match:pin 0
|
||||||
|
|
||||||
# App-specific tweaks
|
# App-specific tweaks (may remove default-opacity tag)
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps.conf
|
source = ~/.local/share/omarchy/default/hypr/apps.conf
|
||||||
|
|
||||||
|
# Apply default opacity after apps have had a chance to opt out
|
||||||
|
windowrule = opacity 0.97 0.9, match:tag default-opacity
|
||||||
|
|||||||
Reference in New Issue
Block a user