Add service and script to manage "mousespam"

This commit is contained in:
2022-12-16 14:30:33 +01:00
parent 62bb6d6d40
commit b7d2489f6d
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
[Service]
Type=simple
ExecStart=%h/bin/mousespam
RemainAfterExit=True
PassEnvironment=DISPLAY

2
bin/mousespam-toggle Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
systemctl --no-pager --user status mousespam && systemctl --no-pager --user stop mousespam || systemctl --no-pager --user start mousespam