What about spawning once and for all? It would hide on startup. Then keypress shows it and starts the timer to rehide it. Then you wouldn’t have to worry about process management with flock. Each keypress just sets it to visible (which is fine if.it’s already visible) and restarts the timer.
You could use your daemon manager (systemd most commonly) to manage the process.
Just a thought. In any event, looks quite cool and I’ll give it a try 😃
What about spawning once and for all? It would hide on startup. Then keypress shows it and starts the timer to rehide it. Then you wouldn’t have to worry about process management with flock. Each keypress just sets it to visible (which is fine if.it’s already visible) and restarts the timer.
You could use your daemon manager (systemd most commonly) to manage the process.
Just a thought. In any event, looks quite cool and I’ll give it a try 😃