diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-07-23 09:14:34 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-07-23 09:14:34 +0800 |
| commit | 9b8128a9342500fa4dd43331bd2eb6c8b4ed9b07 (patch) | |
| tree | adda4f289032db1e3847b766112e83a5141116f3 /autoclicker-right.sh | |
| parent | b8aa6b6a516ac4ae5a104d7de96f31ced7f16d55 (diff) | |
updated
Diffstat (limited to 'autoclicker-right.sh')
| -rwxr-xr-x | autoclicker-right.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/autoclicker-right.sh b/autoclicker-right.sh new file mode 100755 index 0000000..e9d08e8 --- /dev/null +++ b/autoclicker-right.sh @@ -0,0 +1,8 @@ +#!/bin/sh +if [ -f /var/lock/autoclicker-right.lock ]; then + killall autoclicker-right + sudo rm -f /var/lock/autoclicker-right.lock +elif [ ! -f /var/lock/autoclicker-right.lock ]; then + autoclicker-right & + sudo touch /var/lock/autoclicker-right.lock +fi |
