dotfiles

My PC Dotfiles & Website
commit 77db84e7e27567e12cbe4f61e91e422f2cbe9435
parent f9cf52cba2349e4183df9dfa7bc30777826a16fc
Author: maydayv7 <maydayv7@gmail.com>
Date:   Thu, 25 Jan 2024 10:39:42 +0530

feat: Picom Blur

Diffstat:

Mfiles/xfce/gtk.css | 6++----
Mfiles/xfce/settings/xfce4-terminal.xml | 2+-
Mmodules/gui/compositor.nix | 42+++++++++++++++++++++++++++++++++++++-----
3 files changed, 40 insertions(+), 10 deletions(-)

diff --git a/files/xfce/gtk.css b/files/xfce/gtk.css @@ -1,6 +1,4 @@ .xfce4-panel#XfcePanelWindow { -XfcePanelWindow-autohide-size: 0; } -wnck-pager { - :hover { background-color: #7c818c; } - :selected { background-color: #5294e2; } -} +wnck-pager:hover { background-color: #7c818c; } +wnck-pager:selected { background-color: #5294e2; } diff --git a/files/xfce/settings/xfce4-terminal.xml b/files/xfce/settings/xfce4-terminal.xml @@ -2,7 +2,7 @@ <channel name="xfce4-terminal" version="1.0"> <property name="background-mode" type="string" value="TERMINAL_BACKGROUND_TRANSPARENT"/> - <property name="background-darkness" type="double" value="0.90000000000000002"/> + <property name="background-darkness" type="double" value="0.85"/> <property name="color-foreground" type="string" value="#839496"/> <property name="color-background" type="string" value="#002b36"/> <property name="color-palette" type="string" value="#000000;#cc0000;#4e9a06;#c4a000;#3465a4;#75507b;#06989a;#d3d7cf;#555753;#ef2929;#8ae234;#fce94f;#739fcf;#ad7fa8;#34e2e2;#eeeeec"/> diff --git a/modules/gui/compositor.nix b/modules/gui/compositor.nix @@ -18,23 +18,55 @@ in { ## Picom Configuration ## config = mkIf cfg.enable { - services.picom = { + services.picom = rec { enable = true; # Driver backend = "egl"; vSync = true; + # Shadows + shadow = true; + shadowExclude = [ + "name = 'cpt_frame_xcb_window'" + "class_g ?= 'zoom'" + "name *= 'Chrome'" + "class_g = 'firefox' && argb" + "class_g = 'thunderbird' && argb" + "_NET_WM_STATE@[*]:a = '_NET_WM_STATE_HIDDEN'" + ]; + + # Opacity + opacityRules = [ + "95:class_g = 'Code'" + "95:class_g = 'Ulauncher'" + ]; + wintypes = { + tooltip = {opacity = 0.8;}; + popup_menu = {opacity = 0.9;}; + dropdown_menu = {opacity = 0.9;}; + }; + # Behaviour fade = true; - shadow = true; - shadowExclude = ["class_g = 'firefox' && window_type = 'utility'"]; settings = { - inactive-dim = 0.15; + inactive-dim = 0.1; corner-radius = 10.0; detect-client-opacity = true; - focus-exclude = ["fullscreen"] ++ cfg.exclude; + focus-exclude = + [ + "fullscreen" + "_NET_WM_STATE@[*]:a ^= '_NET_WM_STATE_MAXIMIZED'" + ] + ++ cfg.exclude; + } + // + # Blur + { + blur-method = "dual_kawase"; + blur-strength = 3; + blur-background-exclude = shadowExclude; } // # Animations