commit 8d99f4b5900123d0426d94a52e3bff86ae4778cc
parent fc8272f6f8ed17a3df147c8bc876a20f1fd84ce6
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date: Wed, 16 Nov 2022 19:29:47 +0200
Change picom config
Diffstat:
2 files changed, 115 insertions(+), 83 deletions(-)
diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf
@@ -1,35 +1,60 @@
-# ____ _____
-# | _ \_ _| Derek Taylor (DistroTube)
-# | | | || | http://www.youtube.com/c/DistroTube
-# | |_| || | http://www.gitlab.com/dwt1/
-# |____/ |_|
-#
-# My config. Not much to see here; just some pretty standard stuff.
-
-# Enabled client-side shadows on windows. Note desktop windows
-# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
-# unless explicitly requested using the wintypes option.
-#
-shadow = true;
-
-# The blur radius for shadows, in pixels. (defaults to 12)
-shadow-radius = 8;
-
-# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
-shadow-opacity = .6
-
-# The left offset for shadows, in pixels. (defaults to -15)
-shadow-offset-x = -3;
-
-# The top offset for shadows, in pixels. (defaults to -15)
-shadow-offset-y = -3;
-
-# Specify a list of conditions of windows that should have no shadow.
-#
-# examples:
-# shadow-exclude = "n:e:Notification";
-#
-# shadow-exclude = []
+#################################
+# Transitions #
+# Fork: Arian8j2 #
+#################################
+
+transition = false;
+transition-offset = 20;
+transition-direction = "smart-x";
+transition-timing-function = "ease-out-cubic";
+transition-step = 0.016;
+
+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 = 'awesome'",
+ # "class_g = 'Polybar'",
+# "class_g = 'TelegramDesktop'",
+# "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 = false;
+shadow-radius = 18;
+#shadow-opacity = .75
+shadow-offset-x = -25;
+shadow-offset-y = -22;
+
shadow-exclude = [
"name = 'Notification'",
"class_g = 'Conky'",
@@ -37,84 +62,91 @@ shadow-exclude = [
"class_g = 'Cairo-clock'",
"class_g = 'slop'",
"class_g = 'Polybar'",
- "class_g = 'trayer'",
+ "class_g = 'Retroarch'",
+ "class_g = 'Rofi'",
"_GTK_FRAME_EXTENTS@:c"
];
+#################################
+# Fading #
+#################################
-# Fade windows in/out when opening/closing and when opacity changes,
-# unless no-fading-openclose is used.
-# fading = false
-fading = true;
-
+fading = false;
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
-# fade-in-step = 0.028
-fade-in-step = 0.03;
-
+fade-in-step = 0.28;
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
-# fade-out-step = 0.03
-fade-out-step = 0.03;
-
+fade-out-step = 0.09;
+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
-# Specify a list of conditions of windows that should not be faded.
-# don't need this, we disable fading for all normal windows with wintypes: {}
fade-exclude = [
- "class_g = 'slop'" # maim
+ "class_g = 'slop'",
+ "name = 'bar'",
+ "class_g = 'maim'",
+ "class_g = 'mpv'",
+ "class_g = 'bspwm'"
]
-# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
-inactive-opacity = 0.8
-# inactive-opacity = 1.00
-
-# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
-# frame-opacity = 1.0
-frame-opacity = 1.00
+#################################
+# Transparency / Opacity #
+#################################
-# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0)
-# menu-opacity = 1.0
-# menu-opacity is depreciated use dropdown-menu and popup-menu instead.
-
-#If using these 2 below change their values in line 510 & 511 aswell
-popup_menu = { opacity = 0.8; }
-dropdown_menu = { opacity = 0.8; }
-
-
-# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows.
-# inactive-opacity-override = true
+inactive-opacity = 0.95;
inactive-opacity-override = false;
-
-# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
-active-opacity = 1.00
+active-opacity = 1.0;
# Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
-# inactive-dim = 0.0
+inactive-dim = 1.0
-# Specify a list of conditions of windows that should always be considered focused.
-# focus-exclude = []
focus-exclude = [
"class_g = 'Cairo-clock'",
- "class_g = 'Bar'", # lemonbar
+ "class_g = 'Polybar'",
"class_g = 'slop'", # maim
- "class_g = 'trayer'" # trayer
+ "class_g = 'ranger'"
];
opacity-rule = [
- "100:class_g = 'XTerm'",
- "100:class_g = 'URxvt'",
+ "80:class_g = 'Bar'", # lemonbar
+ "100:class_g = 'slop'", # maim
+ "95:class_g = 'Alacritty'",
+ "95:class_g = 'Polybar'",
+ "95:class_g = 'Rofi'",
+ "97:class_g = 'obsidian'",
"100:class_g = 'firefox'",
- "100:class_g = 'Thunderbird'",
- "90:class_g = 'Alacritty'"
+ "97:class_g = 'Code'"
];
+#################################
+# General Settings #
+#################################
+
+experimental-backends = true;
+backend = "glx";
+# backend = "xrender";
+vsync = false;
+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; opacity = 0.75; focus = true; full-shadow = false; };
+ normal = { fade = true; shadow = true; }
+ tooltip = { fade = false; shadow = false; focus = true; full-shadow = false; }
dock = { shadow = false; }
- dnd = { shadow = true; }
- popup_menu = { opacity = 0.8; }
- dropdown_menu = { opacity = 0.8; }
+ dnd = { shadow = false; }
+ 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.old