diff options
author | Joe Rayhawk <jrayhawk@fairlystable.org> | 2024-11-12 23:02:38 -0800 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@fairlystable.org> | 2024-11-12 23:02:38 -0800 |
commit | 6f21a1d52ce4fbdc0cafd76c91b74b0e1b644c2d (patch) | |
tree | 4fe60ee5c88c9115cc423937e086e4ccd54f3408 /.config/systemd/user | |
parent | 93ac3e64c20df46e46375db7eedbf7157f654967 (diff) | |
download | jrayhawk-dotfiles-6f21a1d52ce4fbdc0cafd76c91b74b0e1b644c2d.tar.gz jrayhawk-dotfiles-6f21a1d52ce4fbdc0cafd76c91b74b0e1b644c2d.zip |
Composited electricsheep background services
Diffstat (limited to '.config/systemd/user')
-rw-r--r-- | .config/systemd/user/picom.service | 9 | ||||
-rw-r--r-- | .config/systemd/user/sheep.service | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/.config/systemd/user/picom.service b/.config/systemd/user/picom.service new file mode 100644 index 0000000..22b69dc --- /dev/null +++ b/.config/systemd/user/picom.service @@ -0,0 +1,9 @@ +[Unit] +Description=Picom X11 Compositor +ConditionEnvironment=DISPLAY + +[Service] +ExecCondition=sh -c "! echo $WAYLAND_DISPLAY | grep -q ." +ExecStart=picom --write-pid-path=%t/picom.pid + + diff --git a/.config/systemd/user/sheep.service b/.config/systemd/user/sheep.service new file mode 100644 index 0000000..2b7ffb1 --- /dev/null +++ b/.config/systemd/user/sheep.service @@ -0,0 +1,10 @@ +[Unit] +Description=Electric Sheep +ConditionEnvironment=DISPLAY +Requires=picom.service + +[Service] +ExecCondition=sh -c "! echo $WAYLAND_DISPLAY | grep -q ." +ExecStart=bash -c 'exec src/xwinwrap/xwinwrap -b -s -fs -st -sp -nf -ov -fdt -ovr -- mpv -wid WID --no-osc -loop --stop-screensaver=no -ao null --really-quiet -start=$(( $RANDOM % 100 ))% --input-ipc-server=$XDG_RUNTIME_DIR/mpv-desktop.sock --load-scripts=no /mnt/sheep/4ksheep_264_2pass_crf24_speed1_bv45M.mp4' + + |