From 88897c46e9adb357df80c365bab6b070c456acb8 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Tue, 30 Jun 2020 02:49:14 +0300 Subject: [PATCH] Swap xcompmgr for picom --- config/openbox/autostart | 10 +++++----- config/picom/picom.conf | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 config/picom/picom.conf diff --git a/config/openbox/autostart b/config/openbox/autostart index 5d05254..315f38e 100644 --- a/config/openbox/autostart +++ b/config/openbox/autostart @@ -1,15 +1,15 @@ # Set screen orientations -${HOME}/.config/openbox/screenlayout.sh +$HOME/.config/openbox/screenlayout.sh # Set background -${HOME}/.config/openbox/setbg.sh +$HOME/.config/openbox/setbg.sh # Start compositor -xcompmgr & +picom --experimental-backends --config $HOME/.config/picom/picom.conf & # Start panel -tint2 -c ${HOME}/.config/tint2/main & -tint2 -c ${HOME}/.config/tint2/secondary & +tint2 -c $HOME/.config/tint2/main & +tint2 -c $HOME/.config/tint2/secondary & # Start systray applications pnmixer & diff --git a/config/picom/picom.conf b/config/picom/picom.conf new file mode 100644 index 0000000..4c164c3 --- /dev/null +++ b/config/picom/picom.conf @@ -0,0 +1,26 @@ +backend = "glx"; +vsync = true; +use-damage = true; + +unredir-if-possible = true; +glx-no-stencil = true; +# glx-copy-from-front = false; +# glx-use-damage = false; + +shadow = true; + +shadow-radius = 16; +shadow-offset-x = -16; +shadow-offset-y = -12; +shadow-opacity = 0.35; + +shadow-exclude = [ + "! name ~=''", + "name *= 'tint2'", + "name *= 'picom'", + "name *= 'Vivaldi'", + "class_g = 'vlc'" + +]; + +# detect-rounded-corners = true;