From: Amin Bandali Date: Sat, 7 Sep 2019 05:01:56 +0000 (-0400) Subject: compton: add X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/9353204b7d4e3f92db61e21f1fc4c724b41db930?ds=sidebyside;hp=8bbb67ce1950243d6c0a9fb0f685bfc795d687be compton: add https://github.com/yshui/compton 02139b7c9f8aa6181686edacd3f11c1f37f80693 sudo apt install libxext-dev libxcb1-dev libxcb-damage0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-randr0-dev libxcb-composite0-dev libxcb-image0-dev libxcb-present-dev libxcb-xinerama0-dev libpixman-1-dev libdbus-1-dev libconfig-dev libxdg-basedir-dev libgl1-mesa-dev libpcre2-dev libevdev-dev uthash-dev libevdev2 cmake meson --prefix=/data/bandali/usr/local --buildtype=release . build ninja -C build ninja -C build install --- diff --git a/.config/compton/compton.conf b/.config/compton/compton.conf new file mode 100644 index 0000000..0ed48ab --- /dev/null +++ b/.config/compton/compton.conf @@ -0,0 +1,84 @@ +# Shadow +shadow = true; +shadow-radius = 7; +shadow-offset-x = -7; +shadow-offset-y = -7; +log-level = "warn"; +# log-file = "/path/to/your/log/file"; +# shadow-opacity = 0.7; +# shadow-red = 0.0; +# shadow-green = 0.0; +# shadow-blue = 0.0; +shadow-exclude = [ + "name = 'Notification'", + "class_g = 'Conky'", + "class_g ?= 'Notify-osd'", + "class_g = 'Cairo-clock'", + "_GTK_FRAME_EXTENTS@:c" +]; +# shadow-exclude = "n:e:Notification"; +# shadow-exclude-reg = "x10+0+0"; +# xinerama-shadow-crop = true; + +# Opacity +inactive-opacity = 0.8; +# active-opacity = 0.8; +frame-opacity = 0.7; +inactive-opacity-override = false; +# inactive-dim = 0.2; +# inactive-dim-fixed = true; +# blur-background = true; +# blur-background-frame = true; +blur-kern = "3x3box"; +# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; +# blur-background-fixed = true; +blur-background-exclude = [ + "window_type = 'dock'", + "window_type = 'desktop'", + "_GTK_FRAME_EXTENTS@:c" +]; +# opacity-rule = [ "80:class_g = 'URxvt'" ]; + +# Fading +fading = true; +# fade-delta = 30; +fade-in-step = 0.03; +fade-out-step = 0.03; +# no-fading-openclose = true; +# no-fading-destroyed-argb = true; +fade-exclude = [ ]; + +# Other +backend = "xrender"; +mark-wmwin-focused = true; +mark-ovredir-focused = true; +# use-ewmh-active-win = true; +detect-rounded-corners = true; +detect-client-opacity = true; +refresh-rate = 0; +vsync = true; +# sw-opti = true; +# unredir-if-possible = true; +# unredir-if-possible-delay = 5000; +# unredir-if-possible-exclude = [ ]; +focus-exclude = [ "class_g = 'Cairo-clock'" ]; +detect-transient = true; +detect-client-leader = true; +invert-color-include = [ ]; +# resize-damage = 1; + +# GLX backend +# glx-no-stencil = true; +# glx-no-rebind-pixmap = true; +# xrender-sync-fence = true; +use-damage = true; + +# Window type settings +wintypes: +{ + tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; + dock = { shadow = false; } + dnd = { shadow = false; } + popup_menu = { opacity = 0.8; } + dropdown_menu = { opacity = 0.8; } +}; diff --git a/.xsession b/.xsession index 95821d3..edce4c6 100755 --- a/.xsession +++ b/.xsession @@ -1,5 +1,6 @@ [ -f "/usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd" ] && /usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd & [ -x "$(command -v light-locker)" ] && light-locker --lock-on-suspend & -[ -x "$(command -v pasystray)" ] && pasystray & +[ -x "$(command -v pasystray)" ] && pasystray -a & [ -x "$(command -v nm-applet)" ] && nm-applet & +[ -x "$(command -v compton)" ] && compton & [ -x "$(command -v emacs)" ] && exec emacs -ib 0