Closed michalrus closed 7 years ago
When using Type=simple, systemd expects the process to remain running in the foreground. So either change the last line of the script to "exec xcape -d ...", or try using Type=forking.
FWIW: settings are being kept for me across suspend/resume, so there might be another issue.
I propose we close this. :smiley_cat:
This happened a long time ago and I cannot really replicate settings not being kept across suspend/resume, so…
Edit: on second thought, this was probably related to me using GNOME back then.
Because the xmodmap and xcape settings are not kept after suspend and resume, I’ve created a systemd service:
This
/home/m/space2ctrl
is a copy of the script from theREADME.md
withsleep 5
added (evenxmodmap
wouldn’t work otherwise):With this service, after resuming, the
xmodmap
mods work (Space is Ctrl), butxcape
exits immediately and no space can be typed.When the above script,
/home/m/space2ctrl
, is run manually in a terminal, everything works as expected.What could be the case?