I have some enhancements for my keyboard through xmodmap - commands, and I run them through 'application autostart' on xfce settings. All other bindings are properly set, but Caps Lock remains Caps Lock. If I run script manually after xfce has booted, everything works as supposed. Command I use for binding capslock: xmodmap -e 'clear Lock' -e 'keycode 0x42 = Control_L' -e 'add Control = Control_L' This also works on startup with awesome WM on same machine, so it's quite propably xfce-related. I'm using Xfce 4.10 on Xubuntu 12.10 32bit OS (64bit machine though).
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
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-session/-/issues/13. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev