os/+arch: tweak compton for stability (fix stuttering)

This commit is contained in:
Henrik Lissner 2017-05-10 20:56:31 +02:00
parent f159859bbf
commit 8346717aae
2 changed files with 12 additions and 11 deletions

View file

@ -1,4 +1,4 @@
backend = "glx"; backend = "xrender";
glx-no-stencil = true; glx-no-stencil = true;
glx-copy-from-front = false; glx-copy-from-front = false;
glx-no-rebind-pixmap = true; glx-no-rebind-pixmap = true;
@ -18,7 +18,7 @@ glx-swap-method = "undefined";
# + opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the # + opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the
# same as opengl-swc above, except the extension we use. # same as opengl-swc above, except the extension we use.
# (Note some VSync methods may not be enabled at compile time.) # (Note some VSync methods may not be enabled at compile time.)
vsync = "opengl-mswc"; vsync = "none";
# Limit compton to repaint at most once every 1 / refresh_rate second to boost # Limit compton to repaint at most once every 1 / refresh_rate second to boost
# performance. This should not be used with --vsync drm/opengl/opengl-oml as they # performance. This should not be used with --vsync drm/opengl/opengl-oml as they
@ -41,11 +41,12 @@ unredir-if-possible = true;
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused # Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused
# at the same time. # at the same time.
detect-transient = true; detect-transient = false;
# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused # Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused
# at the same time. WM_TRANSIENT_FOR has higher priority if --detect-transient is # at the same time. WM_TRANSIENT_FOR has higher priority if --detect-transient is
# enabled, too. # enabled, too.
detect-client-leader = true; detect-client-leader = false;
######################################## ########################################
@ -80,9 +81,9 @@ shadow-ignore-shaped = true;
# #
######################################## ########################################
menu-opacity = 0.95; menu-opacity = 1;
active-opacity = 1.00; active-opacity = 1;
inactive-opacity = 0.90; inactive-opacity = 0.9;
inactive-dim = 0.25; inactive-dim = 0.25;
# frame-opacity = 0.8; # frame-opacity = 0.8;
inactive-opacity-override = false; inactive-opacity-override = false;
@ -103,7 +104,7 @@ fade-out-step = 0.08;
detect-rounded-corners = true; detect-rounded-corners = true;
#mark-wmwin-focused = true; #mark-wmwin-focused = true;
#mark-ovredir-focused = true; #mark-ovredir-focused = true;
#refresh-rate = 0; refresh-rate = 0;
focus-exclude = [ focus-exclude = [
"class_g = 'love'", "class_g = 'love'",

View file

@ -1,7 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export __GL_THREADED_OPTIMISATIONS=1
# Maybe start this daemon # Maybe start this daemon
running() { pgrep -x "$1" >/dev/null; } running() { pgrep -x "$1" >/dev/null; }
run() { run() {
@ -29,7 +27,9 @@ run feh --no-fehbg --image-bg black --bg-center "$HOME/wallpaper"
# essentials # essentials
run sxhkd & # keyboard daemon run sxhkd & # keyboard daemon
run dunst & # notifications run dunst & # notifications
run compton & # perdy effects + transparency
# perdy effects + transparency
[[ -f ~/.config/compton.conf ]] && run compton &
# non-essentials # non-essentials
run mpd & # music server run mpd & # music server