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
9 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
33 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
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 ...
3
votes
0answers
39 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
40 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
67 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
12 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
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, ...
5
votes
1answer
29 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 ...
4
votes
3answers
785 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 ...
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, ...
8
votes
2answers
166 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
2answers
483 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 ...
2
votes
1answer
337 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 ...
1
vote
0answers
7 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, ...
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 ...
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 ...
0
votes
2answers
50 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
10 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
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 ...
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.
4
votes
0answers
40 views

Disable keyboard shortcuts in Thunderbird

Is there a way to disable those evil keyboard shortcuts in Thunderbird ? When I accidentally hit a, suddenly the message gets archived and a new Archives folder is created. Similarly other keys bring ...
-3
votes
3answers
84 views

Why does hitting “Ctrl minus” in the command line shrink the font size?

I have hit a few CTRL- in command line and I see the text in the terminal getting smaller with every invocation. What is going on here and is there a way to redo ie magnify the text to bring it back ...
6
votes
4answers
739 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?
4
votes
5answers
381 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", ...
4
votes
1answer
17 views

How do I re-map the changing pane keys in tmux?

I want Prefix + Up,Down,Left,Right to be mapped to Prefix + Ctrlh, Ctrlj, Ctrlk,Ctrll. I tried: bind-key C-h Left bind-key C-j Down bind-key C-k Up bind-key C-l Right But it didn't really work: ...
1
vote
1answer
269 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 ...
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
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 ...
0
votes
1answer
32 views

xbindkeys and messed up outputs

I am trying to set some key bindings for the use inside my wm. so I did xbindkeys -mk and start testing with keys. The result was somehow not what I expected. Left wind key ===> m:0x50 + c:115 ...
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, ...
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
2answers
506 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?
1
vote
1answer
28 views

How to invoke Gnome 3 activity screen using command line?

What I'm trying to do I'm using a Logitech MX Revolution mouse, which has a button below the scroll wheel mapped to search, which I remapped to middle click. For doing so, I had to remap XF86Search ...
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 ...
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 ...
2
votes
2answers
3k views

Global Keyboard shortcuts in Ubuntu 14.04

I've just upgraded my distribution from 13.10 to 14.04, which seems to have broken global keyboard shortcuts. They are still present in the "Keyboard settings" as before. Although media keys are ...
1
vote
1answer
375 views

Control-space on Cinnamon

I installed synapse on my Cinnamon desktop, and everything worked with the keyboard shortcut Ctrl+Space. Then, at some point, it stopped working properly, and I had to hold down Control and hit space ...
0
votes
0answers
51 views

Use CTRL-SPACE to open menu on Linux Mint

I'd like to use the keyboard shortcut CTRL + SPACE to open/close the Linux Mint menu (similar to how Command + SPACE is used on OS X to show/hide Spotlight). I tried going to Settings -> Keyboard -> ...
2
votes
1answer
183 views

Linux Mint (Cinnamon, Muffin) set a keyboard shortcut where one of the keys is a mouse

Linux Mint 17 Cinnamon Edition. I want to create a keyboard shortcut involving the mouse. Specifically, I want to make it so clicking Alt, right-click, and dragging my mouse allows me to resize the ...
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 ...
0
votes
2answers
48 views

How to catch keystrokes in Linux environment

I need a C code to be executed when some particular keys are pressed in Linux "Desktop" environment. What are the ways to register for such an event and How? Should I write ISR for that? I need an ...
2
votes
2answers
139 views

How can I remap the shortcut keys for scroll down/up in gnome terminal

According the gnome-terminal usage: You can also scroll up or down one line at a time by pressing Control+Shift+Up or Control+Shift+Down. In this document shows: Control + Shift + Up / Down can ...
1
vote
1answer
177 views

Remap select window 2 in tmux

In tmux you can switch to window 2 with prefix_key + 2. I'd like to press rather prefix_key + u. I tried in .tmux.conf this: bind-key u 2 and this: bind-key u select-window -t 2 Which doesn't ...
9
votes
1answer
587 views

How can I change the behavior of hotkeys in xmonad if the program is running?

I'm using a few key mappings in my xmonad.hs configuration file: ... , modMask = mod4Mask -- Rebind Mod to the Windows key ... [ ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s") , ...
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
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) ...
39
votes
11answers
23k 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 ...
4
votes
2answers
177 views

How to move windows across displays in Gnome 3?

In Gnome 3, moving windows with the keyboard shortcuts Meta+← and Meta+→ can be convenient. Now, I have two displays installed and would like to move windows across the displays without ...