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)

2
votes
1answer
62 views

In emacs are any key sequences available for user macro bindings in all modes

I have recently started using org mode in emacs, but my macro bound in my initialisation file to C-x C-k T no longer works because this combination is used by outline mode which underpins org mode. I ...
7
votes
2answers
864 views

Why didn't Ctrl-C work?

I just hit Ctrlc twice at my shell in an attempt to halt a process that is taking a long time to finish. ^C was echoed twice, but the process just kept going. Why didn't Ctrlc quit the process like ...
2
votes
0answers
54 views

Make Compose not compose after certain key presses

On my laptop, I use the Win as a modifier. With the Fn key pressed, the key sends a different keysym and I use that as a Compose key. keycode 133 = Hyper_L keycode 134 = Multi_key add mod4 = Hyper_L ...
0
votes
0answers
416 views

Zorin OS 7 - Home button

What is the name of the command that invokes the home menu? I am using linux zorin os 7 ultimate. The home button (windows button) does not bring up the home menu. It does work, its not broken. I have ...
16
votes
1answer
453 views

Shortcut keys that are independent to keyboard layout

Is there a way to define an association of a particular physical key of the keyboard to some action, independently of the letter that this key is associated to in any layout? Example: In most ...
2
votes
1answer
75 views

tmux “last-session” binding

How could I bind to last (most recent) session? The obvious last-session leads to an "unknown command" error. bind-key z last-session
8
votes
1answer
100 views

Map a symbol to a specific key

I have the following problem: I use the intl variant of gb keyboard layout, i.e., what you get with: setxkbmap -layout gb -variant intl I use gmail in Firefox, and for some reason, the gmail ...
3
votes
1answer
2k views

How to execute a script in shell when a shortcut key is pressed

How could I execute a script in Shell when a shortcut key is pressed. Essentially what I need is when a shortcut key is pressed the script should read from a file and display that content in the ...
3
votes
2answers
857 views

Adding key bindings for “Fn” + “Control” key in openbox

I need use Fn + CTRL as a key combination, but it doesn't work in openbox (works in XFCE / KDE4`). <keybind key="Fn-C"> <action name="ToggleMaximize"> </action> ...
0
votes
1answer
48 views

is there a vim shortcut or can I create one for 'tabe other_file'

When possible I create 1 or 2 letter abbreviations for aliases and the like, e.g. x for exit or p for pwd at the command line. When using vim and doing multiple tabs for different files (which I can ...
2
votes
2answers
254 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
156 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 ...
1
vote
1answer
470 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 ...
2
votes
1answer
1k 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
157 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
106 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?
9
votes
2answers
981 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
154 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
53 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? ...
5
votes
1answer
554 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
98 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
139 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
102 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
40 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
67 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
133 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 ...
1
vote
1answer
137 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 ...
2
votes
1answer
105 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 ...
1
vote
0answers
216 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 ...
2
votes
3answers
540 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
90 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 ...
2
votes
1answer
137 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
163 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
642 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 + ...
2
votes
1answer
241 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 ...
0
votes
2answers
3k 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.
4
votes
3answers
2k 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
186 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
44 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
93 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?
8
votes
2answers
192 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
853 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
497 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 ...
1
vote
0answers
322 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
143 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 ...
4
votes
3answers
332 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
104 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
240 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: ...
1
vote
1answer
124 views

What program or feature is overriding my “Unity style” keyboard shortcuts in DockbarX?

I have DockbarX installed with the option "Use Unity style shortcuts (Super+number)" enabled. Recently I am unable to activate the 2nd application with Super+Shift+2 (I'm on azerty). When I use that ...
5
votes
4answers
3k views

Ctrl-s hang terminal emulator?

I came across a sentence in vimdoc: Note: CTRL-S does not work on all terminals and might block further input, use CTRL-Q to get going again. and this key indeed hangs my vim. I was ...