aboutsummaryrefslogtreecommitdiff
path: root/.config/picom.conf
diff options
context:
space:
mode:
Diffstat (limited to '.config/picom.conf')
-rw-r--r--.config/picom.conf97
1 files changed, 97 insertions, 0 deletions
diff --git a/.config/picom.conf b/.config/picom.conf
new file mode 100644
index 0000000..f88a591
--- /dev/null
+++ b/.config/picom.conf
@@ -0,0 +1,97 @@
+# do not touch, shit finally works w/ gpu
+# backend = "xrender";
+backend = "glx";
+vsync = true;
+
+corner-radius = 10;
+
+shadow = true;
+shadow-radius = 48;
+shadow-opacity = 0.4;
+shadow-offset-y = -48;
+shadow-offset-x = -48;
+
+fade = false;
+fade-in-step = 0.3;
+fade-out-step = 0.18;
+fade-delta = 16;
+
+rules = (
+ {
+ match = "!I3_FLOATING_WINDOW@ = 1";
+ shadow = false;
+ corner-radius = 0;
+ },
+ {
+ match = "window_type *= 'desktop'";
+ shadow = false;
+ },
+ {
+ match = "window_type *= 'notification'";
+ fade = true;
+ corner-radius = 12;
+ shadow = true;
+ },
+ {
+ match = "_NET_WM_STATE@[*] = '_NET_WM_STATE_ABOVE'";
+ shadow = true;
+ corner-radius = 10;
+ },
+ {
+ match = "window_type *= 'menu' && override_redirect";
+ corner-radius = 0;
+ full-shadow = true;
+ shadow = true;
+ },
+ {
+ match = "window_type *= 'tooltip'";
+ fade = true;
+ shadow = false;
+ corner-radius = 0;
+ },
+ {
+ match = "window_type *= 'dock'";
+ shadow = false;
+ corner-radius = 0;
+ },
+ {
+ match = "window_type *= 'popup_menu'";
+ shadow = true;
+ corner-radius = 10;
+ },
+)
+
+animations = (
+ {
+ triggers = [ "geometry" ];
+ offset-x = {
+ curve = "cubic-bezier(0.05, 0, 0, 1)";
+ duration = 0.250;
+ start = "window-x-before - window-x";
+ end = 0;
+ };
+ offset-y = {
+ curve = "cubic-bezier(0.05, 0, 0, 1)";
+ duration = 0.250;
+ start = "window-y-before - window-y";
+ end = 0;
+ };
+ shadow-offset-x = "offset-x";
+ shadow-offset-y = "offset-y";
+ saved-image-blend = 0;
+ },
+ {
+ triggers = [ "open" ];
+ preset = "appear";
+ scale = 0.95;
+ duration = 0.075;
+ },
+ {
+ triggers = [ "close" ];
+ preset = "disappear";
+ scale = 0.95;
+ duration = 0.075;
+ },
+);
+
+# vim: ft=conf