aboutsummaryrefslogtreecommitdiffstats
path: root/oni/home/config/rincewind.scm
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-03-30 09:55:48 -0700
committerGravatar Tom Willemse2023-03-30 09:55:48 -0700
commit17d3bfce41befd73bbb0de98a715396074235c1f (patch)
tree86bafcd93f9bee557ee177f5443bf4c706f153ea /oni/home/config/rincewind.scm
parent8eb8bcacdf761e0ffe6e24a62f96e6e43a8fbfe1 (diff)
downloadnew-dotfiles-17d3bfce41befd73bbb0de98a715396074235c1f.tar.gz
new-dotfiles-17d3bfce41befd73bbb0de98a715396074235c1f.zip
Add opacity-rule option for picom
Use this option to specify that anything containing “(Meeting) | Microsoft Teams” (which should be in the title of MS Teams when in a meeting) should have 100% opacity, and also that anything containing “freerdp” should have 100% opacity. For Teams I really only need it to be opaque once a meeting starts, I don't care the rest of the time. For XFreeRDP I've tried matching on ‘class_g’, ‘name’, nothing seems to work. Using ‘opacity-rule’ finally seems to have an effect. The rules both use ‘*’ to match anywhere in the name, and ‘?’ to specify that the match should be case-insensitive.
Diffstat (limited to 'oni/home/config/rincewind.scm')
-rw-r--r--oni/home/config/rincewind.scm9
1 files changed, 4 insertions, 5 deletions
diff --git a/oni/home/config/rincewind.scm b/oni/home/config/rincewind.scm
index 131303f..9fbd13b 100644
--- a/oni/home/config/rincewind.scm
+++ b/oni/home/config/rincewind.scm
@@ -117,7 +117,6 @@
'("name = 'mowedline'"
"class_g = 'trayer'"
"bounding_shaped"
- "class_g = 'xfreerdp'"
"class_g = 'i3lock'"))
(wintypes
'((dnd (shadow . #f))
@@ -127,6 +126,9 @@
(active-opacity 95)
(frame-opacity 100)
(inactive-opacity-override #t)
+ (opacity-rule
+ '("100:name *?= '(Meeting) | Microsoft Teams'"
+ "100:name *?= 'freerdp'"))
(blur-background #t)
(blur-background-frame #t)
(blur
@@ -135,16 +137,13 @@
(blur-background-fixed #t)
(blur-background-exclude
'("name *= 'rofi'"
- "class_g = 'xfreerdp'"
"class_g = 'i3lock'"))
(focus-exclude
'("name *= 'rofi'"
- "class_g = 'xfreerdp'"
"class_g = 'i3lock'"))
(fading #t)
(fade-exclude
- `("class_g = 'xfreerdp'"
- "class_g = 'i3lock'"))
+ `("class_g = 'i3lock'"))
(fade-in-step 3)
(fade-out-step 3))))