Skip to content

Instantly share code, notes, and snippets.

@hjhsalo
hjhsalo / locate-pointer-starter.sh
Last active December 3, 2024 12:14 — forked from sneetsher/locate-pointer.c
Locate mouse pointer (Highlight is removed after a certain amount of loop cycles. Optional bash startup script to prevent duplicate instances.)
#!/bin/bash
# A simple script to check if a process is running and if it is will
# kill and restart the process
# Modified from example provided at:
# https://www.m00nie.com/2011/12/script-to-check-if-a-process-is-running-and-if-not-start-it/
################################################
# The name of the program to check
PROGRAM=locate-pointer
################################################