commit 15fa2136411b21a8598f78faa0fbf67dd5493b3f
parent d6bc70f009cf061d3c539c9f0e9bd91a784f2266
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date: Fri, 2 Dec 2022 20:33:03 +0200
Update picom config
Diffstat:
2 files changed, 217 insertions(+), 10 deletions(-)
diff --git a/.config/picom/picom.backup b/.config/picom/picom.backup
@@ -0,0 +1,209 @@
+#################################
+# Transitions #
+# Fork: Arian8j2 #
+#################################
+
+transition = true;
+
+transition-rule = [
+ "none: window_type = 'dropdown_menu'",
+ "none: window_type = 'popup_menu'",
+ "none: window_type = 'dialog'",
+ "none: window_type = 'menu'",
+ "none: window_type = 'tooltip'",
+ "smart-x: class_g = 'Dunst'",
+ "smart-y: class_g ?= 'rofi'"
+];
+
+#################################
+# Corners #
+#################################
+
+corner-radius = 7;
+rounded-corners-exclude = [
+# "window_type = 'normal'",
+# "window_type = 'dropdown_menu'",
+# "window_type = 'popup_menu'",
+# "window_type = 'popup'",
+# "class_g = 'Polybar'",
+# "class_g = 'firefox'",
+ "class_g = 'Viewnior'",
+# "class_g = 'Rofi'",
+ "class_g = 'mpv'",
+ "class_g = 'Retroarch'",
+ "class_g = 'retroarch'"
+];
+
+round-borders = 1;
+#round-borders-exclude = [
+#"class_g = 'TelegramDesktop'",
+#];
+
+#################################
+# Shadows #
+#################################
+
+shadow = true;
+shadow-radius = 8;
+shadow-opacity = .6;
+shadow-offset-x = -3;
+shadow-offset-y = -3;
+
+shadow-exclude = [
+ "name = 'Notification'",
+ "class_g = 'Conky'",
+ "class_g ?= 'Notify-osd'",
+ "class_g = 'Cairo-clock'",
+ "class_g = 'slop'",
+ "class_g = 'Polybar'",
+ "class_g = 'Retroarch'",
+ "class_g = 'Rofi'",
+ "_GTK_FRAME_EXTENTS@:c"
+];
+
+#################################
+# Fading #
+#################################
+
+fading = true;
+# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
+# fade-in-step = 0.5;
+# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
+# fade-out-step = 0.5;
+# no-fading-openclose = false
+# no-fading-destroyed-argb = false
+# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
+# fade-delta = 10
+
+fade-exclude = [
+ "class_g = 'slop'",
+ "name = 'bar'",
+ "class_g = 'maim'",
+ "class_g = 'mpv'",
+ # "class_g = 'bspwm'"
+]
+
+#################################
+# Transparency / Opacity #
+#################################
+
+inactive-opacity = 0.95;
+inactive-opacity-override = false;
+active-opacity = 1.0;
+
+# Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
+inactive-dim = 1.0
+
+focus-exclude = [
+ "class_g = 'Cairo-clock'",
+ "class_g = 'Polybar'",
+ "class_g = 'slop'",
+ "class_g = 'ranger'"
+];
+
+opacity-rule = [
+ "95:class_g = 'Emacs'",
+ "90:class_g = 'Alacritty'",
+ "95:class_g = 'Polybar'",
+ "95:class_g = 'Rofi'",
+ "95:class_g = 'obsidian'",
+ "100:class_g = 'firefox'",
+ "90:class_g = 'Code'",
+ "95:class_g = 'NetBeans IDE 8.2'"
+];
+
+#################################
+# Background-Blurring #
+#################################
+
+
+# Parameters for background blurring, see the *BLUR* section for more information.
+# blur-method =
+# blur-size = 12
+#
+# blur-deviation = false
+
+# Blur background of semi-transparent / ARGB windows.
+# Bad in performance, with driver-dependent behavior.
+# The name of the switch may change without prior notifications.
+#
+# blur-background = true;
+
+# Blur background of windows when the window frame is not opaque.
+# Implies:
+# blur-background
+# Bad in performance, with driver-dependent behavior. The name may change.
+#
+# blur-background-frame = false;
+
+
+# Use fixed blur strength rather than adjusting according to window opacity.
+# blur-background-fixed = false;
+
+
+# Specify the blur convolution kernel, with the following format:
+# example:
+# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
+#
+# blur-kern = ''
+# blur-kern = "3x3box";
+
+blur: {
+ # requires: https://github.com/ibhagwan/picom
+ method = "kawase";
+ #method = "kernel";
+ strength = 7;
+ # deviation = 1.0;
+ # kernel = "11x11gaussian";
+ background = false;
+ background-frame = false;
+ background-fixed = false;
+ kern = "3x3box";
+}
+
+# Exclude conditions for background blur.
+blur-background-exclude = [
+ #"window_type = 'dock'",
+ #"window_type = 'desktop'",
+ #"class_g = 'URxvt'",
+ #
+ # prevents picom from blurring the background
+ # when taking selection screenshot with `main`
+ # https://github.com/naelstrof/maim/issues/130
+ "class_g = 'slop'",
+ "_GTK_FRAME_EXTENTS@:c",
+ "class_g ?= 'zoom'"
+];
+
+#################################
+# General Settings #
+#################################
+
+experimental-backends = true;
+backend = "glx";
+# backend = "xrender";
+vsync = true;
+mark-wmwin-focused = true;
+mark-ovredir-focused = true;
+
+#use-damage = false;
+detect-rounded-corners = true;
+detect-client-opacity = true;
+#glx-no-stencil = false;
+detect-transient = true;
+unredir-if-possible = false;
+log-level = "warn";
+
+#################################
+
+wintypes:
+{
+ normal = { fade = false; shadow = true; }
+ tooltip = { fade = true; shadow = true; focus = true; full-shadow = false; }
+ dock = { shadow = false; }
+ dnd = { shadow = true; }
+ popup_menu = { opacity = 0.97; fade = false; shadow = false; }
+ dropdown_menu = { opacity = 0.97; }
+ menu = { fade = false; }
+ dialog = { fade = false; }
+};
diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf
@@ -22,15 +22,13 @@ transition-rule = [
corner-radius = 7;
rounded-corners-exclude = [
# "window_type = 'normal'",
- # "window_type = 'dropdown_menu'",
- # "window_type = 'popup_menu'",
- # "window_type = 'popup'",
-# "class_g = 'awesome'",
- # "class_g = 'Polybar'",
-# "class_g = 'TelegramDesktop'",
+# "window_type = 'dropdown_menu'",
+# "window_type = 'popup_menu'",
+# "window_type = 'popup'",
+ "class_g = 'Polybar'",
# "class_g = 'firefox'",
"class_g = 'Viewnior'",
- # "class_g = 'Rofi'",
+# "class_g = 'Rofi'",
"class_g = 'mpv'",
"class_g = 'Retroarch'",
"class_g = 'retroarch'"
@@ -69,9 +67,9 @@ shadow-exclude = [
fading = true;
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
-fade-in-step = 0.5;
+# fade-in-step = 0.5;
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
-fade-out-step = 0.5;
+# fade-out-step = 0.5;
# no-fading-openclose = false
# no-fading-destroyed-argb = false
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
@@ -184,7 +182,7 @@ blur-background-exclude = [
experimental-backends = true;
backend = "glx";
# backend = "xrender";
-vsync = false;
+vsync = true;
mark-wmwin-focused = true;
mark-ovredir-focused = true;