summaryrefslogtreecommitdiff
path: root/.config/systemd
diff options
context:
space:
mode:
Diffstat (limited to '.config/systemd')
-rw-r--r--.config/systemd/user/picom.service9
-rw-r--r--.config/systemd/user/sheep.service10
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'
+
+