From 825f7b5b277b46e497c2f4401384f674a2b35831 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 17 Jan 2020 09:58:07 +0100 Subject: [PATCH] compton: move to an helper binary --- bin/compton | 8 ++++++++ bin/xss-lock | 2 +- xsession | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 bin/compton diff --git a/bin/compton b/bin/compton new file mode 100755 index 0000000..df8034d --- /dev/null +++ b/bin/compton @@ -0,0 +1,8 @@ +#!/bin/sh + +exec compton \ + --backend glx \ + --xrender-sync \ + --xrender-sync-fence \ + --vsync opengl-swc \ + --paint-on-overlay diff --git a/bin/xss-lock b/bin/xss-lock index a572ef8..1eb61e7 100755 --- a/bin/xss-lock +++ b/bin/xss-lock @@ -37,7 +37,7 @@ case "$1" in echo "$(date --rfc-3339=seconds) $me: lock: lock screen" pkill compton i3lock -n -e -i $HOME/.cache/awesome/current-wallpaper.png -t -f - compton --backend glx --xrender-sync --xrender-sync-fence --vsync opengl-swc --paint-on-overlay & + ~/.config/awesome/bin/compton & echo "$(date --rfc-3339=seconds) $me: lock: unlock screen" ;; esac diff --git a/xsession b/xsession index 976929d..a30c906 100644 --- a/xsession +++ b/xsession @@ -23,12 +23,12 @@ systemctl --user import-environment autorandr --change . ~/.config/awesome/bin/xsettingsd-setup +~/.config/awesome/bin/compton & ~/.config/awesome/bin/xss-lock start & xiccd --edid & setxkbmap us inputplug -0 -c ~/.config/awesome/bin/input-event 2> /dev/null redshift -l 2.35:48.87 -t 6500:3900 2> /dev/null & systemd-run -q --scope --user tmux start-server -compton --backend glx --xrender-sync --xrender-sync-fence --vsync opengl-swc --paint-on-overlay & exec awesome