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)

0
votes
1answer
53 views

Need to reset the Keyboard shortcuts defined

I bound some keys by mistake, and they don't work any more, such as HOME, END, UP, DOWN, LEFT, RIGHT. Is there a way to reset all the bound keys to their original state? I know this might be ...
1
vote
1answer
207 views

How to set up keyboard shortuts with custom modifiers (like Mod3) in Cinnamon?

I'm trying to migrate from Mate into Cinnamon. In Mate, it was possible to assign custom modifiers to Switch to workspace on the left of the current workspace. In Cinnamon keyboard configuration ...
2
votes
1answer
434 views

Multimedia keys (Fn+[F1..F12]) don't work anymore after upgrade

I'm experiencing a strange issue with the multimedia keys on Archlinux with XFCE 4. I used to change the sound level with FnF11/F12 keys but after a reboot, I'm not able to use it anymore. Moreover, ...
1
vote
2answers
271 views

Shortcuts in Xfce are not working anymore

After few weeks of using Xfce I suddenly ran into following problem - my keyboard shortcuts are not working when I am using two monitors (actually one monitor and notebook itself). When I unplug ...
1
vote
2answers
300 views

Mapping intr to del key

I am in the process of migrating a legacy 4GL application from SCO OpenServer 5.0.7 to CentOS (Red Hat) Linux 5.9. There are a number of screens that prompt the user to press "DEL to ABORT" but is ...
0
votes
1answer
68 views

Sawfish and fvwm bindings not working when logging in with a display manager

On one machine running Debian squeeze, when I log in with a display manager (I tried xdm, gdm or kdm), none of my Sawfish key or mouse bindings have any effect. If I log in in text mode then run ...
1
vote
2answers
470 views

XFCE4 Open PanelMenu via shortcut

I want open the XFCE4-Menu via a keyboard shortcut. I tried to map the command xfce4-popup-menu, but got the error: Failed to execute child process xfce4-popup-menu Then I tried ...
0
votes
1answer
154 views

Is it possible to bind a shell script to a key press [duplicate]

I used xev to find the key code for fn-f5 and came up with a little script to toggle the bluetooth on or off. My question is whether it's possible to bind fn-f5 (keycode 246) to my shell script ...
6
votes
3answers
4k views

Switch between tabs in gnome-terminal with keyboard?

Once I've created a new tab in gnome-terminal with Ctrl+Shift+t, how can I switch back and forth between the tabs using the keyboard? For example, in Google Chrome the keyboard shortcut is Ctrl+Tab ...
4
votes
2answers
86 views

Where does the yanked text on commadline get stored?

When you delete characters on the command line using readline commands (e.g. Ctrl-U, you can paste using Ctrl-y, but where does it get stored? It does not seem to use X11 clipboard at all.
3
votes
1answer
123 views

Bind to execute command with last argument of previous command

I want to create a bind that executes g++ !$ in the same way that the shell would interpret it if I just typed it. I tried: bind '"\ee": "g++ !$"', but it doesn't execute command (just "pastes" it) ...
4
votes
1answer
2k views

Delete key doesn't work on command line

*Note: I asked this same question on SuperUser, but didn't get any response. I now realize this is a more appropriate forum for this particular question. In a ksh shell, the Delete key doesn't work ...
4
votes
1answer
274 views

Map Super+[Left|Right] to Home/End

How do I map key "Super" so, when combined with Left/Right, it produces keycode Home/End? My current setxkbmap: setxkbmap \ -model pc105 \ -layout 'us(dvorak-intl),us(alt-intl)' \ -option \ ...
1
vote
1answer
734 views

debian/XFCE Virtualbox Guest on a Mac: how to use home and end keys?

So I have a Mac, and rather than boot debian/XFCE directly and have to configure hardware drivers I'm using VirtualBox. This means that my multitouch trackpad works well, and I can jump in and out of ...
6
votes
1answer
5k views

How to close any window in Awesome WM?

The shortcut to close individual applications completely depends on the application developer. Some examples: Ctrl-q for Firefox Meta-F4 for Chromium Ctrl-Shift-q for GNOME Shell To close ...
6
votes
2answers
365 views

Program to show keystrokes (shortcuts) on display

I'm going to make a presentation about a software product and it has some key shortcuts, that I want to show. Is there a program, which displays the keyboard-shortcuts, that I have used?
5
votes
2answers
165 views

How to consistently start Vim's command line to make a mapping work in any mode?

I try to normalize access to Vim's command line mode from any other mode in order to simplify my actual mappings. For example to make the <f6> key work from anywhere I define the following ...
6
votes
1answer
250 views

How to change Vim's command type mode programmatically?

Is there a simple way to switch from one command type mode to another without loosing the current command line? In my ~/.vimrc file I remap the <space> and <c-space> character, coming ...
16
votes
4answers
5k views

How to scroll in a terminal using keyboard?

How can I scroll in bash using only the keyboard? If it's not possible in bash, are there any other shells that support this?
3
votes
1answer
750 views

Control-q-? key binding in Awesome WM

I wish to configure my Awesome Window Manager so that the keyboard shortcuts begin with ctrlq. ctrlq-x, ctrlq-y, ctrlq-z, and so on... I've attempted to modify the /etc/xdg/awesome/rc.lua config ...
1
vote
1answer
565 views

CentOS: Avoid that ALT-F4 switches to console

At least every Linux system that I worked with used the convention to switch to the non-graphical consoles by Ctrl-Alt-F1, Ctrl-Alt-F2 and so on. Recently, I installed CentOS 6.3 on a machine. The ...
0
votes
0answers
2k views

I can't open the terminal in Cinnamon

I have Linux Mint 13 with Cinnamon installed, but I can't open a terminal using right click nor using CtlrAltt this is just an issue with Cinnamon, why is that happening? Update I tried to solve the ...
1
vote
0answers
2k views

Shortcut to minimize all windows?

In Windows systems, I use the keyboard shortcut Start-D (show desktop) a lot. I'm using Linux Mint, and I wonder: Can I create a keyboard shortcut that will do the same? edit after the comment from ...
1
vote
0answers
434 views

Remapping gnome-terminal shortcut keys [closed]

According to the Gnome-Termianl Usage, I found that ctrl+shift+up/down can scroll up/down a line in the terminal. Now, I want to re-map the shortcut key, just like: alt+j/k to scroll up/down a line, ...
3
votes
1answer
331 views

Have Sun keyboard moon key (116) not shut down my computer

On my Sun keyboard, the top-rightmost key (with a moon image, right above the keypad) shuts down my computer. I'd like it not to, as I hit it by mistake now and then. In /etc/default/keyboard, I only ...
2
votes
3answers
1k views

Ctrl + left/right arrow keys issue

After the last system update the ctrl + left/right arrow command on zsh terminal doesn't do anything. Also ctrl+ u has something wrong because usually that command erase from the cursor to the ...
1
vote
1answer
206 views

Reassigning Ctrl + Arrow keys in Vim [duplicate]

Possible Duplicate: How to fix Ctrl + arrows in Vim? Through the several tutorials and tips and tricks site about Vim, I think I happened to read that one can reassign a combination of keys ...
2
votes
1answer
59 views

Is it possible to bind '2M' to a single key in w3m?

Pressing M in w3m launches the 1st external browser, 2M the second. While it is easy to bind the built-in command EXTERN to another key, is it possible to bind the second to another key?
2
votes
2answers
626 views

Tmux Terminfo problem with Zsh key bindings

Zsh in Emacs edit mode comes with the default key binding ALT + Backspace to delete a word on the right side of the cursor and ALT + D to delete a word on the left side. I would like to add the latter ...
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
175 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
485 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
112 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
558 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
345 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
151 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
218 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
174 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?.
5
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
648 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
6k 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
142 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
5k 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
109 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
354 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
12k 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
110 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?