[Xfce-bugs] [Bug 9792] Can't bind caps lock to control on startup
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Fri Jan 5 23:15:09 CET 2018
https://bugzilla.xfce.org/show_bug.cgi?id=9792
Eric D <ead+xfce at ixian.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ead+xfce at ixian.com
--- Comment #1 from Eric D <ead+xfce at ixian.com> ---
Date: Fri, 5 Jan 2018 14:10:13 PST
Hello,
To have my $HOME/.Xmodmap file take effect at Xfce4 startup, I used this
recipe:
1. click "Applications menu > Settings > Session and Startup" to bring up a
"Session and Startup" window
2. click the "Application Autostart" tab
3. click [ +Add ]
4a. in the "Add application" window that appears, enter something like:
Name: my xmodmap
Description: swap Caps_Lock and Control_L
Command: xmodmap .Xmodmap
4b. incidentally, my $HOME/.Xmodmap file contains (taken verbatim from the
xmodmap(1) manual page):
! swap Caps_Lock and Control_L
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
4c. dismiss the "Add application" window by clicking [ OK ]
4d. note the success, or not, of these alternate commands in the "Add
application" window:
Command: xmodmap $HOME/.Xmodmap (fail; environment variable $HOME
unexpanded)
Command: xmodmap ~/.Xmodmap (fail; shell metacharacter '~'
uninterpreted)
Command: xmodmap /home/myusername/.Xmodmap (success; absolute path name
ok)
5a. observe this new entry appear at the end of the Application Autostart list
(when visiting this list later, this new entry may appear elsewhere in the
list, other than at the end):
[v] my xmodmap (swap Caps_Lock and Control_L)
5b. note the creation of the small text file $HOME/.config/autostart/my
xmodmap.desktop, containing the likes of:
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=my xmodmap
Comment=swap Caps_Lock and Control_L
Exec=xmodmap .Xmodmap
StartupNotify=false
Terminal=false
Hidden=false
6. close the "Session and Startup" window by clicking [ Close ]
7. exit and restart Xfce to have your $HOME/.Xmodmap file take effect
8. I tested this recipe under Xfce Version 4.8 (under Debian Linux 7.11
(wheezy)) and Xfce Version 4.12 (under FreeBSD 11.1-RELEASE)
Regards,
Eric D
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list