General :: Remapping Characters In Xmodmap?
Jun 9, 2010
I am using a Swedish keyboard, and I want to be able to type braces easier.
I planned to map AltGr + to '}' and AltGr + to '{'. However, nothing really changes. I have some other stuff in my .Xmodmap so I know that it gets loaded allright. Here's what I have so far:
keycode 35 = slash asciitilde dead_ogonek section dead_ogonek section
keycode 49 = asciicircum onehalf
keycode 66 = F10
clear Lock
[Code]....
View 1 Replies
ADVERTISEMENT
Jun 16, 2011
I have slackware 13.37-64 bit with xfce. I have a "microsoft wired keyboard 600" keyboard and want to remap it to use the right win key as ctrl. With xev i see that the keycode for the specific win key is 134.
Then i run:
Code:
But nothing changes. Even if i manually configure the .Xmodmap file in my /home i see no change at all.
View 3 Replies
View Related
May 26, 2010
I'm moving in with my girlfriend and we want to connect our Linux Boxes via nfs. One problem: on my computer, I am user id 1001 and she is 1002, and on her computer, she is 1001 and I am 1002.
When mounting a filesystem via nfs, is it possible to remap users, so that 1001 is treated as 1002 on the remote machine and vice versa? If so, which nfs parameters do I need when mounting?
View 1 Replies
View Related
Aug 28, 2011
While modifying the definition of my PS1, I saw that "[" and "]" markers should be added to help bash to compute the right display lenght. Many exemples on the web do not use them or even mention them.I searched for a solution to add them automatically, like with sed, but I didn't find any example.Are they still needed and is there a recommandation not to use sed to define PS1?
View 1 Replies
View Related
Feb 20, 2011
I did read the grammar section of xmodmap but still couldn't figure out how I could do it.
View 1 Replies
View Related
Jan 2, 2010
I recently got a Logitech G11-keyboard for my Ubuntu 9.10 64-bit box. My question is xmodmap related and not restricted to this particular keyboard, nor to the distro I am using. The keyboard has a.o. 18 G-keys. These have been successfully defined in /usr/share/X11/XKeysymDB as per [URL] and I have a ~/.Xmodmap file that matches keycodes to the names in XKeysymDB.
My .Xmodmap definitions are rather simple, e.g. 'keycode 175 = G1'. So I do not define any value for modifier combinations, nor do I know how to do this.
And here's my real question. How should I define these keys so that the Crl-, Alt-, Meta-, Super- etc modifiers work with these keys?
With the current setup, the modifier versions of these keys do only work for the second keypress, e.g. the first Ctrl-G17 is perceived as a G17 keypress, and the second and remaining Ctrl-G17 presses are correctly received as a Ctrl-G17.
I would be happy to read an explanation of this behaviour, and even more so, about how to properly define them so that the base key as well as the modifier versions would be available.
If the odds are a million to one against something occurring, chances are 50-50 it will.
[URL] and go2 places!
View 10 Replies
View Related
Jun 9, 2010
I want the system to see a certain keyboard key as if it were another key. To put an example, suppose I want each time I type 'e' the system sees 't'. Can this be done?
View 7 Replies
View Related
Nov 17, 2010
I want to remap the Capslock key to a Shift key. The reason being is the UK keyboard has a very large Caps Lock and a alpha size shift. I have been looking everywhere and there is a lot about turning it into a CTRL key but I don't understand. Can you give me simple instuctions I don't know what keycodes to use and what file to edit.
View 5 Replies
View Related
May 2, 2011
I have a Mac keyboard where the Alt/Win (i.e. Option/Command) keys are inverted compared to a regular PC keyboard, and I'd like to swap them. I haven't had any luck with xmodmap so far. The standard configuration is as follows:
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
[code]....
View 1 Replies
View Related
May 16, 2011
I am currently using xmodmap for remapping keys like Caps Lock on my keyboard.However, my keyboard has a bunch of keys on the top that are rarely used (Multimedia keyboard with buttons like Internet, Music, Next song, Mute etc)I want to remap these keys to specific commands (Not keys).
For example: Pressing the Internet button should fire up my Firefox (/usr/bin/firefox)(which happens only in Windows for me)Also I need to map a specific button to xkill.
View 2 Replies
View Related
Jul 8, 2011
What command could I use in terminal to delete all ASCII characters? That is, delete a-z, A-Z, 0-9, and all punctuation? I have a file containing Chinese characters, and I want to remove everything else and leave just the Chinese.
I can use grep to leave only the lines that have Chinese in them, but this still leaves a lot of non-Chinese stuff on those lines. Does anyone know how I could actually remove everything that isn't Chinese?
View 4 Replies
View Related
Jun 23, 2010
What about "Ctrl+Shift+1"?
View 1 Replies
View Related
Jun 16, 2010
I have my OpenSuse 11.1 box set up with utf-8, however, every time I try to open a file with utf-8 characters with vi it can't handle those characters properly.
View 6 Replies
View Related
Apr 16, 2010
I have this crazy idea to map an em dash to AltGr+Dash, replacing the yen symbol currently produced by that key combination. Is there a way to do that?
Unless, of course, there is another way to produce an em dash with the US International keyboard? Not including OpenOffice's autocorrect feature.
View 5 Replies
View Related
Jul 8, 2010
I got this Dell Studio and the f keys are kind of odd.. first of all you have to press fn to even use them.. because theyve defaulted them to be things like: fast forward.. mute.. stuff like that.. and what makes it worse is f2 is a button that disables wifi.. so when i do alt-f2 out of habit it cuts my wifi off.. so i have to do fn-alt-f2 which just gets old.. my question is, what is the raw command for the RUN ? I'd like to assign a keyboard shortcut to it.
View 6 Replies
View Related
Jul 28, 2010
I am running a fully updated 9.10 with TightVNC. When I connect in through a TightVNC viewer, my keyboard is mapped wrong. If I type the keys: abcdefg... I get: asdfghjkl;... (the home row) I tried running this script:
Code:
#!/bin/bash
echo "" > empty.keymap
xmodmap empty.keymap
View 1 Replies
View Related
Jul 20, 2011
I have a laptop which has no function keys (F1-F12), but does have a row of arbitrary keys at the top (volume control, multimedia, etc.). I've been able to remap these keys using xmodmap (e.g. 'keycode 000 = F1 NoSymbol F1'). However, this means that I lose the original function.Is there a way (using xmodmap or otherwise) to set these keys to produce a different keysym (e.g. XF86AudioRaiseVolume) only when the Super* key is pressed?* I would have preferred Fn, but it doesn't show up in xev so I'm guessing that's not possible.
View 2 Replies
View Related
Oct 22, 2015
I recently installed Debian 8.1 on an old (2008 maybe?) macbook. I would like to use the right hand side apple/command key as a right click. I've been using xmodmap commands in the terminal, but I'd like to write a shell script to do it automatically on boot or on login.
I've tried init.d, I've tried crontab, I've tried rc.local.
The xmodmap commands I am calling are Code: Select allxmodmap -e "keycode 134 = Pointer_Button3" and then Code: Select allxkbset m
my shell script is as follows
/usr/keymap
Code: Select all#!/bin/bash
xmodmap -e "keycode 134 = Pointer_Button3"
xkbset m
I've modified keymap to be executable, just typing /usr/keymap into the terminal will map the keys correctly. I've tried with and without the .sh suffix. I've tried adding sh before the file path in crontab. I've also tried adding sleep 20 inside the shell script as well as inside crontab joining the two commands with &&
View 4 Replies
View Related
Jan 26, 2010
To reeanable CTRL-ALT-BKSP (since 11.2), you use:
setxkbmap -option terminate:ctrl_alt_bksp
It works. However if you map keys with xmodmap, it's gone. In whatever order you use them, setxkbmap and xmodmap are always conflicting. Running xmodmap immediately disables CTRL-ALT-BKSP, while running setxbbmap reverses key mappings to their default.
View 3 Replies
View Related
Jun 6, 2010
I am using an Apple Keyboard (DK-layout) on my PC running Ubuntu 10.4. The problem: My key used to type <, > and is swapped with the key used to type and If I connect a standard PC-keyboard with DK-layout using USB, it works just fine. The problem exists both in the console and X. I solved the problem in the console by installing the console-keymaps package, made a copy of dk-latin1.kmap.gz and swapping keycode 86 with keycode 41 and loading the new keymap with the loadkeys command. I only need to figure out how to load the new keymap at boot time.
However, in X, I want to do exactly the same. I suppose I have to use Xmodmap. I simply can't figure out how to do it.
View 3 Replies
View Related
Sep 8, 2010
So I run "xmodmap" in my xinitrc to make caps lock a second control button, but for some reason its not sticking. I'm not using a desktop environment, just running xmonad.If I run "xmodmap ~/.Xmodmap" once X is started, it works fine, but it won't run in my xinitrc.
View 3 Replies
View Related
Jun 24, 2011
I'm trying to learn swedish, and I want to remap some of my key to be able to write the special chars. xmodmap -pke" gives me the current config, and most of lines are like that (6 keysyms) :
Code:
keycode 24 = a A a A adiaeresis Adiaeresis
But I actually can't access 2 of them, the #3 and #4.
[code]....
View 2 Replies
View Related
May 11, 2010
I just got my hands on an old RollerMouse from work. [URL] It's pretty neat, however I think it would be killer if I could remap the roller (which is just a mouse) to function like a two-way scroll-wheel, and maybe the buttons as special shortcuts. Does anyone know if this can be done? I figured it's not a standard part of anything, so I'll at least have to make some script or changes to a driver, but I have no idea where to start..
View 3 Replies
View Related
Jan 3, 2016
I have a custom .Xmodmap file to change the keyboard layout. The problem is that sometimes the keyboard layout changes back to the default. I have seen the lights on the keyboard blink at times, so I tried unplugging and reconnecting the keyboard and yes - that reset the layout. I can see keyboard removed/detected entries in the logs as well, so I guess my keyboard reconnects sometimes, I don't know why. However the solution from the post earlier (to rename the xmodmap file to ~/.Xmodmap) did not work. So is there another default filename I should use? Or do I have to enable xmodmap to run when a keyboard is plugged in somehow?
The only thing I can think of right now is to monitor /var/log/Xorg.0.log for "Adding input device USB Keyboard" and running xmodmap when that happens... but I'm really hoping for a better solution.If I can't fix the xmodmap problem, maybe I can fix the usb disconnects.I read something about power saving settings for usb. After some digging, I found that those settings are in /sys/bus/usb/devices/.../power/. However, disabling autosuspend for the hub did not seem to work (it was already disabled for the keyboard).
But I found something else in kern.log. Perhaps the keyboard disconnects has something to do with static electricity?
Code: Select all[ 7078.175830] usb 1-10-port3: disabled by hub (EMI?), re-enabling...
[ 7078.175888] usb 1-10.3: USB disconnect, device number 4
[ 7078.624349] usb 1-10.3: new full-speed USB device number 6 using xhci_hcd
[ 7078.729012] usb 1-10.3: New USB device found, idVendor=04d9, idProduct=0125
[ 7078.729014] usb 1-10.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 7078.729016] usb 1-10.3: Product: USB Keyboard
View 0 Replies
View Related
Mar 8, 2010
I have a wireless keyboard with touchpad However the position of the mouse buttons is very unconfortable and so I would like to remap the mouse button to some kes on the keyboard.
I would like to use the media keys which are present on the keyboard. They are useless to me since most of the programs that I use have their own keyboard shortcuts for controls such as play, stop etc.
I mapped the keys using xev, and for instance I found that the "play" key mapped to keycode 172
by trying someting like
xmodmap -e "keycode 172 = Pointer_Button1"
nothing happens.
View 2 Replies
View Related
Mar 26, 2010
I have checked several tutorial sites, to no avail. I can't seem to get Winpe 3.0 to boot over tftpd/pxe.Has anyone successful done this using Ubuntu 9.10?, or am I just wasting my time trying.
View 4 Replies
View Related
May 14, 2011
Is there a way to easily make the command key function as the control key on a macbook pro in these modern times of 2011? I tried one of the command-line based tutorials and couldn't get it to work. Seeing as I have little idea as to what I was doing, I'm going to need a gui. But come Natty, nothing appears to be working. I would think that this is a common question, so I'm sure there is something simple I'm overlooking.
View 9 Replies
View Related
Aug 19, 2010
In previous versions of ubuntu I used to reshuffle the ALT, SHIFT, and TAB keys using xmodmap.
Specifically, I had a file called ~/.xmodmap-mejia which reshuffled the keyboard, and I called that file from the startup applications (I had added it to system>preferences>Startup Applications).
However, in Ubuntu 10.4 it does not work. If I call the script after the computer has loaded, it works perfectly, but it does not have any effect as a startup application. It is as though changes effected by the script that calls ~/.xmodmap-mejia gets overwritten later on by the default keyboard binding.
As things stand right now, I have to run the script manually every time I turn on my laptop. Which, of course, is very annoying.
Any ideas of how to fix this?
View 5 Replies
View Related
Apr 29, 2011
I just upgraded machine to natty, after which the xmodmap configuration remapping capslock stopped working (as in not doing anything at all). Running xmodmap manually (-e "clear Lock") doesn't have any visible effect either. I haven't tried doing this on another machine (I'm only close to one machine running ubuntu and reinstalling seems rather overkill), but the same config worked before the upgrade, and is working on another machine running arch.
Is anyone else having these issues and, if so, has anybody found a solution? The line of interest is, simply, "clear Lock".
View 9 Replies
View Related
Mar 10, 2010
Is it possible to make a key print a different character while a certain other key is pressed using xmodmap?
View 14 Replies
View Related