Set up xcape ...
... to enable us to use Caps Lock as another Excape key
This commit is contained in:
parent
1c00046798
commit
777607fa37
2 changed files with 13 additions and 0 deletions
12
.config/systemd/user/xcape.service
Normal file
12
.config/systemd/user/xcape.service
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
# Works together with "xkb-options" in ~/.config/gnome-settings/misc.ini
|
||||||
|
Description=Tap Caps Lock (acting as Control) to send Escape
|
||||||
|
ConditionEnvironment=XDG_SESSION_TYPE=x11
|
||||||
|
ConditionPathExists=/usr/bin/xcape
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/bin/xcape -e 'Caps_Lock=Escape'
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical-session.target
|
||||||
|
|
@ -176,6 +176,7 @@ fi
|
||||||
if systemctl --user daemon-reload 2>/dev/null; then
|
if systemctl --user daemon-reload 2>/dev/null; then
|
||||||
systemctl --user enable gnome-restore.service
|
systemctl --user enable gnome-restore.service
|
||||||
systemctl --user enable night-light-reset.timer
|
systemctl --user enable night-light-reset.timer
|
||||||
|
systemctl --user enable xcape.service
|
||||||
else
|
else
|
||||||
echo "WARN: no systemd user session, units not enabled" >&2
|
echo "WARN: no systemd user session, units not enabled" >&2
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue