aboutsummaryrefslogtreecommitdiff
path: root/home/dot_config/picom.conf
blob: 372806aa50bfe521cbd307f1ff6271ada387fc67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# 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.2;
shadow-offset-y = -36;
shadow-offset-x = -48;

fade = false;
fade-in-step = 0.3;
fade-out-step = 0.18;
fade-delta = 16;

rules = (
	{
		match = "class_i *= 'scrcpy'";
		corner-radius = 32;
	},
	{
		match = "!I3_FLOATING_WINDOW@ = 1";
		shadow = false;
		corner-radius = 0;
	},
	{
		match = "window_type *= 'desktop'";
		shadow = false;
	},
	{
		match = "window_type *= 'splash'";
		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;
		animations = (
			{
				triggers = [ "open" ];
				preset = "slide-in";
				direction = "up";
				duration = 0.200;
			},
			{
				triggers = [ "close" ];
				preset = "slide-out";
				direction = "up";
				duration = 0.175;
			},
		);
	},
	{
		match = "window_type *= 'combo'";
		shadow = true;
		corner-radius = 10;
	},
	{
		match = "window_type *= 'popup'";
		shadow = true;
		corner-radius = 10;
	},
	{
		match = "class_i *= 'RAIL'";
		corner-radius = 0;
	},
	{
		match = "_NET_WM_STATE@[*] = '_NET_WM_STATE_FULLSCREEN'";
		shadow = false;
	},
)

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