From 41e9521201cdda672f55de2a4ea8ef90a66a829b Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 7 Feb 2019 21:10:38 +0100 Subject: [PATCH] xsession: more compton magic Inspired from https://github.com/jEsuSdA/the-perfect-desktop/blob/master/compton/compton.conf --- xsession | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xsession b/xsession index 4d71e72..4199884 100644 --- a/xsession +++ b/xsession @@ -42,11 +42,20 @@ systemd-run -q --scope --user tmux start-server case $(glxinfo | awk -F': ' '($1 == "OpenGL vendor string") {print $2}') in "NVIDIA Corporation") # --glx-swap-method 2 causes cursor to be duplicated earlier on the line or flickering + # --glx-swap-method X causes delay in refresh (visible when exiting a group in Gnus) # --glx-no-rebind-pixmap triggers some slow refresh, eg when using `delete-indentation' in Emacs #compton --daemon --backend glx --vsync opengl-swc --glx-swap-method 3 --paint-on-overlay + compton --daemon --backend glx \ + --glx-no-stencil \ + --glx-copy-from-front \ + --glx-no-rebind-pixmap \ + --refresh-rate 0 \ + --vsync opengl-swc \ + --paint-on-overlay \ + --unredir-if-possible \ + --no-dnd-shadow --no-dock-shadow # It seems there is no way to not have tearing with xrender... #compton --daemon --backend xrender --paint-on-overlay - # Everything is so slow... ;; *) compton --daemon --backend glx --xrender-sync --xrender-sync-fence --vsync opengl-swc --paint-on-overlay