From 6f21a1d52ce4fbdc0cafd76c91b74b0e1b644c2d Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Tue, 12 Nov 2024 23:02:38 -0800 Subject: Composited electricsheep background services --- .config/systemd/user/picom.service | 9 +++++++++ .config/systemd/user/sheep.service | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .config/systemd/user/picom.service create mode 100644 .config/systemd/user/sheep.service (limited to '.config/systemd/user') 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' + + -- cgit v1.2.3