alols / xcape

Linux utility to configure modifier keys to act as other keys when pressed and released on their own.
GNU General Public License v3.0
2.1k stars 117 forks source link

detect if running with same parameters #56

Open Konfekt opened 8 years ago

Konfekt commented 8 years ago

After starting xcape, it detects if it is already running with the same command line parameters as passed to it and does not start again, instead of spawning a new process? (Useful, for example, if xcape autostarts with your window manager that, on a restart, would load it unnecessarily again.)

grenzionky commented 4 years ago

why is this 4 years old and not implemented yet… its such a crucial feature…

Konfekt commented 4 years ago

I worked around it by a variable in X11 that indicates if the autostart scripts were already run. See https://github.com/lcpz/awesome-copycats/blob/f3cd5275ddbe161fb58f277150a4e7a460070681/rc.lua.template#L62

grenzionky commented 4 years ago

i just put a killall xcape line right before it. lol