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 (2)

2
votes
2answers
349 views

Cursor keys in bash in dtterm don't work as expected

I am trying to remap some of my keyboard shortcuts in bash. The problem is that when I try to display key code using Ctrl-V, not all keys work. For example, Typing Ctrl-V, then Home moves the terminal ...
2
votes
2answers
225 views

Is it possible to assign multiple commands to a single hotkey? (bash, xterm)

Back in the day, if my cursor was in the middle of a really long shell command I'd just hit Ctrl+C to get myself a new command prompt. Then I learned about Ctrl+K/C and life was good. Unfortunately ...
2
votes
1answer
1k views

How to use Super-L instead of Alt in XFCE for resizing/moving windows?

In XFCE, when holding down Alt and then clicking anywhere in a window with the left button will move that window (as if by dragging the title bar), or resize the windows when clicking and dragging ...
3
votes
1answer
662 views

TERM=(linux|xterm) vi in an xterm or the AAABBBBBBCCDDD-problem

Usually when I want to run vim in a desktop konsole session, I make sure the TERM variable is set to linux as the arrow keys don't work in insert mode with TERM=xterm. They show capital A..D instead ...
2
votes
1answer
5k views

Switch between windows & tabs in Linux? [closed]

do we have keyboard shortcuts to switch between tabs or windows, am looking for shortcuts similar to of those available in windows (ctrl + tab to switch btw tabs & Alt + tab to swtich btw ...
0
votes
1answer
365 views

In tcsh shell how I find a particular word in the command prompt?

Suppose I have the following line in my command prompt and the cursor is at the and of the line or the beginning of the line by using (CTRL+A) [subhrcho@slc04lyo pcbpel]$ abc def ghi jkl How can I ...
4
votes
2answers
157 views

How do I go to beginning of command line when I am inside the screen?

In bash I can hit Ctrl + a and go to first of the command line. But in screen Ctrl + a does not do this. How do I go to first of command line in screen?
1
vote
1answer
147 views

emacs meta key and Mint window manager

First, I'm not sure what window manager is running on my Mint installation. The "Control Center" yields no clues. Nevertheless - whatever I have is grabbing the emacs "meta" key (the option key on ...
12
votes
2answers
4k views

What is meant by a shell is in “vi” mode or “emacs” mode?

This question follows directly from the answer to one of my previous questions here. I am newbie to unix world and this site has helped a lot to understand some core concepts. In this case I am ...
5
votes
2answers
263 views

How to assign shell command to key?

I want to assign my script to special key on my keyboard. xmodmap recognize this key as XF86AudioMute, but I want to execute my script when it pressed. How to do it? My window manager is Window ...
0
votes
1answer
87 views

Disabling/enabling language specific mappings in Vim

I have :set keymap=russian-jcukenwin. In this keyboard mapping ` maps to ё. I want to unmap this backtick. :lmap ` l ` *@ё :lunmap ` E31: No such mapping Why lunmap ` gives an error? ...
6
votes
1answer
2k views

Keyboard shortcut to copy current command from terminal to clipboard [duplicate]

Is there any way to copy current command (line typed in bash prompt) in terminal to X-clipboard without involving a mouse?
2
votes
0answers
117 views

Xmonad seems like a (physically) painful experience

I've been using Xmonad for several hours after hearing recommendations from several people. Currently my configuration is very basic. I mapped the modifier key to the "windows key" as suggested in ...
1
vote
1answer
215 views

Make Nautilus navigate to the first file beginning with the typed letter

When I hit N in Nautilus under a folder, it behaves like I am searching files which contains N. Can I make it so that it only leads me to the first file whose name starts with N, like Windows ...
2
votes
0answers
148 views

Awesome GNOME recognizes my media keys but fails to act upon them

I'm using Awesome GNOME. When I log into the GNOME Shell, my up and down volume keys work. When I login to Awesome GNOME, they don't. However, when I go into gnome-control-center to set them, the ...
2
votes
0answers
128 views

Application launcher with grid like hotkeys

Is there a desktop enviroment or tool wich can provide the following functionality? If I press a self defined hotkey, a menu of self defined shortcuts/launchers is shown somewhere on the screen where ...
2
votes
1answer
51 views

How can I bind my ctrl+b so that I don't need to press it to resize my pane?

I managed to be able to resize panes in tmux thanks to this answer. But now I press CTRL-b and then e each time I want to resize the pane (e.g. make larger to the left). How could I bind the CTRL-b as ...
2
votes
3answers
100 views

Emacs paste into search (C-s) field?

Let's say you are writing code in one of Emacs window and then want to search for a string that you have copied manually (M-w) some time before. The problem is, that by default, when you issue C-s, ...
7
votes
1answer
148 views

The shell's “delete word” shortcut deletes too many characters

Under Bash some behavior of Alt+d has been driving me crazy since years and I figured out that maybe it could be fixed with a setting. If I'm at a terminal and issue a command like this: ...$ cat ...
2
votes
1answer
219 views

Dropbox, notify-send and OSD interfere with Ctrl-shortcuts

I'm using Ubuntu 13.04 with i3 4.5.1. When i3wm starts, Ctrl-C/-D/-K etc. are working fine. When I start Dropbox, notify-send or change the volume, all Ctrl-something shortcuts stop working. I can ...
1
vote
3answers
98 views

The n key doesn't work anymore but N does

I've been playing around xmodmap to create a custom keyboard (refer to Get the keycode of a key, from a custom made keyboard also). But now, I can't use the N key anymore, but the Shift+N still works ...
2
votes
1answer
193 views

Alt +Tab behaviour in Gnome

It may be a silly question but in Windows I used ShiftAltTab to switch back between my open windows, that is go back to previous windows. Unfortunately, it is not working in Gnome. I have even used ...
5
votes
1answer
487 views

How to remap a key combination to a key?

Is it possible to remap a key combination to a key in X server based system, so that for example if I press End + Arrow_up, keycode for Home is generated? Google seems to be silent on this issue. It ...
2
votes
0answers
659 views

How to scroll in a terminal by line in GNOME Terminal 2.31.3?

I use Shift+(PgUp/PgDown) while scrolling in the terminal. But it seems to scroll one screen (or a half may be) at a time. I feel comfortable scrolling the terminal by line with the mouse, but don't ...
3
votes
3answers
1k views

switching windows in twm with keyboard shortcuts

I am using a system that runs twm and I am wondering if it is possible to switch between windows using keyboard shortcuts, as I do in gnome with Alt+Tab.
0
votes
1answer
256 views

XFCE keyboard layout switcher broke .Xmodmap Caps Lock remapping

I have successfully remapped Caps Lock to Enter, using ~/.Xmodmap: clear Lock keycode 66 = Return Remapping scancode for Caps Lock But after switching to XFCE and installing keyboard switching ...
1
vote
1answer
138 views

Why do some default bindkey keys do not work in tcsh?

I'm using tcsh and I'm seeing that some of my custom and some of the default bindkey bindings do not work. Why don't they work? For example: I load some default bindings: bindkey -e I check the ...
3
votes
1answer
268 views

Suspending the global KDE&X-Windows keyboard shortcuts while specific application is running

I'm running KDE on Arch-Linux 64b. I've been a Vim user for two years now, and I want to try learning Emacs - just so I can have a justification when I diss Emacs users. So far, my main problem with ...
2
votes
1answer
311 views

Playing around with shortcuts and window sizes with awesome WM

I've been trying awesome WM for a few months now and i am really enjoying it. I am now playing around with the rc.lua file, and I'm searching for a way to do two things. With the shortcut mod4+Enter ...
2
votes
1answer
2k views

Cut + Copy + Paste in Linux Puppy Wary

Trying to cut + copy + paste from the standard urxvt shell in Puppy Linux Wary 5.3. If I follow this post on http://crunchbang.org/forums/viewtopic.php?id=15085 and I press: in urxvt: ctrl + ...
1
vote
1answer
2k views

Free all function keys ( F1-F12 ) for gnome-terminal

I'm using gnome-terminal and I need to free all the F keys because I need to remap them to something else inside vim, how I can do that? I'm running Ubuntu 13.04.
2
votes
1answer
387 views

Keyboard shortcut for SIGTERM in GUI application?

Related to another question, is there a way to send SIGTERM to the currently focused local GUI window application with a keyboard shortcut? Like clicking the [X] button in most WMs or Ctrl-c for the ...
1
vote
2answers
5k views

Gnome3/cinnamon set keyboard shortcut

I cannot find where I can set keyboard shortcut for switching languages. Update: New problem: I cannot set Alt+Shift combination for that.
2
votes
1answer
143 views

Is the desktop environment responsible for affecting behaviour to certain keys?

I have a laptop which has a Fn key. Using xev command shows that Fn + UpArrow is affected to XF86AudioRaiseVolume. If I use KDE, is it KDE that is responsible for affecting a behaviour to that ...
10
votes
3answers
4k views

Where do I find a list of terminal key codes to remap shortcuts in bash?

For example: "\e[1;5C" "\e[Z" "\e-1\C-i" I only know bits and pieces, like \e stands for escape and C- for Ctrl, but what are these numbers (1) and letters (Z)? What are the ;, [ and - signs for? ...
2
votes
1answer
229 views

How to make Ctrl+PgUp and Ctrl+PgDn change window tabs

I am running GNOME 3.4 (Debian 7.0) and my laptop (Gigabyte Q2532), unlike all those I've used before, doesn't change application tabs with CtrlPg Up and CtrlPg Dn. This forces me to use Alt0...9, ...
0
votes
1answer
47 views

Keyboard shortcut to switch files in one Emacs instance?

I've multiple files opened in an Emacs client. Right now, to toggle between files, I've to click on the file name at the bar below in the editor. Any keyboard shortcuts for switching between files?
0
votes
2answers
154 views

Emacs “jump to class definition” functionality?

I want to jump to a class file "A" from another file "B" which defines objects "A". In eclipse, it is done using F3. Is there a way to achieve this in emacs?
1
vote
1answer
88 views

Change one typed key for another

I have LUbuntu 13.04. Is it possible to change the keyboard on the operating system, so that when I press k for instance, the system will hear it as I actually typed m? Or any other key for that ...
8
votes
2answers
214 views

Single key audio capture in Linux (save on key release)

I'd like to run a program that records audio only when the Right Control key is held down. On keyboard release the result would write to disk as, e.g. yy-mm-dd hh:mm.ogg. How might I do that? $ ...
2
votes
0answers
1k views

How to write dconf overrides for site-custom keybindings?

I want to add custom keybindings using dconf. Previously, I had do the same job using gconf and succeeded. However, there are some problems using dconf. (I'm working on a Debian package, so ...
2
votes
3answers
981 views

tcsh shortcut to move the cursor back to previous space

I'm looking for a keyboard shortcut in tcsh to move the cursor back to the previous blank: not ESC+B which takes me back one word (for instance, in a path argument, to the previous path component) - I ...
4
votes
2answers
964 views

vim shortcut to open a file under cursor in an already opened window

In vim you can open a file under the cursor by using the gf command. One can also easily open that file in a new split window by hitting <c-w> f. This is a really nice and time saving feature. ...
1
vote
0answers
528 views

Turning off gnome's Function key mapping

I recently upgraded to Fedora 18 with gnome. My function keys started to do things like open the cd player (F12) and turn the volume up (F11) and down (F10). I'd like to just pass those though to the ...
1
vote
1answer
181 views

xmodmap causes incorrect keyboard shortcuts

I used xmodmap to switch the Caps Lock and Ctrl keys on my Thinkpad X120e. The keys are swapped but this has caused keyboard shortcuts in several applications to stop working correctly. In Libre ...
7
votes
3answers
654 views

How to save current command on zsh? [duplicate]

I am typing a command, I remember I have to check something, if I press Ctrl+U the command disappears and I can type something else, but then the command I was typing is not in the history. Is there ...
5
votes
2answers
314 views

Fully Disable PrntScr Key

I recently came across a Linux feature I have never seen before, where pressing the PrntScr button on the keyboard prints a physical piece of paper with the contents of my console. I really need to ...
11
votes
2answers
1k views

What are the characters printed when Alt+Arrow keys are pressed?

When I press AltUp, A printed to terminal screen. Same thing happened when I pressed AltDown but B is printed instead. Other characters that I realized; AltLeft = D and AltRight = C What is the ...
5
votes
2answers
121 views

Keyboard combination to insert non keyboard characters

on windows one could with Alt+235 print ë into (any) textfield. I tried the same on linux and it seems to be not working. Depending on the application the result is different, but never the wanted ...
0
votes
1answer
524 views

How to map terminal shortcut from CTRL-M to another combination

I read in another post that you can type CtrlJ or CtrlM instead of the Return key in the terminal, which is great. But what I want to be able to do, is change that to another combination, for example: ...