Questions about how to run a program or other operating system function when a given combination of keys is pressed.

learn more… | top users | synonyms (1)

1
vote
1answer
51 views

Restore from wastebasket shortcut?

Is there a shortcut for GNOME desktop to restore a file which has been sent to wastebasket? I did this on windows with ctrl + y, I just wonder if someone uses something similar on Linux?
4
votes
2answers
3k views

Awesome: keyboard layout switch

I use awesome as a window manager under gnome (debian system) and I made a widget to switch keyboard layout by this code: -- Keyboard map indicator and changer kbdcfg = {} kbdcfg.cmd = ...
2
votes
2answers
2k views

How can I make the backspace key delete one character backwards in tcsh?

I have a clean installation of openSuse. This automatically sets up bash as the default shell. For historic reasons, all of the aliases and shortcuts I want to port from an old computer are in tcsh, ...
4
votes
4answers
854 views

How to print keypresses in .inputrc format?

Which application can I use to figure out what to put in .inputrc for any custom keyboard shortcut? I've tried a few, and none of them seem to be usable: showkey, showkey -a and read just print ' if ...
4
votes
2answers
232 views

How to print keyboard shortcuts in human-readable form?

It would be very useful to have a user-friendly way to get an overview of the currently defined keyboard shortcuts. In other words, given the /etc/inputrc lines "\e[A": history-search-backward ...
10
votes
2answers
8k views

Shortcut key for scrolling inside a terminal

What is the shortcut key for scrolling inside a terminal? If I hit the Up or Down arrow or PageUp or PageDown, it will only traverse through command history, not let me traverse the previous part ...
4
votes
1answer
2k views

How do I disable a keyboard shortcut in gnome-shell?

There are tutorials all over the web on how to set various functionalities to activate on a keyboard shortcut, but so far I'm unable to figure out how to un-set a keyboard shortcut. That is, how do I ...
3
votes
2answers
1k views

What does this output from xev mean?

I'm interested in remapping some keys on my keyboard. In particular, I want to hold down the Function key, press the F1 key, and have this trigger a script. I know that xev is useful for figuring out ...
4
votes
2answers
1k views

Is there a way to remap the AltGr key to Ctrl with setxkbmap?

I've already checked the option section in /usr/share/X11/xkb/rules/base.lst but I didn't find an entry for AltGr...
3
votes
1answer
1k views

How to bypass GNOME Terminal when sending keyboard input?

When running an interactive shell application, how can I send it a key (or key combination) which would normally be intercepted by GNOME Terminal? In this particular instance it's the F10 key which is ...
1
vote
1answer
284 views

Apple keyboard in openbox

I just upgraded from Fedora 15 to 16. I'm using Openbox as an alternative to Gnome 3. The problem is that I cannot find a way of using the multimedia keys properly in Openbox. Changing the keyboard ...
1
vote
0answers
338 views

Ctrl+F2 no longer opens the app launcher in Gnome 2

In KDE I press Alt+F2 and the app launcher opens. In Gnome, however, I press Ctrl+F2, it doesn't work. When I first installed Mint 12, it was working, but I think it stopped working when I installed ...
5
votes
3answers
3k views

Ctrl + c will not kill process

I have looked for answers and so far have found nothing to answer my question. I am currently logging in to my Ubuntu server and upon running a process I can not run any of the interrupts on it. Here ...
3
votes
1answer
494 views

Moving through history of commands on command line?

I used to use Up/Down to move through the history of commands. Then, a few days later it changed to Ctrl-p/Ctrl-n. Now this also doesn't work to move through the history of commands entered. How can ...
8
votes
2answers
3k views

GNOME 3 Ctrl+Alt+D (show desktop)

I recently upgraded my system to GNOME 3. In previous versions of GNOME, the key combination Ctrl+Alt+D would hide all open windows and show the Desktop. This shortcut was eliminated from GNOME 3 ...
6
votes
2answers
569 views

Is there a way to assign a shortcut key to nautilus' right click context menu?

Does anyone know of a way to assign a shortcut key combination to the menu items in the context menu that pops up in nautilus when you click on a file?
2
votes
1answer
536 views

How to add additional Gnome-Shell and Unity workspace navigation shortcuts

I am very familiar with (and love) the workspace switching in Gnome-Shell and Unity (using Ctrl+Alt+[Up/Down/Right/Left]), but being a vim fan, it would also be great if I could add an additional ...
5
votes
3answers
2k views

In vim, search backwards for matching braces/parens

As most of you probably know, you can use % to search forwards on the line to find the next paired brace/bracket/paren and move to its matched partner: |a|rray[index] = value; " |e| is the cursor; ...
4
votes
1answer
3k views

Copy/Paste with keyboard in rxvt

I know that I can copy and paste text in rxvt by using the middle mouse button, but I was wondering if there was a way to define keyboard-shortcuts in the .Xdefaults for copy and pasting text. ...
15
votes
4answers
5k views

How to get vim to work with tmux properly?

I'm trying to figure out how to get vim and tmux play together. My problem is: When I use xterm-256color I get vim to work nicely, but the background doesn't render properly. I fixed this by using ...
1
vote
4answers
6k views

Can I access Nth line number of standard output?

Assuming a script that outputs a list of files: $> bash someScript.sh path/to/some/file path/to/the/file/i/want/to/work/with path/to/yet/another/file Now I want to have the second file-path as ...
5
votes
1answer
1k views

How do I disable the left-(meta|windows) key binding in gnome-shell

I changed the keybinding to Show the activities overview in the panel System Settings / Keyboard / Shortcuts to Shift-ESC, but the left-meta or left-windows key is still bringing it up. How do I ...
4
votes
1answer
871 views

What does GNOME do with multimedia keys?

GNOME makes multimedia keys, such as fn+directional keys on my laptop, maybe dedicated keys on your keyboard, into very useful keys. They seem to work with a large number of application. What can I do ...
28
votes
3answers
8k views

Shell: how to go to the beginning of line when you are inside a screen?

I am inside a screen (screen -Ra). I have a long command, and I am at the end. Instead of keeping the left arrow, how can you go to the beginning of the line? CTRL-A works when I am in a normal ...
2
votes
3answers
945 views

console vim in screen session: remap Ctrl-Shift-Left, Ctrl-Shift-Right to not delete lines

I have my gvim setup so that I can select word-wise with Ctrl-Shift-Right, Ctrl-Shift-Left etc. (yes, I know it's a bad habit, but it works for me..). Unfortunately, these key combinations delete ...
3
votes
3answers
369 views

Scrolling on very long files (1M+ lines) on Emacs

I was wondering if besides the basic navigation commands: C-p : Jump backwards one line. C-n : Jump forward one line. C-v : Jump forward one full screen. M-v : Jump backwards one full screen. M-a : ...
4
votes
1answer
1k views

Remapping Ctrl-l in bash

Can one remap Ctrl-l in bash to execute more than just clear? I know normally it just clears the screen. I'm looking to change that to clear the screen and list my pwd like so: Ctrl-l:clear;ls;
4
votes
3answers
889 views

Regaining usage of volume control media keys after removing pulseaudio

I am running a GNOME 3 fallback desktop in Debian testing, and I removed some pulseaudio packages, for I don't need the advanced functionality. That resulted in my multimedia keys that control speaker ...
7
votes
2answers
3k views

What is bash's meta key?

I tried to use xmodmap to map META_L to the MENU key but it doesn't seem to be accepted by bash as the meta key. So, I am wondering how these components (keyboard, X, xterm, bash) relate to each in ...
6
votes
3answers
2k views

How can I find what is interfering with CTRL+F?

I'm running LinuxMint12 with Gnome with Cario-Dock and I have a logitech G15 keyboard. I set up a bash script with the extra keys to take the active window, resize it, and move it to a specific ...
2
votes
1answer
299 views

Problem with meta key on Emacs

I have a problem with meta key in Emacs. I trying to use M-> or M-< but in fedora meta key is left Alt that is key change layout (alt+shift) when i press M->(alt+shift+>). How people solve this ...
1
vote
0answers
220 views

uemacs 4.0.15 strange key bindings

Playing around with uemacs I noticed that some of the default alternative key bindings are set to the Fn key in combination with a different key (for example, an alternative for 'help' is set to ...
11
votes
4answers
2k views

Is it possible to configure ctrl-w (delete word)?

Normally, Ctrl-w deletes back to the last whitespace. Is it possible to configure it to use additional characters, such as /? Edit: To be more clear: I don't want to configure the key for it, I want ...
2
votes
1answer
104 views

How to limit a search to the current line

VIM newbie here. I'm trying to write a mapping that will let me move around 'common' insertion points in a line when in insert mode. For ex. I have the delimitMate plugin - so typing a opening ...
2
votes
1answer
730 views

Remap bash vi keys?

I use Dvorak and vi, so when I found out about the vi mode in Bash, I was very excited. However, it would be even better if I could remap the movement keys to be the ones that I use in vi (I swap keys ...
13
votes
3answers
1k views

How can I keep control+d from disconnecting my session?

I regularly ssh to a centos 5 box. Somehow they keys are mapped so that control+d will log me out of my current shell. If I am sudo'ed to another use it puts me back to the previous user. If I am not ...
2
votes
3answers
1k views

Vim shortcuts in insert mode

When I'm entering some text in vim, sometimes I need to jump to some other place and enter more text. I know there are some shortcuts with ctrl key to simplify the movement. What are the most useful ...
2
votes
1answer
665 views

How to move window in GNU Screen

I have a window called 'Codes' in window 1, and I want to move it to window 7, is it possible?
4
votes
3answers
935 views

Can you switch between windows within an application in Openbox?

Is it possible to set up a keybinding in Openbox for switching between open windows within an application? Just like you can in gnome 3 with alt + [key above Tab] .
4
votes
3answers
156 views

Making shortcuts cross desktop environment, possible?

I'm a big fan of keyboards, so a lot of thing a done by combination of keys, like open a file browser, web browser etc. Is there some daemon that can monitor my key presses, and launch some program ...
3
votes
2answers
409 views

ratpoison keyboard shortcut conflicts

I recently installed ratpoison as my first real foray into tiling window managers. The first problem I ran into is that the Ctrl-t keybinding used for ratpoison commands conflicts with those of other ...
3
votes
2answers
158 views

Why do different terminals have different values for keys in the .inputrc file?

This question really started from here. I would like to know why different terminals like rxvt and xterm use different values when mapping key combinations? Whilst I am in rxvt or xterm how can I find ...
1
vote
1answer
575 views

Some keyboard shortcuts do not work in Compiz

I've bound Win-R with the Run Application dialog in Metacity. However, the shortcut doesn't work when switched to Compiz. The entry Show the panel's "Run application" dialog box even doesn't appear in ...
5
votes
2answers
342 views

Is it possible to stop emacs from down translating my key chords?

emacs has the default behaviour of double-guessing which key-combo (chord) I've pressed. It automatically down-translates to a lesser chord when the key-combo I pressed is unassigned, eg. ...
4
votes
1answer
620 views

Fetching user input while running in the background

I am writing a script that prompts the user for input and does some processing afterwards. I was using read to get the data, but then I noticed that when the script is ran with a keyboard shortcut (I ...
3
votes
0answers
374 views

How to map a complex multi-key combination into a shortcut to execute a process, in X (across WMs etc)?

I am wondering how can I make a complex multi-key combination like say, Ctrl+Alt+T into a shortcut to execute me a process,xterm for instance? The important caveat is that I want it wired into either ...
4
votes
1answer
587 views

Custom hotkeys in dwm

I'm trying to create an array of simple hotkeys on my desktop, running OpenSuse with dwm. Things like: Ctrl+E /opt/eclipse/eclipse Can this be configured from within dwm? If not is there an ...
9
votes
1answer
703 views

How can I change the behavior of hotkeys in xmonad if the program is running?

I'm using a few key mappings in my xmonad.hs configuration file: ... , modMask = mod4Mask -- Rebind Mod to the Windows key ... [ ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s") , ...
4
votes
3answers
3k views

How to redefine kde4 keyboard shortcuts

I recently switched to using KDE 4, and I don't like that KDE uses so many of the Ctrl-Fn shortcut keys, since I use them for other purposes. Specifically, I'd like to disable the Ctrl-F4 shortcut in ...
1
vote
2answers
2k views

Meta key does not open “Activities” menu in Gnome 3

I've started using the Gnome 3 packages that just came through the Debian testing repositories, and encountered a problem. Hitting the Super/Meta/Windows key would not open "Activities" menu. Other ...