From 0d6ffc3e03426766c6b1f3ec376523296d268a29 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 25 Feb 2021 10:34:40 +0800 Subject: [PATCH] [feature] rounded corner --- gui/picom.sh | 3 ++- gui/picom/picom.conf | 35 +++++++++++++++++++++++++++++++++++ gui/picom/picomdaemon | 2 +- 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/gui/picom.sh b/gui/picom.sh index d714ee6..d4d7fc2 100755 --- a/gui/picom.sh +++ b/gui/picom.sh @@ -25,7 +25,8 @@ esac # build and install picom #intorepo https://github.com/klesh/picom.git "$DIR/repos/picom" -intorepo https://github.com/yshui/picom.git "$DIR/repos/picom" +#intorepo https://github.com/yshui/picom.git "$DIR/repos/picom" +intorepo https://github.com/ibhagwan/picom.git "$DIR/repos/picom" meson --buildtype=release . build sudo ninja -C build install exitrepo diff --git a/gui/picom/picom.conf b/gui/picom/picom.conf index 1f510e1..094050b 100644 --- a/gui/picom/picom.conf +++ b/gui/picom/picom.conf @@ -1,4 +1,39 @@ ################################# +# Corners # +################################# +# requires: https://github.com/sdhand/compton +corner-radius = 7.0; +rounded-corners-exclude = [ + #"window_type = 'normal'", + "class_g = 'awesome'", + "class_g = 'URxvt'", + "class_g = 'XTerm'", + "class_g = 'kitty'", + "class_g = 'Alacritty'", + #"class_g = 'Polybar'", + "class_g = 'code-oss'", + "class_g = 'firefox'", + "class_g = 'Thunderbird'" +]; +round-borders = 3; +round-borders-exclude = [ + #"class_g = 'TelegramDesktop'", +]; + +# Specify a list of border width rules, in the format `PIXELS:PATTERN`, +# Note we don't make any guarantee about possible conflicts with the +# border_width set by the window manager. +# +# example: +# round-borders-rule = [ "2:class_g = 'URxvt'" ]; +# +round-borders-rule = [ + "3:class_g = 'XTerm'", + "3:class_g = 'URxvt'", + "10:class_g = 'Alacritty'", + "15:class_g = 'Signal'" +]; +################################# # Shadows # ################################# diff --git a/gui/picom/picomdaemon b/gui/picom/picomdaemon index 1401192..b4f1cea 100755 --- a/gui/picom/picomdaemon +++ b/gui/picom/picomdaemon @@ -11,7 +11,7 @@ stop() { start() { echo start picom -b --experimental-backends \ - --blur-method dual_kawase --blur-strength 6 \ + --blur-method dual_kawase --blur-strength 7 --blur-size 15 \ --no-fading-openclose sleep 1 ! pgrep -x picom >/dev/null && echo 'fallback' && picom -b --no-fading-openclose