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
0answers
10 views

Cannot change global keyboard shortcuts in XFCE on Linux Mint

I am using XFCE on Linux Mint 14. I am trying to remove the default XFCE window manager shortcuts for workspace switching (Ctrl-F1, Ctrl-F2, etc.), as described in this question. The answers there ...
3
votes
1answer
362 views

How to quickly send commands to nested tmux sessions?

I have the following in my .tmux.conf set -g prefix M-j bind-key j send-prefix I need to press (Atl+J) + (J) + bound-key to send something to the nested tmux session. I feel it is rather slow. Is ...
6
votes
2answers
521 views

Is there a way to assign a shortcut key to nautilus' right click context menu?

Does anyone know of a way to assign a shortcut key combination to the menu items in the context menu that pops up in nautilus when you click on a file?
40
votes
12answers
24k 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 ...
2
votes
2answers
2k views

Whisker menu remove keyboard shortcut

Using Linux mint 16, with XFCE as desktop environment. I have a problem removing the default keyboard shortcut (Super_L), for opening the Whisker menu. The shortcut shows up in Application shortcuts, ...
1
vote
2answers
49 views

Paste text from clipboard directly to browser and make Google search for it

When we need to paste something to Google Search from our clipboard, we need at least two or more clicks, before we can get to URL bar and hit CTRL+V and then Enter to start searching. I was thinking ...
1
vote
2answers
529 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 ...
1
vote
0answers
6 views

KDE global bindkey for 'accept-line'

Is there a way to bind Ctrl-j keys to send 'accept-line' in KDE? readline library has a nice feature called key bindings. There are quite a few default keybindings user may want to use. To see it, ...
10
votes
4answers
19k 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?
0
votes
0answers
8 views

XFCE make media keys work globally?

I'm running Gentoo with xfce. I also have a logitech keyboard that has media keys like play and pause. The keys work fin in most programs, like vlc, if the program has the focus. I want these keys ...
2
votes
0answers
28 views

Keyboard shortcut for horizontal scrolling

Is there a utility I could use to scroll the active window horizontally using the keyboard?
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
1answer
423 views

Disable Ctrl+Alt Hotkeys in certain programs

I am using Sublime Text 3 which uses CtrlAlt$key hotkeys for a few important functionalities, but CtrlAltLeft (for example) switches workspaces. Is there a way I can disable the OS functions of these ...
0
votes
0answers
16 views

Additional keybinding combination to copy text to clipboard

I would like know, how to make copy to clipboard work not only with the default Ctrl+c key-combination but also using Ctrl+End for instance. How do I do that?
4
votes
2answers
37 views

confusing behavior of emacs-style keybindings in bash

Bash offers many useful emacs-style keybindings for simple commandline editing. For example, Ctrl+w deletes ("kills") word left from the cursor. Another keybinding, Alt+d is supposed to be a "mirror" ...
1
vote
2answers
45 views

Ctrl-w closes my Chrome window

As I become more used to Emacs, I mix it with other applications quite a lot. For killing some text in Chrome browser windows, I repeatedly type Ctrlw, and close chrome windows and lost my unfinished ...
2
votes
1answer
20 views

Custom shortcut to i3lock screen

I'm having difficulties with creating a custom keyboard shortcut. I'm trying to lock my screen using i3lock with a picture. From the terminal, the command i3lock -i ~/Pictures/lock.png works like ...
1
vote
1answer
21 views

Xterm Ctrl+Arrow shortcut keys

I'm using xterm version 293. While navigating in a command, I normally use the short-cut keys as Ctrl+LeftArrow or Ctrl+RightArrow to move back and forth. But while doing so, rather expected ...
-1
votes
0answers
17 views

How to configure keyboard shortcuts for Gcolor 2 in Linux Mint?

Just installed Gcolor2 color picker for linux. I cant find how to set keyboard shortcuts for color picker. Does anyone know how to do it?
17
votes
5answers
6k 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?
0
votes
1answer
30 views

What does meta+n do in the terminal

When I click this it replaces whatever I have currently typed into the buffer with a :. Hitting backspace will go back to whatever I had in the buffer but I can't seem to find what the hell it's ...
3
votes
0answers
85 views

Ctrl+Alt+Backspace to kill X server can't be disabled

I would like to disable the Ctrl+Alt+Backspace shortcut to kill my X server. I have tried disabling it in the gnome-keyboard-properties "Layout Options..." dialog. When I start the dialog, the option ...
2
votes
0answers
24 views

Fluxbox: how to map a key for taking screenshot of selected area?

I want to map the Ctrl+Alt+4 to take a screenshot of a selected area. Right now I can do that from a terminal using gnome-screenshot -a. I have tried putting: Control Mod1 4 :ExecCommand ...
1
vote
1answer
275 views

Apple keyboard in openbox

I just upgraded from Fedora 15 to 16. I'm using Openbox as an alternative to Gnome 3. The problem is that I cannot find a way of using the multimedia keys properly in Openbox. Changing the keyboard ...
4
votes
1answer
50 views

Shortcut to google selected text

Is there a way to customize evince to search on Google a selected phrase? Like in Firefox where I select a text and right-click--> "Search Google for ..." If evince isn't customizable, is there any ...
0
votes
0answers
14 views

Scientific Linux 6 assigning keyboard shortcuts

Can I assign keyboard shortcuts for launching Konsole terminal emulator on Scientific Linux 6 without administrator privileges? If so can you guide me how, I appreciate your help.
16
votes
8answers
2k views

How do I repeat the last command without using the arrow keys?

I know I can use Up to iterate through previous commands. Running the last command simply involves Up + Enter. However, I was thinking of buying the Happy Hacking Keyboard as I spend a lot of time in ...
3
votes
1answer
43 views

How to add a key binding to maximize/close all windows?

Lubuntu uses LXDE with Openbox. I can configure key bindings in ~/.config/openbox/lubuntu-rc.xml I want to add key bindings to maximize all windows and have the current active one on top. I also ...
1
vote
1answer
20 views

ALT + CTRL shortcuts in MATE problem

I've installed MATE under Arch Linux. I've a problem with the shortcuts. A lot of the shortcuts doesn't work so I tried to change them. When I'm trying to reassign the shortcut I go to Settings -> ...
0
votes
1answer
28 views

Changing keyboard layout on Scientific Linux 6.0 and creating new keyboard shortcuts?

I have two questions regarding keyboard input and shortcuts: Is it possible to change the keyboard layout on Scientific Linux 6.0 and how can it be done? Is it possible to define new keyboard ...
5
votes
2answers
963 views

How to switch X windows from the command-line?

How can I create a script that automatically switches windows? I'm trying to do the same thing Alt+Tab does.
4
votes
3answers
811 views

Regaining usage of volume control media keys after removing pulseaudio

I am running a GNOME 3 fallback desktop in Debian testing, and I removed some pulseaudio packages, for I don't need the advanced functionality. That resulted in my multimedia keys that control speaker ...
0
votes
0answers
27 views

Chrome OS: Crosh Window and Hostname

I have a couple of questions regarding Chrome OS: By default Ctrl+Alt+T opens a crosh window within the Chrome browser. I have the Crosh Window extension, which I would like Ctrl+Alt+T bound to - ...
1
vote
1answer
41 views

LXDE: How to run a program/command when I press one or more keys?

I have a numpad on my keyboard and I want to make the keys do something when (the otherwise useless) ScrollLock is on under LXDE graphical environment. For example, I want to run my browser when I ...
6
votes
1answer
254 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 ...
3
votes
0answers
48 views

Typing punctuation adds an accent to the preceding letter after my laptop is docked for a few minutes

I am running Manjaro XFCE. Everything worked like a charm for months now, but 2 weeks ago the keyboard configuration from my external keyboard seems damaged. Writing on my laptop itself works ...
0
votes
2answers
46 views

What is the difference between “find” and “till” in vim?

I see I can use t c or Tc to move to the next / previous character c I can also use fc or Fc to move to the next / previous character c Is the only difference between them that tc places the ...
4
votes
1answer
72 views

system settings -> shortcuts and gestures

Something is stealing my Ctrl+F7 and Ctrl+F8 shortcuts from eclipse. I checked out the settings panel from the title but could not spot any such bindings over there. So, how do I get to see who is ...
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
0answers
26 views

Assigning a global hotkey to a functionality of an appilcation in KDE

How can I set global shortcut keys to Pause and Record buttons in audacity? Options of vlc allow assigning global hotkeys but there's not such options in audacity.
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, ...
5
votes
1answer
40 views

How to disable Alt-Arrow switching of Virtual Consoles?

The following happens on different Linuces: When I'm in a virtual console, hold Alt and press ← or →, the virtual ttys cycle. This is really annoying as I'm using fish-shell which also uses this key ...
30
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, ...
8
votes
2answers
177 views

Vim - map last shell command to the key

Is there any way to map leader-r to repeat last command sent to bash? For example, when working with C files I would like to compile and run program from vim without typing :!make or gcc. I know I ...
1
vote
0answers
8 views

How do I allocate a key shortcut to moving GNOME 3 workspaces up/down?

In GNOME 3, in the Keyboard Shortcuts area of the Keyboard settings page, it is possible to allocate shortcuts to move between workspaces and move windows between workspaces. Unfortunately, however, ...
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 ...
0
votes
2answers
74 views

Openning root terminal by keyboard shortcut

I am using Debian Linux and I am setting some shortcuts on it. So in keyboard window I went to shortcut, added gnome-terminal, and set Ctrl + t as the keys. But in Debian we also have "Root ...
1
vote
0answers
13 views

Remap “Show the Overview” to control in Gnome ( Fedora 20 )

I would like to remap "Show the Overview" to control, but the gui will not allow it. Is there a config file somewhere I can use to specify this? Screenshot
5
votes
1answer
237 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 ...
2
votes
3answers
595 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.