From 101f3e6d66fd55cef3270eb6eb3df229bce7b4a0 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 20 Jul 2023 11:32:06 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0picom=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/config/picom/picom.conf | 38 ++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/home/config/picom/picom.conf b/home/config/picom/picom.conf index 7335327..366cafd 100644 --- a/home/config/picom/picom.conf +++ b/home/config/picom/picom.conf @@ -2,6 +2,18 @@ backend = "glx"; vsync = true; + +# 圆角 +corner-radius = 4; + +rounded-corners-exclude = [ +# "window_type = 'normal'", + "window_type = 'dock'", + "window_type = 'desktop'", + "class_g ?= 'rofi'", + "class_g ?= 'polybar'" +]; + # 阴影 shadow = true; shadow-radius = 12; @@ -14,6 +26,11 @@ shadow-exclude = [ "class_g *= '.exe'", # chrome "name *= 'Chrome'", + + "class_g ?= 'rofi'", + "class_g = 'io.github.celluloid_player.Celluloid'", + "class_g = 'gnome-builder'", + # 这个是啥我也不清楚, 大家都写 "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", @@ -31,7 +48,6 @@ fade-out-step = 0.03; fade-delta = 5; fade-exclude = [ - "class_g = 'slop'", "class_g *= 'fcitx'" ] @@ -41,7 +57,10 @@ fade-exclude = [ opacity-rule = [ # telegram pop media viewer "100:name = 'Media viewer'", - "100:class_g *= 'Gnome-boxes'", + "100:class_g = 'Gnome-boxes'", + "100:class_g = 'gnome-builder'", + "100:class_g = 'io.github.celluloid_player.Celluloid'", + "100:name *= 'Chrome'", "100:class_g *= '.exe'" ] @@ -55,10 +74,13 @@ blur-size = 3; blur-background-exclude = [ # wine 应用不加模糊 "class_g *= '.exe'", -# "window_type = 'dock'", + "window_type = 'dock'", "window_type = 'desktop'", - "class_g = 'slop'" -# "_GTK_FRAME_EXTENTS@:c" + "window_type = 'tooltip'", +# "window_type = 'popup_menu'", + "class_g = 'io.github.celluloid_player.Celluloid'", + "class_g = 'gnome-builder'", + "_GTK_FRAME_EXTENTS@:c" ]; wintypes: @@ -69,6 +91,6 @@ wintypes: dock = {shadow = false;} utility = {shadow = false;} dnd = {shadow = true;} - popup_menu = {shadow = false; opacity = 0.93;} - dropdown_menu = {shadow = false; opacity = 0.93;} -} \ No newline at end of file + popup_menu = { shadow = false; opacity = 0.93;} + dropdown_menu = { shadow = false; opacity = 0.93;} +}