File ~/.Xmodmap is not sourced on startup in 18.04 Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How do I set Xmodmap on login?Diagnosing xmodmap errors.Xmodmap works only when automatic login disabled?remap right alt to behave as right ctrlSetting Xmodmap on login in Lubuntu 13.10alt-f2 stops working and other issues when using a mac keyboard on 12.04Insert a unicode character via keyboard shortcut, xmodmap chooser not workingRun a command every time a change in keyboard hardware is detectedHow to remap XF86Sleep key to space---xmodmap, xkbcomp & udev failImp Pt (Screenshot) key not recognized / not working - Ubuntu 17.10Failed update to 18.04, no GNOME or any desktop
Storing hydrofluoric acid before the invention of plastics
Output the ŋarâþ crîþ alphabet song without using (m)any letters
Java 8 stream max() function argument type Comparator vs Comparable
Are my PIs rude or am I just being too sensitive?
What LEGO pieces have "real-world" functionality?
Should I call the interviewer directly, if HR aren't responding?
What does the "x" in "x86" represent?
What is the longest distance a 13th-level monk can jump while attacking on the same turn?
Do I really need recursive chmod to restrict access to a folder?
What makes black pepper strong or mild?
How can I make names more distinctive without making them longer?
If a contract sometimes uses the wrong name, is it still valid?
Is 1 ppb equal to 1 μg/kg?
Is the Standard Deduction better than Itemized when both are the same amount?
When -s is used with third person singular. What's its use in this context?
Did Xerox really develop the first LAN?
Is there a "higher Segal conjecture"?
What are the pros and cons of Aerospike nosecones?
Is the address of a local variable a constexpr?
Bonus calculation: Am I making a mountain out of a molehill?
Center align columns in table ignoring minus signs?
Why does Python start at index -1 when indexing a list from the end?
Why aren't air breathing engines used as small first stages
Models of set theory where not every set can be linearly ordered
File ~/.Xmodmap is not sourced on startup in 18.04
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How do I set Xmodmap on login?Diagnosing xmodmap errors.Xmodmap works only when automatic login disabled?remap right alt to behave as right ctrlSetting Xmodmap on login in Lubuntu 13.10alt-f2 stops working and other issues when using a mac keyboard on 12.04Insert a unicode character via keyboard shortcut, xmodmap chooser not workingRun a command every time a change in keyboard hardware is detectedHow to remap XF86Sleep key to space---xmodmap, xkbcomp & udev failImp Pt (Screenshot) key not recognized / not working - Ubuntu 17.10Failed update to 18.04, no GNOME or any desktop
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a custom key mapping in the file ~/.Xmodmap
which can be activated by running xmodmap ~/.Xmodmap
.
However, I want this to happen automatically when I login. I have tried the following without success:
~/.xinitrc
with contentxmodmap ~/.Xmodmap
, as suggested here~/.xsession
with contentxmodmap ~/.Xmodmap
, as suggested here~/.xsessionrc
with contentxmodmap ~/.Xmodmap
, as suggested here
Obviously something is going wrong, but what? And how can I fix this?
18.04 keyboard keyboard-layout xmodmap xinit
add a comment |
I have a custom key mapping in the file ~/.Xmodmap
which can be activated by running xmodmap ~/.Xmodmap
.
However, I want this to happen automatically when I login. I have tried the following without success:
~/.xinitrc
with contentxmodmap ~/.Xmodmap
, as suggested here~/.xsession
with contentxmodmap ~/.Xmodmap
, as suggested here~/.xsessionrc
with contentxmodmap ~/.Xmodmap
, as suggested here
Obviously something is going wrong, but what? And how can I fix this?
18.04 keyboard keyboard-layout xmodmap xinit
add a comment |
I have a custom key mapping in the file ~/.Xmodmap
which can be activated by running xmodmap ~/.Xmodmap
.
However, I want this to happen automatically when I login. I have tried the following without success:
~/.xinitrc
with contentxmodmap ~/.Xmodmap
, as suggested here~/.xsession
with contentxmodmap ~/.Xmodmap
, as suggested here~/.xsessionrc
with contentxmodmap ~/.Xmodmap
, as suggested here
Obviously something is going wrong, but what? And how can I fix this?
18.04 keyboard keyboard-layout xmodmap xinit
I have a custom key mapping in the file ~/.Xmodmap
which can be activated by running xmodmap ~/.Xmodmap
.
However, I want this to happen automatically when I login. I have tried the following without success:
~/.xinitrc
with contentxmodmap ~/.Xmodmap
, as suggested here~/.xsession
with contentxmodmap ~/.Xmodmap
, as suggested here~/.xsessionrc
with contentxmodmap ~/.Xmodmap
, as suggested here
Obviously something is going wrong, but what? And how can I fix this?
18.04 keyboard keyboard-layout xmodmap xinit
18.04 keyboard keyboard-layout xmodmap xinit
asked Oct 14 '18 at 10:11
MuadDevMuadDev
234
234
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
Apparently for gnome it should be ~/.xprofile
, but that file is executed too early for xmodmap
to work.
So I got it to work by creating .config/autostart/xmodmap.desktop
[Desktop Entry]
Type=Application
Exec=/home/tvbox/bin/modmap
Hidden=false
X-GNOME-Autostart-enabled=true
Name=xmodmap
Comment=xmodmap script
And in /home/tvbox/bin/modmap
, I have:
xmodmap ~/.Xmodmap
Thanks! Although I solved it eventually using another method: You can change key behaviour in the following file/usr/share/X11/xkb/symbols/pc
– MuadDev
Nov 1 '18 at 15:46
add a comment |
I tried the solution found here but somehow it didn't work. After a few days searching and experimenting, finally I found the culprit, i.e. Wayland.
My system is Ubuntu 18.10 and I used to log in per default. However recently I changed to Ubuntu on Wayland at login manager and since then my ~/.Xmodmap stopped working.
As I read on other sites, Wayland uses xkb instead of xmodmap. However it's still cumbersome to configure xkb. So for an average user like me the temporary solution is to switch back to Ubuntu at login screen. I hope this help other people who experience similar issue.
add a comment |
~/.xinitrc
with content xmodmap ~/.Xmodmap
works in Ubuntu 18.04. Just try rebooting your system and see if it works.
EDIT
I noticed that when I boot the Ubuntu my custom keymaps work but when I lock the screen and log back in, it stops to work. I'm trying to figure out the workarounds.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f1083637%2ffile-xmodmap-is-not-sourced-on-startup-in-18-04%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Apparently for gnome it should be ~/.xprofile
, but that file is executed too early for xmodmap
to work.
So I got it to work by creating .config/autostart/xmodmap.desktop
[Desktop Entry]
Type=Application
Exec=/home/tvbox/bin/modmap
Hidden=false
X-GNOME-Autostart-enabled=true
Name=xmodmap
Comment=xmodmap script
And in /home/tvbox/bin/modmap
, I have:
xmodmap ~/.Xmodmap
Thanks! Although I solved it eventually using another method: You can change key behaviour in the following file/usr/share/X11/xkb/symbols/pc
– MuadDev
Nov 1 '18 at 15:46
add a comment |
Apparently for gnome it should be ~/.xprofile
, but that file is executed too early for xmodmap
to work.
So I got it to work by creating .config/autostart/xmodmap.desktop
[Desktop Entry]
Type=Application
Exec=/home/tvbox/bin/modmap
Hidden=false
X-GNOME-Autostart-enabled=true
Name=xmodmap
Comment=xmodmap script
And in /home/tvbox/bin/modmap
, I have:
xmodmap ~/.Xmodmap
Thanks! Although I solved it eventually using another method: You can change key behaviour in the following file/usr/share/X11/xkb/symbols/pc
– MuadDev
Nov 1 '18 at 15:46
add a comment |
Apparently for gnome it should be ~/.xprofile
, but that file is executed too early for xmodmap
to work.
So I got it to work by creating .config/autostart/xmodmap.desktop
[Desktop Entry]
Type=Application
Exec=/home/tvbox/bin/modmap
Hidden=false
X-GNOME-Autostart-enabled=true
Name=xmodmap
Comment=xmodmap script
And in /home/tvbox/bin/modmap
, I have:
xmodmap ~/.Xmodmap
Apparently for gnome it should be ~/.xprofile
, but that file is executed too early for xmodmap
to work.
So I got it to work by creating .config/autostart/xmodmap.desktop
[Desktop Entry]
Type=Application
Exec=/home/tvbox/bin/modmap
Hidden=false
X-GNOME-Autostart-enabled=true
Name=xmodmap
Comment=xmodmap script
And in /home/tvbox/bin/modmap
, I have:
xmodmap ~/.Xmodmap
edited Oct 29 '18 at 21:47
guntbert
9,516133170
9,516133170
answered Oct 29 '18 at 21:14
erwanerwan
1363
1363
Thanks! Although I solved it eventually using another method: You can change key behaviour in the following file/usr/share/X11/xkb/symbols/pc
– MuadDev
Nov 1 '18 at 15:46
add a comment |
Thanks! Although I solved it eventually using another method: You can change key behaviour in the following file/usr/share/X11/xkb/symbols/pc
– MuadDev
Nov 1 '18 at 15:46
Thanks! Although I solved it eventually using another method: You can change key behaviour in the following file
/usr/share/X11/xkb/symbols/pc
– MuadDev
Nov 1 '18 at 15:46
Thanks! Although I solved it eventually using another method: You can change key behaviour in the following file
/usr/share/X11/xkb/symbols/pc
– MuadDev
Nov 1 '18 at 15:46
add a comment |
I tried the solution found here but somehow it didn't work. After a few days searching and experimenting, finally I found the culprit, i.e. Wayland.
My system is Ubuntu 18.10 and I used to log in per default. However recently I changed to Ubuntu on Wayland at login manager and since then my ~/.Xmodmap stopped working.
As I read on other sites, Wayland uses xkb instead of xmodmap. However it's still cumbersome to configure xkb. So for an average user like me the temporary solution is to switch back to Ubuntu at login screen. I hope this help other people who experience similar issue.
add a comment |
I tried the solution found here but somehow it didn't work. After a few days searching and experimenting, finally I found the culprit, i.e. Wayland.
My system is Ubuntu 18.10 and I used to log in per default. However recently I changed to Ubuntu on Wayland at login manager and since then my ~/.Xmodmap stopped working.
As I read on other sites, Wayland uses xkb instead of xmodmap. However it's still cumbersome to configure xkb. So for an average user like me the temporary solution is to switch back to Ubuntu at login screen. I hope this help other people who experience similar issue.
add a comment |
I tried the solution found here but somehow it didn't work. After a few days searching and experimenting, finally I found the culprit, i.e. Wayland.
My system is Ubuntu 18.10 and I used to log in per default. However recently I changed to Ubuntu on Wayland at login manager and since then my ~/.Xmodmap stopped working.
As I read on other sites, Wayland uses xkb instead of xmodmap. However it's still cumbersome to configure xkb. So for an average user like me the temporary solution is to switch back to Ubuntu at login screen. I hope this help other people who experience similar issue.
I tried the solution found here but somehow it didn't work. After a few days searching and experimenting, finally I found the culprit, i.e. Wayland.
My system is Ubuntu 18.10 and I used to log in per default. However recently I changed to Ubuntu on Wayland at login manager and since then my ~/.Xmodmap stopped working.
As I read on other sites, Wayland uses xkb instead of xmodmap. However it's still cumbersome to configure xkb. So for an average user like me the temporary solution is to switch back to Ubuntu at login screen. I hope this help other people who experience similar issue.
answered Jan 26 at 17:29
slaiaslaia
11
11
add a comment |
add a comment |
~/.xinitrc
with content xmodmap ~/.Xmodmap
works in Ubuntu 18.04. Just try rebooting your system and see if it works.
EDIT
I noticed that when I boot the Ubuntu my custom keymaps work but when I lock the screen and log back in, it stops to work. I'm trying to figure out the workarounds.
add a comment |
~/.xinitrc
with content xmodmap ~/.Xmodmap
works in Ubuntu 18.04. Just try rebooting your system and see if it works.
EDIT
I noticed that when I boot the Ubuntu my custom keymaps work but when I lock the screen and log back in, it stops to work. I'm trying to figure out the workarounds.
add a comment |
~/.xinitrc
with content xmodmap ~/.Xmodmap
works in Ubuntu 18.04. Just try rebooting your system and see if it works.
EDIT
I noticed that when I boot the Ubuntu my custom keymaps work but when I lock the screen and log back in, it stops to work. I'm trying to figure out the workarounds.
~/.xinitrc
with content xmodmap ~/.Xmodmap
works in Ubuntu 18.04. Just try rebooting your system and see if it works.
EDIT
I noticed that when I boot the Ubuntu my custom keymaps work but when I lock the screen and log back in, it stops to work. I'm trying to figure out the workarounds.
edited 3 hours ago
answered 3 hours ago
David JungDavid Jung
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1083637%2ffile-xmodmap-is-not-sourced-on-startup-in-18-04%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