Ubuntu :: Scripting A Permanent CTRL / CAPS Swap In Gnome?
Mar 3, 2011
I have a bash script that I use to configure a vanilla Ubuntu (10.10 Maverick) installation to be exactly the way I want it. I make extensive use of gconftool-2 to configure the desktop, set up shortcut keys, etc.
Now, I'm trying to swap the CTRL and CAPS keys. I have found two ways of doing this: In Gnome, go to System -> Preferences -> Keyboard -> Layout -> Options and make the change in there. This works well, but I don't know how to script this; the setting doesn't seem to be stored in the usual place as I can't find it with gconf-editor. Add the line setxkbmap -option "ctrl:swapcaps" to my .bashrc file. That works too, until I suspend the machine & then resume it. At that point the CTRL and CAPS behaviour return to normal, until I cause .bashrc to be run again by opening a new shell. This behaviour has been reported as a bug in RedHat. Edited to add: JeffG on [URL] suggested adding the call to setxkbmap to my gdm.conf file in the script section; that resulted in a failure to load X on startup.
switching those keys that is both permanent, and can be scripted?
View 3 Replies
ADVERTISEMENT
Jun 9, 2010
I'm running fedora 13 on a Dell Latitude E6500. It's a dual 64-bit system.
It was working, but then I tried to swap caps lock and control.
I used:
System->Preferences->Keyboard
Layouts->USA->Options
Then, under Control Key Position, I selected swap caps lock and control.
Now, my keyboard won't work in the Keyboard Preferences test area or in any other window or when the screen-lock comes on.
I tried logging out. I tried rebooting. I tried deleting my .gnome2 directory. Nothing seems to work. I can use the keyboard on other accounts, so the keyboard is not the problem.
View 4 Replies
View Related
Jun 7, 2010
I came across very useful nautilus keyboard shortcut Ctrl-L - change view of location bar to display full folder address but can't find an option to make this changed view permanent. where can i find it? i don't mind editing config files
View 4 Replies
View Related
Sep 16, 2010
I have the Cap Locks key remapped as an additional Ctrl key. (I did that using the GUI System->Preference->Keyboard). This works fine all the time except when issuing one command to emacs. If I do CapLocks+Alt+ it does nothing yet Ctrl+Alt+ indents as needed. Since CapLocks should be the same as Ctrl I do not know what is causing the problem or how to solve it.
View 1 Replies
View Related
Oct 16, 2010
I'm running Kubuntu 10.10, with KDE 4.5.2, what I've noticed is every so often my Tab, Caps, Shift, Ctrl, Alt, Super keys stop working. I'd been running Ubuntu 10.04 with Gnome and hadn't ever come across this issue. I'm not sure if this is related to KDE 4.5.2 or is possibly because I updated to 10.10 and would also occur on a Gnome environment.If I switch to my virtual machine (VMWare Workstation 7.1.2 build-301548 which I was able to get working on 10.10 using URL.... the keys work within that but if I switch back to my host desktop they stop working.To fix it I've found logging out or unplugging the keyboard and plugging it into a different USB port fixes it.
View 1 Replies
View Related
Mar 5, 2010
how to swap the CTRL and ALT keys in KDE? to me it seem like the ALT key is better positioned to be used more often for stuff like the CTRL-W close or the CTRL-S save. and there is no way to press CTRL without taking my fingers off of the home row.
View 1 Replies
View Related
Jan 11, 2010
I've lenny on my PC with no X-server running up and I need to swap Caps_Lock for ctrl .None of the Debian-specific ways from the link I provided are working for me.
View 2 Replies
View Related
Feb 16, 2010
A fresh install of 11.2 with Gnome (all updates applied, only recommended standard repos enabled) turned the screen black after the predefined time of 5 minutes. The screensaver is set to "Blank screen" and screen lock is disabled. The PC did not wake up again and was not ping'able from the outside. The last words in /var/log/messages are code...
View 4 Replies
View Related
Jan 5, 2010
I have 3 layouts: USA, Russian and Hebrew. In Hebrew the W key is mapped to apostrophe, so Ctrl+W in Hebrew layout doesn't close tabs in Firefox. There is no workaround for it as I see by now, so I am trying to get it work this way:I want to map Ctrl+W in Hebrew layout(which is actually a Ctrl+') to be a Ctrl+w. Here is what I got from xmodmap:Code:$ xmodmap -pke | grep 25keycode 25 = w W Cyrillic_tse Cyrillic_TSE apostrophe WAs you can see, there are pairs for each layout, each pair tells what happens without and with the Shift key pressed.
View 2 Replies
View Related
Dec 27, 2010
I am doing a project on rdesktop. My aim is to setup a write/copy protected session. I have made rdesktop connection between two Linux machines using Xrdp.Next I want to disable the ctrl+x,ctrl+v keys and the cut and copy option in mouse right click at client side
View 1 Replies
View Related
Aug 19, 2009
i am using gcc 4.3i need to recognize ctrl+c,ctrl+l,ctrl+d in my C program without terminating the program when i get a ctrl+c...
View 1 Replies
View Related
May 5, 2010
Every time I do Ctrl+C/X and want to paste something with Ctrl+V my browser opens up trying to go to [URL] I looked in the forums and they explained that, if I understand correctly, ubuntu or gnome doesn't have a clipboard manager (I'm probably wrong)... so installed Parcelite and I have it running but it doesn't solve the problem. I'm really used to using shortcuts. At school we use Fedora and there's no problem using Ctrl+V How can I fix this problem?
View 2 Replies
View Related
Feb 20, 2011
Here is the solution. (I don't know how to change the title of the original thread to indicate that the problem is solved, so I've started a new thread with a link. There must be an easier way!)
View 5 Replies
View Related
Oct 13, 2010
Can I change the Caps Lock key to Control and still keep the on/off nature of Caps Lock? I've checked into using xmodmap and seem to have hit a dead end. Many people want to swap them, but they also want to swap the way they work. I'd rather keep my new Control key as an on/off switch for Control.
View 1 Replies
View Related
Feb 12, 2010
How do I create a launcher/shortcut on Gnome desktop, which starts a Terminal window and executes a shell script?The script should execute as if I started the script manually, i.e. if I abort the script by pressing CTRL + C, the script should terminate but the terminal window should remain on screen.If I create the shell script launcher/shortcut using the �straight forward �Create Launcher� method�, the terminal window also closes when I hit CTRL + C
View 8 Replies
View Related
Sep 5, 2010
I can not copy/paste ctrl+C or ctrl+p from one folder to another with the mouse. i was trying to move an item to another folder.
I looked in the keyboard short cut and it was not there. i tried to add it and it put it in custom as disabled and I could not enable it.
View 2 Replies
View Related
Dec 8, 2009
For some unknown (to me) reason, "Ctrl+Shift+u, <unicode number>" doesn't work in F12. I had gotten quite used to this method in order to input several symbols and if you know what you want, it is a lot faster compared to using the character map. This was working in all recent Fedora versions.Does anyone know how to enable this functionality?
View 4 Replies
View Related
Nov 11, 2010
I just installed Ubuntu 10.10 x64 and already am really annoyed by Firefox, which freezes my mouse after changing a tab (with ctrl+tab, alt+#) or closing it (ctrl+w). After about one second, i can continue working as usual. Changing Tabs by just clicking on one does not freeze anything...Maybe some of you would think now if I am crazy because of complaining about such a little thing, but it is really annoying if you are used to work fluently with ff.Edit:I today noticed, that not only shortcuts in firefox, but all Hotkeys freeze my mouse for a second. For examle ctrl+c, ctrl+v, super+e or anything else.Do you have any Idea what causes this behaviour? Reinstalling ubuntu didn't change anything
View 4 Replies
View Related
Nov 28, 2010
" Mark the start of the text with "v", "V" or CTRL-V. The character under the cursor will be used as the start.""With CTRL-V (blockwise Visual mode) the highlighted text will be a rectanglebetween start position and the cursor."I can mark the start with "v" or "V".But it doesn't work when I push ctrl+V.
View 14 Replies
View Related
Oct 3, 2010
anyone has a clue why 'ctrl+a, k' nor 'ctrl+a, :kill' doesn't work for killing one of screen windows? Other screen's commands invoked with 'ctrl+a'seem to work.
View 3 Replies
View Related
Feb 3, 2010
I just spent a few days ripping out all the broken/buggy apps that are in the opensuse 11.2 official repos so I can finally get working software(openoffice, thunderbird, wine, eclipse, rubygems, rails, and a few others required getting the "official" versions from their respective websites to avoid strange behavior and outright broken functionality).
All of which makes updating more annoying and time-consuming. Why are opensuse packages so different anyway? Anyway, the last thing that I have noticed to fix is Konsole. For some really bizarre reason ctrl+z and ctrl+c do not work without a third keystroke: enter.Maybe this is something new with the KDE team, since they seem bent on making simple things that already work more complex, but given my experience with crappy packages in the suse repos, I am thinking this is the problem. I have looked over all the config settings that I can find and nothing fixes this affront to productivity.
View 1 Replies
View Related
Mar 7, 2010
I've been using Kaggregator in KDE-PIM, which uses Konqueror as the browserto go to links from Kaggregator.Unfortunately, Konqueror no longer seems tobe able to Copy highlighted material with Ctrl C, the way we've done it forever.Is this a setting I've missed? Or is this a new "feature" in Konqueror?
View 2 Replies
View Related
Dec 5, 2010
I'm trying to write a init.d script to daemonise a sagemath notebook server. Here's what I've done so far, I've copied /etc/init.d/single for the structure, and tried to use dtach to provide a handle to access the process. However, my main problem is issuing the signals to kill the process (Ctrl-C) from a bash script and exit dtach (Ctrl-`)
[Code]...
View 1 Replies
View Related
Sep 17, 2009
Is there a firefox add-on to script HTML and/or Javascript directly inside firefox
View 1 Replies
View Related
Dec 7, 2010
Lucid on an Acer Travelmate800.Can anyone tell me why I have 0k for swap space? I allocated swap which I can see in my Disk Utility's 'volumes' display.
View 5 Replies
View Related
Aug 16, 2010
RAM for older machines like I use is fairly cheap these days. But flash memory is just as cheap or cheaper. So I'd like to ask about the feasibility of expanding my system's memory using flash memory. And about whether creating a partition for swap on the flash memory, or whether a swap file on the flash device, is the better way to go.
By flash memory I have in mind mainly USB sticks or what are sometimes called "pen drives." But I do also have CF and SD cards that, with the proper cheap adapter (one of which I already own for adapting CF) could be used to create extra swap space. So, what is the current consensus on the feasibility/advisability of using flash memory for swap? I've read about the limited write cycles of flash being an argument against using it for swap. But recent reading indicates to me that the limited write cycles problem applies mostly to older, smaller-capacity flash memory. Some will come out and say that, for larger-capacity flash memory, the life of the device is likely to exceed the amount of time your current computer will be useful (I think I've seen estimates in the range of 3-4 years life--minimum--for newer, higher-capacity flash memory).
A more persuasive argument I've heard against using flash memory for swap is that access times for these devices can be much slower than SATA, and maybe even IDE, hard drives. That would certainly dictate against using flash memory for swap.
So, how about some input on this issue? Anyone using flash memory for swap? If so, what kind (e.g., usb stick or SD/CF)? Are you using a swap file or a swap partition? How's system performance? Likewise, has anyone had flash-memory-used-as-swap die on them? The consequences would undoubtedly be dire. Also, has anyone measured flash memory access times to confirm or refute claims about slow access times? Are some types of flash memory better/worse than others in terms of access times?
View 2 Replies
View Related
Mar 20, 2011
Does one need to Check the Swap filesystem, from time to time
View 4 Replies
View Related
Feb 19, 2010
I know it's possible, but does anyone have a URL or tutorial on how to do this?
View 3 Replies
View Related
Nov 28, 2010
Yeah, I've been messing around with my partitions recently to make them more organized and appealing to my OCD file management habits. My main partition that I use to store all my files and windows programs on was previously labeled "Free" since I installed Ubuntu a few weeks ago and created separate partitions for things, I didn't like the vagueness of the name, so I changed it to "Storage" via GParted Partition Editor.
Yet, for some reason it always changes its self to all capital letters. I label it "Storage", it becomes "STORAGE". I've researched around for others who have similar issues, but they usually ended up with a response similar to "It's Fat32, so it's always capital." I don't see how that's true, considering mine was labeled "Free" for the longest time..
View 4 Replies
View Related
May 1, 2011
Being and old Gnome user and a brand new XFCE user, does anyone know how to disable the Caps Lock key in Xubuntu 11.04? It's rather easy in Gnome and obviously not so easy in XFCE.
View 2 Replies
View Related