From 93e45070182c130080c399fa88c11b93a6f68c78 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Sat, 23 Jan 2021 14:54:51 +0100 Subject: [PATCH] Improved picom config for better performances and reduced power consumption, refactored mimeapps.list --- i3/.config/i3/config | 2 +- mime/.config/mimeapps.list | 68 +++++++++++++++++++------------------- picom/.config/picom/config | 41 ++++++++++++++++++----- 3 files changed, 68 insertions(+), 43 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 6e69019..bc8589d 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -239,7 +239,7 @@ exec_always --no-startup-id numlockx on exec --no-startup-id feh --bg-fill $HOME/Scaricati/alfven-ato-array.jpg # Compositor -exec --no-startup-id picom --experimental-backends --config ~/.config/picom/config +exec --no-startup-id picom --config ~/.config/picom/config # Notification Manager (dunst) exec --no-startup-id envsubst < ~/.config/dunst/dunstrc.template > ~/.config/dunst/dunstrc && dunst --config $HOME/.config/dunst/dunstrc diff --git a/mime/.config/mimeapps.list b/mime/.config/mimeapps.list index 4e0cd2f..12c17c1 100644 --- a/mime/.config/mimeapps.list +++ b/mime/.config/mimeapps.list @@ -1,37 +1,34 @@ -[Added Associations] -application/octet-stream=org.gnome.gedit.desktop; -image/gif=mpv.desktop; -text/x-python3=org.gnome.gedit.desktop; -image/png=feh.desktop;org.gnome.eog.desktop;gimp.desktop; -image/svg+xml=org.inkscape.Inkscape.desktop;org.gnome.gedit.desktop;inkscape.desktop;gimp.desktop;feh.desktop; -application/pdf=org.gnome.Evince.desktop;org.inkscape.Inkscape.desktop;org.pwmt.zathura-pdf-poppler.desktop; -text/html=firefox.desktop; -image/jpeg=feh.desktop;gimp.desktop;org.gnome.eog.desktop; -application/xml=org.gnome.gedit.desktop; -text/plain=org.gnome.gedit.desktop; -text/x-tex=org.gnome.latexila.desktop;org.gnome.gedit.desktop; -text/x-bibtex=org.gnome.latexila.desktop; -text/csv=libreoffice-calc.desktop;org.gnome.gedit.desktop; -video/mp4=mpv.desktop;vlc.desktop; -application/zip=org.gnome.Nautilus.desktop;org.gnome.FileRoller.desktop; -video/mpeg=vlc.desktop;mpv.desktop; -text/markdown=org.gnome.gedit.desktop; -audio/x-vorbis+ogg=mpv.desktop; -x-scheme-handler/rdp=org.remmina.Remmina.desktop; -x-scheme-handler/spice=org.remmina.Remmina.desktop; -x-scheme-handler/vnc=org.remmina.Remmina.desktop; -x-scheme-handler/remmina=org.remmina.Remmina.desktop; -application/x-remmina=org.remmina.Remmina.desktop; -video/x-matroska=mpv.desktop;vlc.desktop; -video/x-flv=mpv.desktop; -audio/flac=mpv.desktop; -text/vcard=org.gnome.gedit.desktop; - [Default Applications] +inode/directory=nemo.desktop text/plain=org.gnome.gedit.desktop +text/markdown=typora.desktop +text/csv=org.gnome.gedit.desktop +text/html=firefox.desktop +text/x-python3=org.gnome.gedit.desktop +text/x-tex=org.gnome.latexila.desktop +text/x-bibtex=org.gnome.latexila.desktop image/svg+xml=inkscape.desktop -image/jpeg=feh.desktop;gimp.desktop -inode/directory=org.gnome.Nautilus.desktop +image/bmp=sxiv.desktop +image/jpeg=sxiv.desktop +image/png=sxiv.desktop +image/gif=userapp-sxiv-CKNOX0.desktop +audio/x-vorbis+ogg=mpv.desktop +audio/mpeg=mpv.desktop +audio/wav=mpv.desktop +audio/flac=mpv.desktop +audio/x-aac=mpv.desktop +audio/vnd.dts=mpv.desktop +audio/vnd.dts.hd=mpv.desktop +video/mpeg=mpv.desktop +video/mp4=mpv.desktop +video/x-matroska=mpv.desktop +video/x-flv=mpv.desktop +video/avi=mpv.desktop +video/divx=mpv.desktop +video/mp2t=mpv.desktop +video/webm=mpv.desktop +application/x-remmina=org.remmina.Remmina.desktop +application/zip=org.gnome.FileRoller.desktop application/pdf=org.pwmt.zathura-pdf-poppler.desktop x-scheme-handler/http=firefox.desktop x-scheme-handler/https=firefox.desktop @@ -39,6 +36,9 @@ x-scheme-handler/rdp=org.remmina.Remmina.desktop x-scheme-handler/spice=org.remmina.Remmina.desktop x-scheme-handler/vnc=org.remmina.Remmina.desktop x-scheme-handler/remmina=org.remmina.Remmina.desktop -application/x-remmina=org.remmina.Remmina.desktop -application/zip=org.gnome.FileRoller.desktop -image/jpeg=feh.desktop + +[Added Associations] +image/gif=gimp.desktop; + +[Removed Associations] +inode/directory=code.desktop;easytag.desktop;org.gnome.baobab.desktop diff --git a/picom/.config/picom/config b/picom/.config/picom/config index bfce7fe..f902e4c 100644 --- a/picom/.config/picom/config +++ b/picom/.config/picom/config @@ -2,6 +2,10 @@ backend = "glx"; vsync = true; +glx-no-stencil = true; + +# Good performances gain, but could be buggy with intel cards +#glx-no-rebind-pixmap = true; ## Shadow @@ -11,6 +15,13 @@ shadow-offset-x = -1; shadow-offset-y = -1; shadow-opacity = 0.3; +shadow-exclude = [ + "_GTK_FRAME_EXTENTS@:c", + "_NET_WM_STATE@:a *= '_NET_WM_STATE_HIDDEN'", + "class_g = 'URxvt'", + "class_g = 'TelegramDesktop'" +]; + ## Fading fading = true; @@ -19,25 +30,39 @@ fade-in-step = 0.03; fade-out-step = 0.03; no-fading-openclose = false; -# Good performances gain, but could be buggy with intel cards -#glx-no-rebind-pixmap = true; +fade-exclude = [ + "window_type = 'popup_menu'", + "window_type = 'menu'", + "window_type = 'utility'", + "class_g = 'TeamSpeak 3'" +] ## Opacity opacity-rule = [ - "90:class_g = 'URxvt' && !_NET_WM_STATE@:32a", - "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" + "90:class_g = 'URxvt' && !_NET_WM_STATE@:32a" +# "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ]; ## Blur -blur-background = true; -blur-method = "gaussian"; +blur-background = false; +blur-method = "kernel"; blur-size = 10; blur-deviation = 5.0; +blur-kern= "7x7box"; + +# Blur background of opaque windows with transparent frames as well. +blur-background-frame = false; +# Do not let blur radius adjust based on window opacity. +blur-background-fixed = true; blur-background-exclude = [ "_GTK_FRAME_EXTENTS@:c", - "_NET_WM_STATE@:a *= '_NET_WM_STATE_HIDDEN'" + "_NET_WM_STATE@:a *= '_NET_WM_STATE_HIDDEN'", + "window_type = 'utility'", + "window_type = 'dialog'", + "window_type = 'notification'", + "window_type = 'normal' && !class_g = 'URxvt'", + "class_g = 'TeamSpeak 3'" ]; -