How to permanently swap esc and caps lock in xfce / xubuntu? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionGnome 3: enable Ctrl+Alt+Bksp on a per-user basis without editing any files?mapping command key to esc in linuxDiagnosing xmodmap errorsRemapping Caps Lock with xmodmap doesn't workSwapping <esc> and <caps lock> in a way that persists with external keyboardsConfiguring Caps Lock as modifier and layout switcherHow to permanently remap caps lock to esc in X11?Swap shift and caps-lockPermanently map CapsLock to Esc in Debian and Red Hat (no X)XKB: modify layout to Multi-group with Mode_switchAdvanced key mappings in linuxHow to alter level 3 meaning of keys with XKB
What LEGO pieces have "real-world" functionality?
What to do with post with dry rot?
Antler Helmet: Can it work?
What would be Julian Assange's expected punishment, on the current English criminal law?
When communicating altitude with a '9' in it, should it be pronounced "nine hundred" or "niner hundred"?
Can a monk deflect thrown melee weapons?
What is the largest species of polychaete?
Unable to start mainnet node docker container
How to say that you spent the night with someone, you were only sleeping and nothing else?
What computer would be fastest for Mathematica Home Edition?
Passing functions in C++
Limit for e and 1/e
Writing Thesis: Copying from published papers
The following signatures were invalid: EXPKEYSIG 1397BC53640DB551
Cauchy Sequence Characterized only By Directly Neighbouring Sequence Members
Windows 10: How to Lock (not sleep) laptop on lid close?
Area of a 2D convex hull
Why does tar appear to skip file contents when output file is /dev/null?
How can players take actions together that are impossible otherwise?
How should I respond to a player wanting to catch a sword between their hands?
Estimated State payment too big --> money back; + 2018 Tax Reform
Complexity of many constant time steps with occasional logarithmic steps
Slither Like a Snake
Are my PIs rude or am I just being too sensitive?
How to permanently swap esc and caps lock in xfce / xubuntu?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionGnome 3: enable Ctrl+Alt+Bksp on a per-user basis without editing any files?mapping command key to esc in linuxDiagnosing xmodmap errorsRemapping Caps Lock with xmodmap doesn't workSwapping <esc> and <caps lock> in a way that persists with external keyboardsConfiguring Caps Lock as modifier and layout switcherHow to permanently remap caps lock to esc in X11?Swap shift and caps-lockPermanently map CapsLock to Esc in Debian and Red Hat (no X)XKB: modify layout to Multi-group with Mode_switchAdvanced key mappings in linuxHow to alter level 3 meaning of keys with XKB
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I followed some post a while ago, and it said to make an ~/.xmodmap
file like so:
! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
I did, and it now I can swap esc
and caps lock
by doing xmodmap ~/.xmodmap
. I wanted this to be permanent, so I added that command to my ~/.bash_profile
, but it doesn't seem to work; I still have to manually xmodmap
. As an EEng dropout, I am tempted to just rewire my keyboard }:-) but I know there must be a better way. How can I make this work, permanently?
keyboard xfce xkb xmodmap
add a comment |
I followed some post a while ago, and it said to make an ~/.xmodmap
file like so:
! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
I did, and it now I can swap esc
and caps lock
by doing xmodmap ~/.xmodmap
. I wanted this to be permanent, so I added that command to my ~/.bash_profile
, but it doesn't seem to work; I still have to manually xmodmap
. As an EEng dropout, I am tempted to just rewire my keyboard }:-) but I know there must be a better way. How can I make this work, permanently?
keyboard xfce xkb xmodmap
add a comment |
I followed some post a while ago, and it said to make an ~/.xmodmap
file like so:
! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
I did, and it now I can swap esc
and caps lock
by doing xmodmap ~/.xmodmap
. I wanted this to be permanent, so I added that command to my ~/.bash_profile
, but it doesn't seem to work; I still have to manually xmodmap
. As an EEng dropout, I am tempted to just rewire my keyboard }:-) but I know there must be a better way. How can I make this work, permanently?
keyboard xfce xkb xmodmap
I followed some post a while ago, and it said to make an ~/.xmodmap
file like so:
! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
I did, and it now I can swap esc
and caps lock
by doing xmodmap ~/.xmodmap
. I wanted this to be permanent, so I added that command to my ~/.bash_profile
, but it doesn't seem to work; I still have to manually xmodmap
. As an EEng dropout, I am tempted to just rewire my keyboard }:-) but I know there must be a better way. How can I make this work, permanently?
keyboard xfce xkb xmodmap
keyboard xfce xkb xmodmap
edited Nov 24 '15 at 14:28
don_crissti
52k15141169
52k15141169
asked Mar 4 '13 at 5:45
Dan RossDan Ross
2402310
2402310
add a comment |
add a comment |
5 Answers
5
active
oldest
votes
Execute xfce4-settings-manager, in Session and Startup
-> Application autostart
, add an entry, which executes xmodmap ~/.xmodmap
Or rename the file to ~/.Xmodmap
I renamed the file (it worked!), but I am surprised that my .bash_profile method didn't work. I thought my bash-fu was not weak :P
– Dan Ross
Mar 4 '13 at 18:23
add a comment |
xkb
has an option that does just that:
caps:swapescape Swap ESC and Caps Lock
so you could simply add1
/usr/bin/setxkbmap -option "caps:swapescape"
to your XFCE autostart items.
1: there might be a better way to do this but I'm not a XFCE user
Cool, I'll give it a shot on my next reboot. Xmodmap doesn't quite work perfectly for me, I have to manually trigger it after switching keyboard languages, for example. I'm also not on XFCE anymore. That was cool, but I wanted more control at home (Arch) and better interop with the stuff my colleagues use at work (vanilla Ubuntu).
– Dan Ross
Nov 24 '15 at 18:32
@DanRoss - Well, if you're using gnome (the only DE that I'm familiar with) it's as simple as addingcaps:swapescape
to yourxkb-options
– don_crissti
Nov 24 '15 at 18:47
add a comment |
In Xfce on Opensuse I swapped my Esc and Caps Lock keys by editing the /etc/X11/xorg.conf.d/00-keyboard.conf
file as explained at the archlinux wiki. I added a line that says
Option "XkbOptions" "caps:swapescape"
to the section that starts with
Section "InputClass"
then restarted my computer and the deed was done.
Back up the file before you edit it. If you make a mistake your gui might not start and you will have to restore or edit the file from a command prompt. In Ubuntu I recall that I had to put add the option line in a keyboard configuration file that had a different name.
add a comment |
Using the .Xmodmap didn't work for me.
However, a quick man xmodmap says that this works and did:
.xmodmaprc
which can be executed:
xmodmap .xmodmaprc
EDIT: ack...I'm wrong...the default did change a few years ago to .Xmodmap
from .xmodmaprc. Creating the .Xmodmap file caused my xfce to load "funny".
In .bash_profile, I put:
xmodmap .xmodmaprc
Then it worked, and I have a script that restarted my Xfce so it all works.
add a comment |
I'd been performing a similar adjustment (/usr/bin/setxkbmap -variant altgr-intl -option 'ctrl:nocaps'
) by putting it in the application autostart, as mentioned by another answer. However, at some point it stopped working for me, so here's my alternative approach:
From the Settings menu, choose "Removable Drives and Media", then the "Input Devices" tab. Enable the option to "Automatically run a program when a USB keyboard is connected" and enter the setkbmap command of your choice.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f66775%2fhow-to-permanently-swap-esc-and-caps-lock-in-xfce-xubuntu%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
Execute xfce4-settings-manager, in Session and Startup
-> Application autostart
, add an entry, which executes xmodmap ~/.xmodmap
Or rename the file to ~/.Xmodmap
I renamed the file (it worked!), but I am surprised that my .bash_profile method didn't work. I thought my bash-fu was not weak :P
– Dan Ross
Mar 4 '13 at 18:23
add a comment |
Execute xfce4-settings-manager, in Session and Startup
-> Application autostart
, add an entry, which executes xmodmap ~/.xmodmap
Or rename the file to ~/.Xmodmap
I renamed the file (it worked!), but I am surprised that my .bash_profile method didn't work. I thought my bash-fu was not weak :P
– Dan Ross
Mar 4 '13 at 18:23
add a comment |
Execute xfce4-settings-manager, in Session and Startup
-> Application autostart
, add an entry, which executes xmodmap ~/.xmodmap
Or rename the file to ~/.Xmodmap
Execute xfce4-settings-manager, in Session and Startup
-> Application autostart
, add an entry, which executes xmodmap ~/.xmodmap
Or rename the file to ~/.Xmodmap
answered Mar 4 '13 at 6:45
daisydaisy
29.3k51174306
29.3k51174306
I renamed the file (it worked!), but I am surprised that my .bash_profile method didn't work. I thought my bash-fu was not weak :P
– Dan Ross
Mar 4 '13 at 18:23
add a comment |
I renamed the file (it worked!), but I am surprised that my .bash_profile method didn't work. I thought my bash-fu was not weak :P
– Dan Ross
Mar 4 '13 at 18:23
I renamed the file (it worked!), but I am surprised that my .bash_profile method didn't work. I thought my bash-fu was not weak :P
– Dan Ross
Mar 4 '13 at 18:23
I renamed the file (it worked!), but I am surprised that my .bash_profile method didn't work. I thought my bash-fu was not weak :P
– Dan Ross
Mar 4 '13 at 18:23
add a comment |
xkb
has an option that does just that:
caps:swapescape Swap ESC and Caps Lock
so you could simply add1
/usr/bin/setxkbmap -option "caps:swapescape"
to your XFCE autostart items.
1: there might be a better way to do this but I'm not a XFCE user
Cool, I'll give it a shot on my next reboot. Xmodmap doesn't quite work perfectly for me, I have to manually trigger it after switching keyboard languages, for example. I'm also not on XFCE anymore. That was cool, but I wanted more control at home (Arch) and better interop with the stuff my colleagues use at work (vanilla Ubuntu).
– Dan Ross
Nov 24 '15 at 18:32
@DanRoss - Well, if you're using gnome (the only DE that I'm familiar with) it's as simple as addingcaps:swapescape
to yourxkb-options
– don_crissti
Nov 24 '15 at 18:47
add a comment |
xkb
has an option that does just that:
caps:swapescape Swap ESC and Caps Lock
so you could simply add1
/usr/bin/setxkbmap -option "caps:swapescape"
to your XFCE autostart items.
1: there might be a better way to do this but I'm not a XFCE user
Cool, I'll give it a shot on my next reboot. Xmodmap doesn't quite work perfectly for me, I have to manually trigger it after switching keyboard languages, for example. I'm also not on XFCE anymore. That was cool, but I wanted more control at home (Arch) and better interop with the stuff my colleagues use at work (vanilla Ubuntu).
– Dan Ross
Nov 24 '15 at 18:32
@DanRoss - Well, if you're using gnome (the only DE that I'm familiar with) it's as simple as addingcaps:swapescape
to yourxkb-options
– don_crissti
Nov 24 '15 at 18:47
add a comment |
xkb
has an option that does just that:
caps:swapescape Swap ESC and Caps Lock
so you could simply add1
/usr/bin/setxkbmap -option "caps:swapescape"
to your XFCE autostart items.
1: there might be a better way to do this but I'm not a XFCE user
xkb
has an option that does just that:
caps:swapescape Swap ESC and Caps Lock
so you could simply add1
/usr/bin/setxkbmap -option "caps:swapescape"
to your XFCE autostart items.
1: there might be a better way to do this but I'm not a XFCE user
answered Nov 24 '15 at 14:29
don_crisstidon_crissti
52k15141169
52k15141169
Cool, I'll give it a shot on my next reboot. Xmodmap doesn't quite work perfectly for me, I have to manually trigger it after switching keyboard languages, for example. I'm also not on XFCE anymore. That was cool, but I wanted more control at home (Arch) and better interop with the stuff my colleagues use at work (vanilla Ubuntu).
– Dan Ross
Nov 24 '15 at 18:32
@DanRoss - Well, if you're using gnome (the only DE that I'm familiar with) it's as simple as addingcaps:swapescape
to yourxkb-options
– don_crissti
Nov 24 '15 at 18:47
add a comment |
Cool, I'll give it a shot on my next reboot. Xmodmap doesn't quite work perfectly for me, I have to manually trigger it after switching keyboard languages, for example. I'm also not on XFCE anymore. That was cool, but I wanted more control at home (Arch) and better interop with the stuff my colleagues use at work (vanilla Ubuntu).
– Dan Ross
Nov 24 '15 at 18:32
@DanRoss - Well, if you're using gnome (the only DE that I'm familiar with) it's as simple as addingcaps:swapescape
to yourxkb-options
– don_crissti
Nov 24 '15 at 18:47
Cool, I'll give it a shot on my next reboot. Xmodmap doesn't quite work perfectly for me, I have to manually trigger it after switching keyboard languages, for example. I'm also not on XFCE anymore. That was cool, but I wanted more control at home (Arch) and better interop with the stuff my colleagues use at work (vanilla Ubuntu).
– Dan Ross
Nov 24 '15 at 18:32
Cool, I'll give it a shot on my next reboot. Xmodmap doesn't quite work perfectly for me, I have to manually trigger it after switching keyboard languages, for example. I'm also not on XFCE anymore. That was cool, but I wanted more control at home (Arch) and better interop with the stuff my colleagues use at work (vanilla Ubuntu).
– Dan Ross
Nov 24 '15 at 18:32
@DanRoss - Well, if you're using gnome (the only DE that I'm familiar with) it's as simple as adding
caps:swapescape
to your xkb-options
– don_crissti
Nov 24 '15 at 18:47
@DanRoss - Well, if you're using gnome (the only DE that I'm familiar with) it's as simple as adding
caps:swapescape
to your xkb-options
– don_crissti
Nov 24 '15 at 18:47
add a comment |
In Xfce on Opensuse I swapped my Esc and Caps Lock keys by editing the /etc/X11/xorg.conf.d/00-keyboard.conf
file as explained at the archlinux wiki. I added a line that says
Option "XkbOptions" "caps:swapescape"
to the section that starts with
Section "InputClass"
then restarted my computer and the deed was done.
Back up the file before you edit it. If you make a mistake your gui might not start and you will have to restore or edit the file from a command prompt. In Ubuntu I recall that I had to put add the option line in a keyboard configuration file that had a different name.
add a comment |
In Xfce on Opensuse I swapped my Esc and Caps Lock keys by editing the /etc/X11/xorg.conf.d/00-keyboard.conf
file as explained at the archlinux wiki. I added a line that says
Option "XkbOptions" "caps:swapescape"
to the section that starts with
Section "InputClass"
then restarted my computer and the deed was done.
Back up the file before you edit it. If you make a mistake your gui might not start and you will have to restore or edit the file from a command prompt. In Ubuntu I recall that I had to put add the option line in a keyboard configuration file that had a different name.
add a comment |
In Xfce on Opensuse I swapped my Esc and Caps Lock keys by editing the /etc/X11/xorg.conf.d/00-keyboard.conf
file as explained at the archlinux wiki. I added a line that says
Option "XkbOptions" "caps:swapescape"
to the section that starts with
Section "InputClass"
then restarted my computer and the deed was done.
Back up the file before you edit it. If you make a mistake your gui might not start and you will have to restore or edit the file from a command prompt. In Ubuntu I recall that I had to put add the option line in a keyboard configuration file that had a different name.
In Xfce on Opensuse I swapped my Esc and Caps Lock keys by editing the /etc/X11/xorg.conf.d/00-keyboard.conf
file as explained at the archlinux wiki. I added a line that says
Option "XkbOptions" "caps:swapescape"
to the section that starts with
Section "InputClass"
then restarted my computer and the deed was done.
Back up the file before you edit it. If you make a mistake your gui might not start and you will have to restore or edit the file from a command prompt. In Ubuntu I recall that I had to put add the option line in a keyboard configuration file that had a different name.
edited Apr 11 at 0:02
answered Jan 1 '17 at 6:04
vdicarlovdicarlo
315
315
add a comment |
add a comment |
Using the .Xmodmap didn't work for me.
However, a quick man xmodmap says that this works and did:
.xmodmaprc
which can be executed:
xmodmap .xmodmaprc
EDIT: ack...I'm wrong...the default did change a few years ago to .Xmodmap
from .xmodmaprc. Creating the .Xmodmap file caused my xfce to load "funny".
In .bash_profile, I put:
xmodmap .xmodmaprc
Then it worked, and I have a script that restarted my Xfce so it all works.
add a comment |
Using the .Xmodmap didn't work for me.
However, a quick man xmodmap says that this works and did:
.xmodmaprc
which can be executed:
xmodmap .xmodmaprc
EDIT: ack...I'm wrong...the default did change a few years ago to .Xmodmap
from .xmodmaprc. Creating the .Xmodmap file caused my xfce to load "funny".
In .bash_profile, I put:
xmodmap .xmodmaprc
Then it worked, and I have a script that restarted my Xfce so it all works.
add a comment |
Using the .Xmodmap didn't work for me.
However, a quick man xmodmap says that this works and did:
.xmodmaprc
which can be executed:
xmodmap .xmodmaprc
EDIT: ack...I'm wrong...the default did change a few years ago to .Xmodmap
from .xmodmaprc. Creating the .Xmodmap file caused my xfce to load "funny".
In .bash_profile, I put:
xmodmap .xmodmaprc
Then it worked, and I have a script that restarted my Xfce so it all works.
Using the .Xmodmap didn't work for me.
However, a quick man xmodmap says that this works and did:
.xmodmaprc
which can be executed:
xmodmap .xmodmaprc
EDIT: ack...I'm wrong...the default did change a few years ago to .Xmodmap
from .xmodmaprc. Creating the .Xmodmap file caused my xfce to load "funny".
In .bash_profile, I put:
xmodmap .xmodmaprc
Then it worked, and I have a script that restarted my Xfce so it all works.
edited Feb 28 '15 at 4:55
answered Feb 28 '15 at 4:40
wbgwbg
1214
1214
add a comment |
add a comment |
I'd been performing a similar adjustment (/usr/bin/setxkbmap -variant altgr-intl -option 'ctrl:nocaps'
) by putting it in the application autostart, as mentioned by another answer. However, at some point it stopped working for me, so here's my alternative approach:
From the Settings menu, choose "Removable Drives and Media", then the "Input Devices" tab. Enable the option to "Automatically run a program when a USB keyboard is connected" and enter the setkbmap command of your choice.
add a comment |
I'd been performing a similar adjustment (/usr/bin/setxkbmap -variant altgr-intl -option 'ctrl:nocaps'
) by putting it in the application autostart, as mentioned by another answer. However, at some point it stopped working for me, so here's my alternative approach:
From the Settings menu, choose "Removable Drives and Media", then the "Input Devices" tab. Enable the option to "Automatically run a program when a USB keyboard is connected" and enter the setkbmap command of your choice.
add a comment |
I'd been performing a similar adjustment (/usr/bin/setxkbmap -variant altgr-intl -option 'ctrl:nocaps'
) by putting it in the application autostart, as mentioned by another answer. However, at some point it stopped working for me, so here's my alternative approach:
From the Settings menu, choose "Removable Drives and Media", then the "Input Devices" tab. Enable the option to "Automatically run a program when a USB keyboard is connected" and enter the setkbmap command of your choice.
I'd been performing a similar adjustment (/usr/bin/setxkbmap -variant altgr-intl -option 'ctrl:nocaps'
) by putting it in the application autostart, as mentioned by another answer. However, at some point it stopped working for me, so here's my alternative approach:
From the Settings menu, choose "Removable Drives and Media", then the "Input Devices" tab. Enable the option to "Automatically run a program when a USB keyboard is connected" and enter the setkbmap command of your choice.
answered Jan 14 '18 at 14:09
phyzomephyzome
1788
1788
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f66775%2fhow-to-permanently-swap-esc-and-caps-lock-in-xfce-xubuntu%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown