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
387 views

Disable action keys

I'm running openSUSE on HP Pavilion dm4. I have a bunch of action keys (volume up/down, brightness, wifi etc.) on my function keys. For using standard Fx keys I have to hold Fn key. The problem is ...
9
votes
2answers
1k views

Select code block in vim

Given a code like this: 588 while ($linecounter > 0) { 589 $token = " "; 590 while ($token != PHP_EOL) { 591 if (fseek($handle, $pos, SEEK_END) == ...
3
votes
2answers
329 views

Bash: keybinding/trap issue

My .bashrc has the following: # Alt+L lists current directory bind -x "\"\el\":ls -ltrF --color=auto;" # trap commands and echo them to xterm titlebar. trap 'echo -ne "\033]0;$BASH_COMMAND - ...
4
votes
1answer
225 views

In emacs, how can I pass an argument to a function in a keybinding defintion

I want to create a keybinding for funcion end-of-line+ and pass a value of -1 to i. The function is declared as: (end-of-line+ &optional n) The first of the following snippets below, works ...
2
votes
0answers
125 views

How can I prevent Control+Alt+D from logging me out (of Gnome 2.22 on Debian 5)?

I was using Emacs, and typed Control+Alt+D in order to run Emacs' "down-list" command. I was dismayed to see, however, that I was instantly logged out; I assume this is some Gnome keyboard shortcut. ...
39
votes
11answers
22k views

Getting tmux to copy a buffer to the clipboard

I am trying to figure out a decent way to copy what I have in a tmux buffer into my clipboard. I have tried a couple of different things like bind-key p select-pane -t 2 \; split-window 'xsel -i ...
6
votes
2answers
2k views

how to close all panes but the current pane in tmux

I have a key bound to setup panes to my liking, but sometimes things get messed up or out of hand and I want to close all the panes and rerun the script. Is there a simple tmux command to close all ...
3
votes
2answers
4k views

How to map ALT key in .vimrc?

In order to be able add blank lines without going into insertion mode, I'm trying to map ALT-o and ALT-O to o<ESC> and o<ESC> I've tried the following in my .vimrc map <M-o> ...
2
votes
1answer
468 views

Tutorial about key maping in KSH in EMACS mode

Are there any good tutorial to learn about Key Maping in Korn Shell (AIX) in EMACS mode ?
11
votes
4answers
381 views

Is there a vim shortcut for <name of current file>?

In vim, if I'm working on a Python script, I will commonly type: :! python this_script.py to execute the script. Is there a shortcut for the name of the current file? If not, can I easily make one? ...
5
votes
1answer
235 views

Can I set a gnome keyboard shortcut to be a prefix key, like in emacs, tmux or screen?

I would like to setup some Gnome keyboard shortcuts to be a prefix-key, so that I can add several shortcuts with the same prefix. Eg. I'd like to be able to have Super+x be a prefix key, with the ...
8
votes
2answers
3k views

In GNOME 3, how does one assign keyboard shortcuts for applications besides the default applications?

In GNOME 3, there's a facility to assign keyboard shortcuts for applications like your default browser, default email client, default terminal etc. How do I do this for other applications?
7
votes
1answer
951 views

Terminator: Shortcuts for Prev and Next?

In terminator, the keyboard shortcut Ctrl+Shift+F opens up a small bar at the bottom of the window to let the user search a text string within the terminal scrollback. Are there any keyboard ...
4
votes
1answer
543 views

How to execute shortcut keys from command line?

I am running Gnome. I would like to execute a shortcut key combination from the command line. For example, type a command that generates the key codes for Ctrl+Alt+Left. Does anyone know of a way to ...
9
votes
3answers
1k views

Yanking URLs in w3m

I have been using w3m for a couple of weeks and am convinced that it is my preferred text browser - with one exception. Is there any way to yank URLs to the clipboard without using the mouse? I have ...
3
votes
2answers
765 views

Working with screen and emacs

I'm working with emacs (on the terminal) and I use screen to switch between terminals. The key combination Ctrl+A is grabbed by screen. Is there a way to change screen key binding?
1
vote
1answer
247 views

erratic keyboard shortcut behavior - gnome debian testing

Sometimes my keyboard shortcuts in gnome do not work (ctrl-alt-right for next desktop, ctrl-alt-m for menu, ctrl-alt-b for browser, et cetera) Sometimes after rebooting they do work. I wish I ...
29
votes
2answers
6k views

Pasting X selection (not clipboard contents) with keyboard

I'd like to be able to paste the X selection using the keyboard. Currently I have to use the middle mouse button to do this. I gather that faking a middle mouse button press is fairly easy to do, ...
3
votes
2answers
512 views

Why does US International Keyboard break Alt_R

All adding the U.S. English International (with dead keys) keyboard layout breaks my Alt_R key. Any ideas why? I'm working on RHEL 5.5 using GNOME. The problem disappears if I remove the additional ...
1
vote
3answers
717 views

How to disable “Resize Window” shortcut (Alt-F8)?

I disabled this shortcut it via System->Preferences->Keyboard Shortcuts, but it still persists. Furthermore, it takes precedence over Alt-F8 in other apps. How do I really disable this shortcut? Do I ...
4
votes
1answer
547 views

Reverse control-code look up for terminals

My understanding is that terminals often use ANSI control-codes to represent non-alphanumeric character sequences. For example, when editing .inputrc for Bash in Linux, it's easy to find code ...
9
votes
2answers
3k views

Mapping key combination with xmodmap

I'm trying to achieve the following mapping keycode 135 = <Ctrl-C> Is it possible to achieve this in some way?
11
votes
2answers
3k views

How to change previous/next word shortcut in bash?

How do I configure Ctrl-Left and Ctrl-Right as previous/next word shortcuts for bash (currently alt-b and alt-f)?
4
votes
5answers
380 views

Can I change a shortcut key to Windows key?

I'm trying to change the shortcut key for "Run Application" ( Alt+F2 ) to the Windows key. When I click "Show the panel's Run application dialog box" in Keyboard Shorcuts, it says "New Shortcut", ...
5
votes
2answers
1k views

Adding Ctrl-L as “clear” hotkey in OpenBSD's ksh

I've been looking for a way to use Ctrl-L to clear the monitor instead of typing clear in each time. I found nothing except a patch which didn't work for me. How do I add hotkeys/shortcuts to my ...
5
votes
1answer
331 views

Enable kill X.org with an own key combination

I've just read Enable kill X.org with ctrl+alt+backspace and am really happy, that control-alt-backspace no longer kills my X-Server. However, I'd like to have a way to kill it; it just should be ...
3
votes
2answers
359 views

Jump to start of the line in Bash's Vi mode

I'm using Bash Vi mode (aka set -o vi). Still I miss the Ctrl-A shortcut from Emacs mode, which is very handy. Many times I'm retrieving the last command and append an echo to the beginning of the ...
4
votes
1answer
358 views

In Gnu Emacs how do I set up a global key to toggle the menu-bar?

Using Gnu Emacs 23.1.1 on Ubuntu 10.04... I'm currently a total newb with emacs, and I've decided to go cold turkey with the Gnome menu bar. (but I do want it to be "available" for the teething ...
9
votes
2answers
2k views

Can less invoke vim instead of the default vi when I hit the 'v' key?

I want to launch vim instead of the default vi editor when I hit v in less. Are there any settings I can modify to allow me to do this?
1
vote
2answers
2k views

Fluxbox shortcut to open an xterm, or switch to an existing one

Is it possible using fluxbox to setup up a shortkey to say winkey+r that opens up a terminal (say xterm or whatever) with these properties: If there is already a terminal that the working directory ...
6
votes
4answers
3k views

Emacs command to cut OR copy to system clipboard?

As a very new Emacs user, I've been using Ctrl+w and Ctrl+y to cut/copy and paste between buffers in Emacs. Is there a way to do the same thing so that not just Emacs, but the entire system, can have ...
3
votes
6answers
11k views

Task manager keyboard shortcut in Linux?

Is there any keyboard shortcut for the "task manager" (like Alt+Ctrl+Del in windows) when my machine goes into a crashed state?
2
votes
2answers
450 views

Shift+Ctrl+[Left|Right] to highlight text, then type, ignores the first two characters typed

I'm using openSuse. It was installed for me by the IT group here at work this week. I routinely use Shift+Ctrl+ some arrow key to highlight text, and I'm in the habit of simply typing in order to ...
3
votes
2answers
1k views

How can I assign a keyboard shortcut to a specific application in Openbox?

I use the web browser Uzbl and the window manager Openbox, and I wondered if I could configure openbox to add a keyboard shortcut to minimize / maximize Uzbl's window ...
2
votes
1answer
392 views

VI mode in freetalk

I somehow managed to get my freetalk into vi-mode. I'm just unsure how I did it (if I restart freetalk I get an emacs-mode). Anyone an idea?
1
vote
2answers
428 views

How to stop Mod4-P from switching the display? [closed]

I use Ctrl-P very frequently to scroll backward in the command history, but I often mistype it as Mod4-P, which is bound to the switch display function. I've searched around Keyboard shortcuts and ...
6
votes
3answers
3k views

How do I jump to the next or previous word with CTRL + arrow keys in a console?

In terminal emulation applications, pressing CTRL + Left / Right arrows jumps from one word to the previous or next one. Is it possible to have the same functionality in a Linux console, whether it is ...
1
vote
1answer
80 views

Amarok2 “Search Collection” shortcut?

Is there a way to make a shortcut for amarok2 that would put focus on the search collection box?
6
votes
1answer
506 views

Emacs and windows manager keyboard shortcuts without “Super” key

I found a classic M-series keyboard and I want to use it. However, it does not have the "Windows" key (a.k.a "Super"), only the Shift, Control and Alt modifiers. My keyboard shortcuts are cluttered ...
10
votes
4answers
17k views

How do I quit from Vi?

I started Vi on my Ubuntu machine. However I don't know Vi, and now I can not quit. I see the editor and I can write text, at the bottom line there is a label "recording". How do I quit from Vi?
12
votes
1answer
2k views

Is there a back-“button” in w3m?

Does w3m offer a keyboard shortcut to go back one page? I couldn't find anything in the man pages.
1
vote
4answers
919 views

Toggle between dvorak and qwerty

I've recently started to learn the dvorak keyboard layout, but I still need to use qwerty sometimes. I'm looking for a script to toggle between the two keyboard layouts. Also, I'd like to invoke ...
1
vote
1answer
1k views

KDE custom global shortcuts

How can I set a global shortcut in KDE (4.4) to run a bash script?
1
vote
2answers
416 views

Can't map XF86AudioRaiseVolume key in QJoyPad

I wanted to map my PSone gamepad to do some basic KDE/keyboard/mouse functions and everything works well except one thing. I use logitech ultra-x keyboard which has a few multimedia buttons (play, ...
2
votes
1answer
184 views

Application shortcuts

Where are the application shortcuts (Settings -> XFCE 4 Settings Manager -> Keyboard -> Application Shortcuts) saved?
3
votes
2answers
832 views

How can I simulate keyboard shortcuts in a bash alias?

For example, one of my bash aliases is this alias p='clear;ls -lt;pwd;' clear also clears the history which I don't want. I just want to clear the screen momentarily. Ctrl+L however does exactly ...
8
votes
2answers
507 views

Is there any way to assign shortcuts to Nautilus bookmarks?

I have added several dirs as bookmarks to nautilus and I want to know if there a way to assign keyboard shortcuts to some of them.
2
votes
1answer
467 views

Emacs mode in zsh: M-b M-f etc. show weird symbols

I have set up zsh to use emacs mode. But typing Alt+f or Alt+b inserts weird symbols (accented letters and so on), rather than moving around by word in the shell like it should. Since I don't ever ...
4
votes
1answer
189 views

How can I make Ubuntu UI uniformly use bash keyboard shortcuts?

On my default 10.04 Ubuntu install I am consistently tripped up by the fact that some UI text areas/input boxes treat CtrlA as "select all" vs. "move my cursor to the beginning of the line." Is there ...
3
votes
2answers
1k views

OpenSuse custom keyboard shortcuts not working

Note: This question is specifically on a clean install of OpenSuse 11.3 with gnome as the display/desktop manager I can't get custom keyboard shortcuts to work, default shortcuts are working ...