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)

1
vote
1answer
56 views

What is the difference between X11 keymapping and virtual console keymapping

In linux we have X11 which governors keyboard layouts but sadly any changes made there don't affect the system as a whole so in a tty you are left with standard qwerty no matter what your X11 ...
2
votes
1answer
74 views

Bind ctrl+space to backspace

I would like to make ctrl+space shortcut do a backspace. I can run a command, but is there a way or a program that emulate directly the key pressed?
1
vote
3answers
24 views

How to remove a zsh keybinding if I don't know what it does?

How do I disable a keybinding if I don't know what it is or what it's triggering? I have my zsh key mode set to vi-mode, through bindkey -v. To do a history search, I press Esc to get to "command ...
1
vote
0answers
46 views

XFCE online help on ctrl-c

I'm running Xubuntu. The terminal has started popping up a dialog Do you want to read the Xfce Terminal Manual Online? every time I hit Ctrl+C. This has rendered emacs (among others) basically ...
0
votes
2answers
1k views

ksh - map Ctrl-D to exit shell

I would like to know how we can map the keys Ctrl-D in ksh to exit the shell as it does in bash shell. Not much familiar with key binding in ksh. Edit See my comments below. $ echo $0 bash $ exit ...
0
votes
2answers
95 views

Tmux bindings using Ctrl+comma

In OSX, on iTerm2, I can map Ctrl/Cmd/Opt+, or Ctrl/Cmd/Opt+. to hex codes that go to next or previous tmux windows. How can I use Super/Meta/Ctrl and comma/dot key presses on Linux to produce the ...
3
votes
2answers
159 views

Ctrl-Backspace and Ctrl-Delete in bash

Putting on Debian 8.3 stty werase '^H' or on Arch Linux 2/2016 stty werase '^?' in .bashrc (for example) makes Ctrl-Backspace delete the last word in the terminal. Still it's not the same ...
1
vote
2answers
123 views

showkey -s doesn't display scancodes in CentOS 6.4

I'm running CentOS 6.4 on vagrant and then doing a vagrant SSH into the box. I've been trying to get backspace to work correctly for a while now (as chronicled here: Centos Terminal Configuring ...
3
votes
2answers
25 views

disable insert key for all but one applications

I would like to disable the insert key on my keyboard, because I often hit it accidentaly when typing, and it messes up my text. I found I can use xmodmap to disable insert key completely: xmodmap ...
0
votes
2answers
24 views

Insert/overwrite mode in fish

I'm using Linux Mint on a MacBook and on its keyboard the equivalent for the INSERT key is the combination Fn + RETURN. At the moment I can only see the intended behavior of this combination in ...
32
votes
4answers
21k views

How can I delete a word backward at the command line (bash and zsh)?

How can I delete a word backward at the command line? I'm truly used to some editors deleting the last 'word' using Ctrl+Backspace, and I'd like that functionality at the command line too. I am ...
1
vote
1answer
47 views

stty on old AT&T unix: how to add End-key for “end of line”?

How I can use the ctrl+e keyboard combination in emacs mode to go to the end of the line, but also be able to use the End key to do the same? How do I set that with stty? I have tried this combination ...
2
votes
0answers
17 views

How can I map the Caps Lock key to ShiftInsert on xubuntu [duplicate]

For a long time I have disabled my Caps Lock key using xmodmap. However I would now like to map it to something useful, specifically Shift+Insert which does the same as the mouse middle button (if ...
2
votes
1answer
16 views

how to create more than three geany custom commands with shortcuts

Geany allows creating custom commands and first three of them are available for invocation by pressing ctrl+1/2/3 respectively. How to make the fourth and subsequent ones available for shortcuts as ...
4
votes
2answers
29 views

Question about behavior of control key shortcuts

I am confused about how Ctrl-key combinations work in terminal. In bash man page, there are various combinations such as: C-e - go to end of the line C-f - go one character forward etc. But then ...
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" ...
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 ...
0
votes
0answers
24 views

Nemo file manager - change focus from the sidebar to the main view (automatically)

I find it hard to change the focus (either by keyboard, or automatically) from the sidebar to the contents view in Nemo 2.8.7 on Ubuntu 16.04. Nautilus does not have this problem. I want to be able ...
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
753 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 ...
2
votes
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
52k 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
445 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
22 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
88 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
51 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
46 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
32 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
23 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
31 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
28 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
21 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
49 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
18 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
10 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
24 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
7k 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
310 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
4k 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
28 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
18 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
27 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 ...
2
votes
1answer
42 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
30 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
63 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 = ...