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 (2)

0
votes
1answer
735 views

Cinnamon 2.2 How to add custom shortuct: move workspace up

I'm quite aware this must have been asked many times, but I cannot seem to find the right search terms to get an answer. I would like to have Ctrl+Shift+Up move my workspace up, and similarly ...
1
vote
2answers
1k 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 ...
75
votes
14answers
51k 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 ...
13
votes
2answers
404 views

What is “<Esc>Kv” in bash

When I am in bash and press Esc, Shift+K, V, bash fires up $EDITOR with a filename similar to /tmp/bash-fc-186566385. Why is that and what is its purpose? I probably need to mention that I am ...
0
votes
0answers
16 views

Cinnamon DE - View all global key bindings?

I'm using Cinnamon 2.8.6 on Ubuntu 16.04. How do I identify which process is grabbing a hotkey or combination shortcut? I tried How do I find out what program 'owns' a hotkey?. However, ...
7
votes
1answer
85 views

What is the historical origin of CTRL + P for up and CTRL + N for down?

I am a moderately experienced vim user, who is now beginning to use GNU emacs. At about the same time as I learned that Ctrl-p and Ctrl-n are the default for up and down in emacs, I also learned they ...
4
votes
1answer
50 views

Xmonad: Catch all keyboard shortcut

I'm using Xmonad and I have a quite long list of custom keyboard short cuts defined in my config. I would like to add something like a catch all at the bottom of the config which locks my screen if ...
4
votes
1answer
34 views

How to allow for caps-lock keyboard layout change

I am using a freshly installed Ubuntu-Gnome 16.04, and I want to set caps-lock to change keyboard layout (single key, not key combination). I used to have this Linux-mint, and I grew used to it. I ...
0
votes
2answers
31 views

Problem with understanding keys bindings

I have a settings and a zsh session ~ bindkey | grep help "^[H" run-help "^[h" run-help Why when i press "Control + [ + h" word under cursor removes and nothing happens, but if i press "Alt + ...
1
vote
0answers
16 views

What keycodes correspond to requests for touchpad-enable and touchpad-disable?

I'm trying to write a kernel driver to support a hardware switch on my laptop. The switch is supposed to control whether or not the touchpad is disabled or enabled, and it is built into the laptop's ...
1
vote
1answer
22 views

How does 'Create New Folder' short-key work?

In many file managers there is a shortcut/key to create a new folder. In Nautilus, Thunar, Panthon-Files, this is Ctrl+Shift+N, in Dolphin it is F10. How does this shortcut work? I imagine that ...
1
vote
1answer
56 views

How to stop tmux capturing key sequences?

My xterm is configured to produce this sequence: Ctrl ~Shift <Key>Tab: string(0x1b) string("[27;5;9~") \n\ Under tmux it almost always does not work (sometimes it passes through). What could ...
2
votes
0answers
24 views

xfce4-terminal: keyboard shortcut to set terminal title

How can one set a keyboard shortcut for an instance of xfce4-terminal? It appears that the Terminal->Set Title menu does not have a shortcut tooltip, and I would really like to keep my open terminals ...
1
vote
1answer
18 views

Find out if ctrl+backspace equals ctrl-H or ctrl-?

This question was about how to delete the last word in bash with ctrl-backspace. As already mentioned there, different Linux distros (or different Unices in general) behave differently: Some produce ...
1
vote
0answers
47 views

What is preventing my window managers from recognizing some key combinations?

Since rebooting my system this morning, every window manager seems to have lost its capacity to recognize combinations of keys. I'd started noticing it in xfce4 when I tried to launch the ...
4
votes
0answers
16 views

How to change built-in xfce shortcuts

XFCE4 has some customizable keyboard shortcuts configurable under Settings > Keyboard and Settings > Window Manager. But there are other keyboard shortcuts that I cannot find in these menus. For ...
0
votes
1answer
6 views

Getting Ibus working with tiling window manager

I am wanting to get the Ibus IME (Anthy engine for Japanese input) working in all my window managers. Unity is fine, along with Compiz and Metacity. But the one I really want to get it working with ...
20
votes
2answers
8k views

What is meant by a shell is in “vi” mode or “emacs” mode?

This question follows directly from the answer. In this case I am specifically unable to understand the part which says: In that regard, its behaviour is closer to emacs' than with ...
1
vote
2answers
19 views

Setting up keyboard shortcuts to perform a terminal command

I'd like to perform certain actions by keyboard shortcut on Linux Mint 17.3. Specifically, I'd like to execute commands expressvpn connect (connecting to my VPN provider) and xsel -b|xsel -bi ...
8
votes
4answers
6k 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 ...
2
votes
1answer
24 views

Text movement in Text fields

I moved to OS X several years ago, and have noticed that due to the way they set up keybindings, you get some niceties when it comes to navigating any text area (for example the URL field in your ...
0
votes
1answer
301 views

Script to gracefully kill X server and drop to tty?

I use the terminal to do the majority of my day-to-day computing, so I have the default runlevel set to 3 in /etc/inittab and I only start the X server when I need to. I currently have the following ...
7
votes
2answers
3k views

What are valid keys for tmux?

I was trying to learn how to use the bind-key [-cnr] [-t key-table] key command [arguments] better, but was having some trouble figuring out what "valid keys" are for bind-key command. I tried doing ...
0
votes
0answers
27 views

How to hide cinnamon screensavers from albert launcher

I am trying to use albert launcher on linux Mint 17.3. It was showing a lot of applications for almost anything I typed in it, application that did not launch, did not have any icons, names I was ...
27
votes
6answers
12k views

How to enable killing Xorg with Ctrl+Alt+Backspace

I don't remember why they did this, but at one point X.org decided that disabling CtrlAltBackspace to kill it was a good idea. I know there's a way to re-enable it but I don't remember how. Can ...
0
votes
0answers
14 views

Linux Mint Cinnamon: Change 'Text Scaling factor' via Shortcut

Does anyone know a way to define a Shortcut for the 'Text Scaling factor' Setting in Linux Mint Cinnamon? I could not find anything under 'System Settings' > 'Keyboard' > 'Shortcuts' ...
2
votes
1answer
19 views

Cannot reassign shortcut SUPER+M under GNOME

Kernel: x86_64 Linux 4.4.5-1-ARCH GNOME: 3.20.0 I am unable to make use of the shortcut SUPER+M. What I've tried so far: assigning the shortcut to the system's email program assigning the ...
3
votes
1answer
1k views

xorg.conf XkbOption ignored for terminate:ctrl_alt_bksp to restart X

I want Ctrl+Alt+Bksp to restart X, so I created an xorg.conf rule: /usr/share/X11/xorg.conf.d/53-zap.conf: Section "ServerFlags" Option "DontZap" "false" EndSection Section "InputClass" ...
2
votes
1answer
37 views

Is there a KeyHold event in Xorg?

I have a new Macbook Pro and I installed Arch Linux on it. One thing I want to be able to do is use the media keys to seek through a track (in mpd) and goto the next or previous track. This is ...
1
vote
1answer
29 views

Meaning of the bash shortcut Alt+{

What's the meaning of the output from the Bash shortcut Esc { (Esc, Shift+[ on a US keyboard)? e.g., $ ls brown.txt file1.txt file2.txt fox.txt quick.txt Esc { produces the following at the ...
3
votes
2answers
2k views

Free all function keys ( F1-F12 ) for gnome-terminal

I'm using gnome-terminal and I need to free all the F keys because I need to remap them to something else inside vim, how I can do that? I'm running Ubuntu 13.04.
1
vote
1answer
43 views

convert .Xmodmap to custom.xkb file and load it from $HOME directory - customize x keyboard [duplicate]

I use the following .Xmodmap file to map a few symbols and German Umlaute öäü: keycode 108 = Mode_switch keycode 13 = 4 dollar EuroSign keycode 19 = ...
0
votes
1answer
45 views

Blue Fn + Function keys not working with Lubuntu on my Thinkpad

I have a Lenovo Thinkpad X201 (if the submodel matters, please say so), with Lubuntu 15.10 running on it. I use LXDE for my desktop environment (as the name suggets). Now, as you may know, Thinkpads ...
7
votes
4answers
6k 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 ...
0
votes
0answers
18 views

vim + tmux: some shortcuts broken?

When I am using vim inside of tmux, some of my shortcuts are broken. E.g. I have bound Ctrl + up/down and Shift + up/down in my .vimrc and when I'm running vim inside of tmux these shortcuts do not ...
4
votes
2answers
2k 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 ...
12
votes
3answers
2k views

What are the characters printed when Alt+Arrow keys are pressed?

When I press AltUp, A printed to terminal screen. Same thing happened when I pressed AltDown but B is printed instead. Other characters that I realized; AltLeft = D and AltRight = C What is the ...
0
votes
0answers
17 views

Keyboard Shortcuts lose focus when switching between Applications

I'm running Linux Mint 17.2 64-bit, Cinnamon Version 2.6.13 with Kernel 4.3.0 and I'm playing Football Manager 2016 on it. So when I switch between applications after a few switches the keyboard ...
6
votes
2answers
2k 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 ...
0
votes
1answer
31 views

Fcitx “Extra key for trigger input method” changes back to default after restart

Using Ubuntu 15.11. Configuring input using the 'Input Method Configuration' screen. Whenever I change "Extra key for trigger input method" it works for only that session. Once I restart the computer ...
34
votes
5answers
38k 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
2answers
245 views

Why does insert-mode map “<F4>” unpredictably inserts itself or executes intended key strokes?

In Vim 7.3.1-762, mintty 1.1.2 (xterm), cygwin, Windows XP, the insert-mode map <F4> executes the intended key strokes at one time but inserts itself at another time. This undeterministic ...
0
votes
0answers
16 views

How to map mouse functions to the keyboard in Linux

I am using Red Hat Enterprise Linux 6.5 and would like to map several mouse functions to my keyboard. To be specific, the four mouse functions I would like to map are: Left mouse button double-click ...
24
votes
4answers
80k 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
29 views

What is the keyboard shortcut for Mint 17.03 Rosa for language switch?

Clicking the flag is not an option. ALT + Caps doesn't work, I went through all shortcuts - no language switch options, there is custom shortcut option - if anyone can help provide a command to do so ...
0
votes
1answer
25 views

Forward Slash “/” key opening “Gnome Help”

I've done a yum update today (CentOS 7) and after that my forward slash key is now opening "Gnome Help" every time I press it. It is driving me insane because I have to use the numpad divide symbol to ...
3
votes
2answers
2k views

How to fix the shifted function keys in vim in xterm in gnome-terminal?

When I hit the <s-f2> key to execute my nnoremap <s-f2> :set number! mapping Vim opens its "Insert" mode above (O) and types the 1;2Q string. In order to see the entire terminal key code – ...
2
votes
3answers
1k 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 ...
3
votes
1answer
45 views

Remap Fedora 23 Keys under the i3 window manager

I have read that xmodmap has been overridden by xkb since Fedora 23. I am using i3. xkb seems really overwhelming when all I want to do is swap the windows key and alt key. From xev the outputs are: ...
2
votes
3answers
75 views

How to insert text by hitting a key in chrome?

The hotkey should be easy to disable and enable (with another shortcut). The text and keys to enter are string, and should be called by typing "r". It should be used in a flash app for easier ...