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)

6
votes
4answers
4k views

Reload of tmux config not unbinding keys (bind-key is cumulative)

I've been experimenting with different tmux keybinding settings and I've noticed the following: If I reload my tmux config (from within tmux) the keybindings I once had loaded will remain loaded. The ...
3
votes
3answers
178 views

Replacement shortcuts for `screen` [closed]

Screen uses the shortcut CtrlA to activate. I find that this interferes with the Bash command for jumping to the start of the line, and the VIM command for incrementing an integer. Certainly I could ...
1
vote
2answers
530 views

Linux guest VM on mac host - Keyboard

I use a Mac as a development box, but am slowly transitioning to Linux. So I am spending the majority of my time in the Linux guest VM while working. But I still spend a fair amount of time in Mac ...
0
votes
1answer
115 views

Can Bash Emacs shortcuts be enabled over SSH?

I find Bash keyboard shortcuts such as Ctrl-a (jump to start of line), Ctrl-k (cut text following caret), Ctrl-n/Ctrl-p (next/previous line in command history) immeasurably useful in day-to-day CLI ...
1
vote
1answer
568 views

Linux Mint 13 Xfce - Use Super_L in multiple shortcuts

I'm using the XfApplet for integrating the mintMenu into my Mint Xfce installation. As shortcut I defined Super_L which works fine. Additionally I want to define a shortcut <Super_L>r to execute ...
1
vote
1answer
353 views

Fedora 17 doesn't detect some key-presses

About 1 week ago, I installed MATE desktop (Gnome2 fork) because I wanted to use XMonad in gnome. So I am pretty sure this problem has something to do with MATE. My keyboard is just a basic HP ...
2
votes
2answers
154 views

Bind MetaL in icewm

Anybody managed to bind the Windows key in IceWM ? It seems I can't bind it to anything since I disabled the "treat as Ctrl+Alt" option. # Treat Super/Win modifier as Ctrl+Alt # ModSuperIsCtrlAlt=1 ...
1
vote
1answer
167 views

Binding additional keyboard shortcuts in bash

I like typical GUI shortcuts: Ctrl-Backspace Ctrl-Del And other typical shortcuts. Are there any ready .bashrc with all this shortcuts available?
2
votes
0answers
227 views

Can't use Control key while setting shortcut keys for compiz

I might got a problem along with my Xorg config, all control keys are now shown as <Primary>, what is that? I just mapped Capslock to Left Control, and I can't set the shortcut key to Control + ...
4
votes
2answers
1k views

How do I resize the active window to 50% with wmctrl?

I would like to resize the window to the left half of the screen. A solution to achieve that would be to use wmctrl and keybind the right command to a keyboard shortcut. But the manpage only shows ...
1
vote
1answer
177 views

map “Ñ” to “:” in vim

I want map the key Ñ (Shift+ñ) to : in the normal mode of vim. I've searched vim configs with Ntilde but I've found nothing. Any idea?.
7
votes
2answers
2k views

Byobu with tmux, how to use F-Keys

I'm accessing a linux box with Byobu enabled (with tmux) and I don't seem to be able to use some F-Keys without being binded to Byobu. For example using F6 to sort on htop. I followed this advice, but ...
7
votes
1answer
690 views

Use M-C, M-V, M-A for Copy, Paste, Select All

I am using Kubuntu Linux 12.04 on a Macbook Pro, and I am seeking the ability to use the Command/Meta key for common shortcuts such as copy, paste, and select all. Attempted solutions: Remap Copy, ...
6
votes
1answer
7k views

Fedora 17 : hotkey for terminal

Each time, if I want to use terminal, I press super key, typing terminal in search box, and enter to select terminal icon. How can I have hotkey to open terminal. (I'm not say hotkey : control + alt ...
1
vote
1answer
143 views

How to create cross-platform keyboard bind commands?

I'd like to have the same keyboard shortcuts in all the terminals I use. Since they don't have the same *nix on them, and since terminals can be very different, I'm looking for a reasonably portable ...
89
votes
6answers
6k views

How to run a command without hitting Enter Key?

Accidently I mapped Enter via xkbset to Pointer_button2. Now every time I hit Enter some gibberish text appears. I thought of a workaround involving remapping it back, but that means I will have to ...
4
votes
0answers
93 views

Can I map a key (caps lock) so it does one thing pressed alone, and another when pressed with a second key? [duplicate]

Possible Duplicate: Remap CapsLock to Escape and Control System Wide Just read this seriously obsessive post about customising keyboards and while I'm not going to do everything there, ...
3
votes
2answers
113 views

Shortcut for tabn & tabp in vim/vi

When I open several files using vim+tabf, switching across the files will involve using tabp & tabn. Can I have a quicker way to do so?
2
votes
0answers
377 views

How to use Sony VAIO buttons to lock the screen?

I have a Sony Vaio VPCEG laptop, like this. I'm using Lubuntu 11.10. I'd like to use those 3 buttons (Assist, WEB and VAIO). They work with Windows 7, to recover the system and to open the browser. ...
21
votes
5answers
13k views

How to get keycodes for xmodmap?

I'm trying to use xmodmap to remap Alt / Super keys on Dell L100 keyboard, and have trouble getting the keycodes. For instance, using xev doesn't give me keycode for Alt FocusOut event, serial 36, ...
2
votes
1answer
112 views

Prevent Iceweasel from allowing sites to override default shortcuts

For example, I use Ctrl-L to mark the URL field. On some sites, this is overridden to do something else. How do I make this never happen?
5
votes
2answers
399 views

vim customized with emacs commands (insert mode only)

I was an emacs user, and I have to switch to vim. But I miss some basic emacs commands in vim insert mode: C-A C-E C-K C-Y C-x C-s ... and some other I know that I can press Escape and then press ...
2
votes
1answer
3k views

What is the command or hotkey for stopping a running program in DrJava?

I installed DrJava about a week ago. Its been working fine so far but I ran into an infinite loop and wanted a way to stop the program from running without having to force DrJava to quit. Is there a ...
2
votes
0answers
40 views

Keyboard-only captioning in digikam

In digikam 2.5.0, is it possible to caption a series of photos using only the keyboard? If yes, how?
1
vote
0answers
552 views

XFCE - Send window to other monitor on keystroke

I am running Xubuntu 11.10 with a dual monitor setup. I am looking to create a keystroke (maybe CTRL + ALT + SPACE which will allow me send a selected window to the next monitor. In GNOME there is a ...
7
votes
2answers
443 views

How can I switch 2 characters in vi?

I like the fact that I've memorized ddp for switching two lines (i.e. dd deletes the line and then p puts it back '1 higher'). Is there are similar set of keystrokes for switching 2 characters so ...
1
vote
1answer
6k views

How do I get Ctrl + Alt + t to launch ther terminal in Linux Mint 13 MATE?

Pressing Ctrl + Alt + t seems to do nothing on my Linux Mint 13 MATE. How can I set this shortcut to launch a terminal window? As a detail, it seems the terminal is mate-terminal rather than ...
1
vote
1answer
94 views

Associating a function in Emacs after looking up the code with M-x describe-key

I would like to associate the following function (which toggles on and off full-screen on the active buffer): (defun toggle-maximize-buffer () "Maximize buffer" (interactive) (if (= 1 (length ...
6
votes
1answer
1k views

Using setkeycodes to map pressed and released to different “keys”

I have a keyboard that has a scroll wheel, but it doesn't work on Ubuntu and xev command doesn't show anything when moving it. But with the dmesg command I found this: When moving the scroll wheel ...
4
votes
1answer
3k views

Other than Alt + Shift to switch keyboard layout, any other Xorg key combinations?

All I can find about XkbOptions was: Option "XKbOptions" "grp:alt_shift_toggle" Seems I can only use alt+shift combination to switch keyboard layout, any other keys that I can use ?
1
vote
1answer
481 views

Gnome shell Alt+Tab

I am using Gnome-shell on arch linux. I use Alt+Tab frequently to switch between applications. Recently, I have assigned the language switcher to Left Alt+Left shift. This breaks Alt+Shift+Tab to ...
2
votes
1answer
616 views

Defining key sequences in Evil-mode Emacs

I couldn't find any instructions on defining key sequences in the Evil doc. The example given by the developers only covers a single key. (define-key evil-normal-state "w" 'foo) What do I need to ...
7
votes
3answers
2k views

Shutdown from login prompt in tty

Suppose I boot a Linux machine without GUI. When it displays a tty login prompt, can I shutdown the machine with a keyboard sequence? Of course I could type in my username and password and then sudo ...
6
votes
4answers
809 views

Open terminal from emacs

Is there a fast way (keyboard shortcut) to open a terminal emulator (in my case urxvt) in the same directory as the file in the current emacs buffer?
8
votes
1answer
793 views

Assigning awesome keybinding for more than 9 tags

I'm using the awesome WM and the nine default tags (or "virtual desktops") are not anywhere near enough for me: I've got a lot of VMs and remote VNCs etc. In the past I've used window managers with ...
5
votes
2answers
2k views

assign shortcut key to run a script

I've written a script to change the brightness of my screen. It's useful when I am working on text mode and shortcut keys of my keyboard to change brightness doesn't work. Is it possible to run this ...
7
votes
2answers
8k views

Xfce 4: Change global keyboard shortcuts

I use Alt+Space in Emacs, but in Xfce it pops up window manager menu at the upper left corner of a window. How do i disable Alt+Space for Xfce and change global keyboard shortcuts in general?
3
votes
2answers
563 views

emacs - paste text from clipboard without formatting

I am using Emacs 24 for MacOSX and having some problem with pasting code from clipboard to Emacs. The code that I selected usually already nicely formatted (with tab, ident, ...). However, when I ...
0
votes
2answers
270 views

How to change keys for window manipulation (from menu, default: alt+space) in openbox?

I'd like to change default keys which manipulate window. For example default set is: maximize: x key but unmaximze: is e key I really want to have for example x key for maximize and unmaximze. How to ...
5
votes
1answer
493 views

Cannot switch to console anymore after using Alt_R as mod4

I'd like to use the right ALT key as 'mod4' (most notably because, by default, the 'awesome' window manager is using mod4 as a modifier for most WM commands and I like that idea a lot). However I've ...
9
votes
1answer
1k views

Keyboard shortcut to set gnome-terminal tab title

I like to work in Linux without using the mouse, because of that I would like to know if there is any method to set a keyboard shortcut to set gnome-terminal tab title.
2
votes
1answer
97 views

Make 'CTRL-/' behave the same in vtty and xterm

When I press Ctrl+/ in a graphical terminal (e.g. xterm) I get "undo". However, in a virtual terminal (e.g. Ctrl+Alt+F1) I get "backspace". In practice I run into this when I'm using emacs in a ...
3
votes
3answers
2k views

Openbox keybindings not taking effect after --reconfigure or restart

273 <keybind key="W-Return"> 274 <action name="Execute"> 275 <command>lxterminal</command> 276 </action> 277 </keybind> 278 ...
3
votes
1answer
1k views

How to get brightness keys working inside openbox session?

I'm using Openbox window manager without DE. I'd like to get fn + [brightness up/down icon] working like it is in GNOME/KDE, but i'm looking for lightweight solution without gnome-power-manager and ...
2
votes
2answers
139 views

In Gedit, how might I jump from the command line (bottom frame) to the file explorer frame to the text editor frame using keyboard shortcuts

I know how to jump from tab to tab in the text editor frame, but jumping from the text editor (center-right top frame) to the command line (center-right bottom frame) using only the keyboard eludes ...
4
votes
1answer
503 views

F4-key mysteriously reassigned

In the middle of today, my F4 key started producing the letter p, without my conscious acting and I can't seem to revert this change. Whenever I press F4, p appears instead. How can I change this ...
4
votes
3answers
1k views

Bash: How do I move my cursor to the left a word-at-a-time?

In OSX I can just hold down the option key and press the left cursor key until I get to the word I need to edit (or in Vi I can just hit b, but I haven't been able to figure out how to do this in ...
6
votes
1answer
693 views

Meaning and commands for Ctrl+Alt+Del

In my gnome GUI desktop of Ubuntu 12.04, Ctrl+Alt+Delete will log out instead of rebooting. But I was told that Switching to a text-based virtual console and pressing Ctrl+Alt+Delete will ...
3
votes
1answer
311 views

Script for emulating Windows [Win]+[Arrow] keyboard shortcut

I am running Fedora 14. I would like to (at least partially) emulate the behaviour of Windows when you hit Win+Arrow Key. That is, I would like it to "snap" to the left/right sides of the screen. I ...
6
votes
3answers
605 views

Vim: How to get rid of filetype-specific map?

Edit: Working version. I've mapped [[ and ]] to my own functions: nmap <silent> ]] :let &tabstop += 1 <CR> :echo 'tabstop =' &tabstop <CR> nmap <silent> [[ :let ...