compton: move to an helper binary

This commit is contained in:
Vincent Bernat 2020-01-17 09:58:07 +01:00
parent cb8b1e5434
commit 825f7b5b27
3 changed files with 10 additions and 2 deletions

8
bin/compton Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
exec compton \
--backend glx \
--xrender-sync \
--xrender-sync-fence \
--vsync opengl-swc \
--paint-on-overlay

View file

@ -37,7 +37,7 @@ case "$1" in
echo "$(date --rfc-3339=seconds) $me: lock: lock screen" echo "$(date --rfc-3339=seconds) $me: lock: lock screen"
pkill compton pkill compton
i3lock -n -e -i $HOME/.cache/awesome/current-wallpaper.png -t -f 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" echo "$(date --rfc-3339=seconds) $me: lock: unlock screen"
;; ;;
esac esac

View file

@ -23,12 +23,12 @@ systemctl --user import-environment
autorandr --change autorandr --change
. ~/.config/awesome/bin/xsettingsd-setup . ~/.config/awesome/bin/xsettingsd-setup
~/.config/awesome/bin/compton &
~/.config/awesome/bin/xss-lock start & ~/.config/awesome/bin/xss-lock start &
xiccd --edid & xiccd --edid &
setxkbmap us setxkbmap us
inputplug -0 -c ~/.config/awesome/bin/input-event 2> /dev/null inputplug -0 -c ~/.config/awesome/bin/input-event 2> /dev/null
redshift -l 2.35:48.87 -t 6500:3900 2> /dev/null & redshift -l 2.35:48.87 -t 6500:3900 2> /dev/null &
systemd-run -q --scope --user tmux start-server systemd-run -q --scope --user tmux start-server
compton --backend glx --xrender-sync --xrender-sync-fence --vsync opengl-swc --paint-on-overlay &
exec awesome exec awesome