Revert "picom: switch from compton to picom"

This reverts commit e6d1acc4ba. While
compton is unmaintained, it works for me. Unfortunately, I am unable
to find a solution to get picom working correctly. Both xr_gl_hybrid
and glx backends introduce some flickering while the xrender backend
is unable to remove tearing.
This commit is contained in:
Vincent Bernat 2020-08-19 14:55:52 +02:00
parent 61396904ee
commit 9b000caa1f
6 changed files with 16 additions and 12 deletions

View file

@ -40,9 +40,9 @@ case "$1" in
xdotool key XF86AudioStop xdotool key XF86AudioStop
# Then, lock screen # Then, lock screen
echo "lock: lock screen" echo "lock: lock screen"
systemctl --user stop picom@${display}.service systemctl --user stop compton@${display}.service
i3lock -n -e -i $HOME/.cache/awesome/current-wallpaper-${display}.png -t -f i3lock -n -e -i $HOME/.cache/awesome/current-wallpaper-${display}.png -t -f
systemctl --user start picom@${display}.service systemctl --user start compton@${display}.service
echo "lock: unlock screen" echo "lock: unlock screen"
;; ;;
esac esac

View file

@ -7,7 +7,7 @@ xss-lock
libnotify-bin libnotify-bin
xfonts-terminus xfonts-terminus
fonts-dejavu fonts-dejavu
picom compton
python3-xlib python3-xlib
python3-pil python3-pil
fvwm fvwm

View file

@ -2,7 +2,7 @@
Description=Awesome window manager for %I Description=Awesome window manager for %I
PartOf=graphical-session@%i.target PartOf=graphical-session@%i.target
After=autorandr@%i.service After=autorandr@%i.service
After=picom@%i.service After=compton@%i.service
After=xsettingsd@%i.service After=xsettingsd@%i.service
After=tmux.service After=tmux.service
After=ssh-agent.service After=ssh-agent.service

11
systemd/compton@.service Normal file
View file

@ -0,0 +1,11 @@
[Unit]
Description=Compositor for X11 on %I
PartOf=graphical-session@%i.target
[Service]
Environment=DISPLAY=%I
ExecStart=/usr/bin/compton --backend glx \
--xrender-sync \
--xrender-sync-fence \
--vsync opengl-swc \
--paint-on-overlay

View file

@ -3,7 +3,7 @@ Description=Graphical user session for %I
StopWhenUnneeded=yes StopWhenUnneeded=yes
Wants=autorandr@%i.service Wants=autorandr@%i.service
Wants=awesome@%i.service Wants=awesome@%i.service
Wants=picom@%i.service Wants=compton@%i.service
Wants=inputplug@%i.service Wants=inputplug@%i.service
Wants=misc-x@%i.service Wants=misc-x@%i.service
Wants=nm-applet@%i.service Wants=nm-applet@%i.service

View file

@ -1,7 +0,0 @@
[Unit]
Description=Compositor for X11 on %I
PartOf=graphical-session@%i.target
[Service]
Environment=DISPLAY=%I
ExecStart=/usr/bin/picom --vsync