From 3ba1e7e45d607be15da3de26d257864038e16241 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 5 Jul 2021 18:20:36 +0200 Subject: [PATCH] picom: switch to a configuration file It's easier to edit rules this way. Also, add some rules. --- dotfiles/picom.conf | 18 ++++++++++++++++++ dotfiles/systemd/picom.service | 7 +------ dotfiles/xsession | 1 + 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 dotfiles/picom.conf diff --git a/dotfiles/picom.conf b/dotfiles/picom.conf new file mode 100644 index 0000000..5cfb9b6 --- /dev/null +++ b/dotfiles/picom.conf @@ -0,0 +1,18 @@ +backend = "glx"; +xrender-sync-fence = true; +vsync = true; + +# Opacity +inactive-opacity = 0.85; +inactive-opacity-override = true; +mark-ovredir-focused = true; +focus-exclude = [ + "fullscreen" +]; +fading = true; +wintypes: +{ + popup_menu = { opacity = 1; } + dropdown_menu = { opacity = 1; } + menu = { opacity = 1; } +} diff --git a/dotfiles/systemd/picom.service b/dotfiles/systemd/picom.service index 1998149..853fa86 100644 --- a/dotfiles/systemd/picom.service +++ b/dotfiles/systemd/picom.service @@ -3,10 +3,5 @@ Description=Compositor for X11 PartOf=graphical-session.target [Service] -ExecStart=/usr/bin/picom --backend glx \ - --xrender-sync-fence \ - --vsync \ - --inactive-opacity 0.85 \ - --opacity-rule 100:fullscreen \ - --opacity-rule 100:override_redirect +ExecStart=/usr/bin/picom Restart=on-failure diff --git a/dotfiles/xsession b/dotfiles/xsession index c876a80..1915482 100644 --- a/dotfiles/xsession +++ b/dotfiles/xsession @@ -31,6 +31,7 @@ gtk3.css .config/gtk-3.0/gtk.css qt5ct.conf .config/qt5ct/qt5ct.conf systemd .config/systemd/user dunstrc .config/dunst/dunstrc +picom.conf .config/picom.conf polybar.conf .config/polybar/config firefox.js .mozilla/firefox/*/user.js EOF