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
2answers
35 views

How to set up an emergency power-off keyboard shortcut on Linux?

Some times when my laptop wakes up from standby or hibernation the screen backlight won't turn on and I can barely see anything in a dark room and just can't see anything when I'm outdoors. The only ...
3
votes
0answers
23 views

Problems Using Microsoft Sculpt Keyboard with Fedora

I've been using the Microsoft Sculpt keyboard for about a week with almost no issue. The one problem I'm seeing is that the Ctrl+F keyboard combo doesn't seem to work anywhere in my OS, other ...
1
vote
0answers
14 views

Getting shifted movement and editing keys to work on the console

In most text editors I use (Emacs, Nano, etc.), Ctrl+Left and Ctrl+Right allow me to skip forwards and backwards in the document one word at a time. Similarly, I can typically use Shift+Left and ...
2
votes
1answer
55 views

Change the key that show previous command lines in ksh

In most shells on Linux, when you press the Up-arrow key, it shows the previous command lines from the command line history. My question is, for the ksh shell, How do I set up some other key so ...
1
vote
1answer
20 views

Rebinding CTRL-ALT-[C|V] to CTRL-SHIFT-[C|V] in URxvt >= 9.20

Since URxvt 9.20, the copy can be used with Ctrl+Alt+C (and olsos the past with Ctrl+Alt+V). But, I already use this binding for another thing. So how can I rebind, in URxvt >=9.20 it to Ctrl+Shift+...
0
votes
0answers
14 views

Keyboard shortcut to show all workspaces in Gnome

What is the keyboard shortcut in Gnome (on Debian jessie) for showing all the workspaces in one window? Something like super-W in Ubuntu.
1
vote
2answers
48 views

tmux on remote machine not getting correct prefix + arrow keys

I am connecting from a windows machine to a remote machine using MobaXterm, and attach to a tmux session. Some key are not getting sent correctly, for example prefix + arrow keys just prints {A,B,C,D}...
2
votes
0answers
19 views

Application shortcut for windows in KDE

I would like to have a shortcut for several applications that does the following: Start the application if it's not yet running. Put the application in the foreground if it is in the background. Put ...
2
votes
1answer
15 views

Is it possible to bind ^/ and M-/ in nano

I've been configuring nano with the hopes of giving it the same keybindings as emacs, so that I can use nano for quick edits and emacs when I'm working on actual projects. However, I've run into a ...
5
votes
1answer
53 views

Go forward in bash argument history

I know about Alt + . to show the previous argument in bash. But what if I went past the desired argument (pressing Alt + . one too many times) and I want to go forward in history? Is there a key ...
1
vote
0answers
61 views

How to customise keyboard mappings with Wayland

I use Linux on a Macbook with a UK/GB keyboard and I customize the keymap to solve some problems Apple's weird keyboard layout causes. I use xmodmap to do this. I'd like to try Wayland, but xmodmap ...
0
votes
1answer
46 views

Up arrow at an empty prompt in ksh93

This is a request for explanation or pointer to documentation. I'm a KornShell93 (ksh on Mac OS X or ksh93 elsewhere) user. I like the shell for its relative simplicity as an interactive shell and ...
1
vote
2answers
66 views

Keyboard shortcuts C-h, C-m in bash [duplicate]

Bash uses GNU Readline. Readline provides a collection of keyboard shortcuts. However, there are some shortcuts that work on bash and that are not documented in Readline reference. Some examples are: ...
3
votes
0answers
39 views

Xfce Keyboard Layout change Ctrl+Space

Ok, so I've been googling this for almost a week now...without any luck. When I open the Keyboard settings pane, the options are only limited to (ones that have "Space" in them) Alt+Space and Super+...
1
vote
1answer
25 views

Pass F10 to the application in Gnome-terminal

I'm running old Debian machine: Distributor ID: Debian Description: Debian GNU/Linux 5.0.2 (lenny) Release: 5.0.2 Codename: lenny I open terminal and run Midnight Commander in it. Now I need ...
1
vote
1answer
35 views

binding key shortcuts to shell functions in zsh

In zsh, how do I bind a keyboard shortcut to a function? In other words, how do I translate: bash: hw(){ echo "hello world"; } bind -x '"\C-h": hw;' to zsh?
1
vote
0answers
50 views

How to configure XFCE to handle keyboard shortcuts\hotkeys on key-release\up, not key-press

While using an application on XFCE, pressing a keyboard shortcut\hotkey that overlaps with an XFCE hotkey, I find the XFCE hotkey effect taking place instead. For instance, Eclipse IDE has the hotkey:...
1
vote
0answers
38 views

Custom command when pressing Power Button on GNOME 3.20

I'm using GNOME 3.20 (on Archlinux, with systemd and no acpid). Since GNOME only allows three options as actions for when pressing the power button (hibernate, sleep, or nothing), i'd like to execute ...
1
vote
1answer
24 views

New keybindings in ZSH are not saved

I just switched from bash to zsh on my arch linux install and want to change my keybinding so that ctrl + arrow skips a word forward/backward. If I add bindkey "^[[1;5C" forward-word bindkey "^[[1;5D"...
0
votes
0answers
18 views

(Linux Mint) dconf changes are not applied after closing window

Linux Mint 17.3 Cinnamon Tried to change org.cinnamon.desktop.keybindings.wm.switch-group to [] but it has no effect - Alt+ causes switch-group after closing dconf editor insted of nothing. Need to ...
1
vote
1answer
32 views

How to change the key for autocompletion in ZSH?

I'm on Ubuntu Mate 16.04 using terminator as my terminal. And using ZSH version 5.1.1. I'd rather change the keybinding to the left arrow key to emulate fish in a way. Anyone know how?
1
vote
1answer
12 views

How to open a new terminal from my working folder in Solaris 10?

In Solaris 8, I could to ctrl+t to open a terminal from the file manager. But in Solaris 10, I can't seem to be able to. I try to create a shortcut key by gnome-terminal, but the pwd is always my ...
2
votes
1answer
89 views

Ctrl + arrow keys working in tmux

When I SSH in to our server, control + arrow sequences are working fine for me: Ctrl + V then Ctrl + up, down, right, left gives ^[OA, ^[OB, ^[OC, and ^[OD respectively. In tmux, I get ^[[A, ^[[B, ^[[...
0
votes
0answers
18 views

Send Capital Letters with Custom Shortcuts in Kubuntu 16.04

I recently upgraded to Kubuntu 16.04 and I have been reassigning keyboard shortcuts. In 14.04, if I wanted to assign a keyboard shortcut to type the word, Hello, for example, I could do the following: ...
0
votes
0answers
14 views

Removing a key binding

It turns out that Ctrl-Alt u invokes the following alert box on my machine: "No suitable ZModem software was found on this system." I need this key combination for other purposes inside emacs. I ...
1
vote
0answers
19 views

xbindkeys/xkb map ctrl shortcut

I have installed colemakwide(xkb) and would like to keep shortcut like ctrl+s etc. The goal is that all ctrl shortcut behave like QWERTY which I did in windows/klc by have the original vk for the keys....
7
votes
2answers
42 views

How can I get both custom compose sequences and Unicode character entry?

Entering raw Unicode characters by first hitting Ctrl+Shift+u and then entering the hex value of a code point to get that character (e.g. 262D for ☭) is quite useful, esp. when you're testing ...
2
votes
0answers
16 views

How can I stop using setxkbmap groups from snagging modifier keys?

I have several different keyboard maps that I can switch between to my heart's content using: setxkbmap dvp Then when I want another one: setxkbmap ptf Etc. This works, but I'd rather use the ...
2
votes
1answer
34 views

MySQL command line - bind <UP> key to a backward command search

With mysql command line client on Ubuntu 14.04 I could bind UP to a backward command search by adding the following lines to ~/.inputrc # type a word, hit up and a search is performed # "\e[A": ...
1
vote
1answer
36 views

trigger vi mode key binding in normal mode only

I've created some custom key bindings for bash vi mode. They trigger while I'm in insert mode and I want them instead to trigger when I'm in normal mode. I'm using vi mode set -o vi in a terminal ...
0
votes
0answers
26 views

How is a key sequence processed in a terminal? [duplicate]

My question comes from re-reading Gilles' excellent reply, and my recent comment on it. In a terminal (physical one, or virtual one such as Gnome terminal), when a key sequence is typed, is the ...
1
vote
3answers
58 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 ...
3
votes
2answers
31 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
41 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 GNU-...
1
vote
1answer
61 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
18 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
33 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
33 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 ...
1
vote
0answers
48 views

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

Edit: GitHub issue report I find it hard to change 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 ...
13
votes
2answers
475 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
24 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, ...
1
vote
0answers
29 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
60 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 ...
4
votes
1answer
101 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
39 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 + h"...
1
vote
1answer
26 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 ^...
5
votes
0answers
34 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 ...
1
vote
2answers
65 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 (...
0
votes
1answer
30 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 ...
1
vote
0answers
51 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 ...