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
803 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 Ctrl+...
1
vote
2answers
31 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 ...
1
vote
0answers
46 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 ...
1
vote
0answers
18 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....
1
vote
2answers
912 views

What is hotkey in Linux Mint for “Show All Windows”?

I noted it is possible set a number of hotkeys in Linux Mint 17.1 using the keyboard application, but there's not possibility to set the hotkey "Show All Windows"; you can only set a button using ...
3
votes
0answers
21 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 ...
0
votes
3answers
1k views

Keyboard shortcut to launch Nemo

In Windows you can type Super+e to launch the file explorer. I find this really useful, particularly because almost every action I take starts with search for a file or folder. Is there an equivalent ...
5
votes
2answers
560 views

zathura: How do I add a keybind for exec?

zathura is my default PDF reader. Some files cause it trouble though, and in such cases I run :exec acroread $FILE which automatically opens the same file with Acrobat Reader. How do I add a key ...
2
votes
1answer
53 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 ...
6
votes
3answers
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 ...
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
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 ...
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
13 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
18 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 ...
7
votes
2answers
41 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 ...
4
votes
4answers
4k views

Awesome: keyboard layout switch

I use awesome as a window manager under gnome (debian system) and I made a widget to switch keyboard layout by this code: -- Keyboard map indicator and changer kbdcfg = {} kbdcfg.cmd = "...
1
vote
2answers
173 views

How to use Ctrl-Insert to copy from XTerm?

In applications like Firefox Ctrl-Insert and Shift-Insert work like Ctrl-c and Ctrl-v (modifying the secondary clipboard), but in XTerm they do not work like the common Ctrl-Shift-c and Ctrl-Shift-v: ...
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
52 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
55 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 ...
3
votes
2answers
1k views

How to scroll in a terminal by line in GNOME Terminal 2.31.3?

I use Shift+(PgUp/PgDown) while scrolling in the terminal. But it seems to scroll one screen (or a half may be) at a time. I feel comfortable scrolling the terminal by line with the mouse, but don't ...
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: ...
36
votes
4answers
93k views

How do I quit from Vi?

I started Vi on my Ubuntu machine. However I'm new to 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 Vi?
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+...
81
votes
14answers
55k 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 -b'...
1
vote
1answer
24 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
34 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?
5
votes
1answer
461 views

Keyboard bindings from bash to zsh?

I have the following entries on my .inputrc for bash: "\C-p": history-search-backward "\C-n": history-search-forward "\e[A": history-search-backward "\e[B": history-search-forward "\e[C": forward-...
4
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" ...
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 ...
36
votes
4answers
24k 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
31 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
0answers
49 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
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"...
6
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 ...
1
vote
0answers
37 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 ...
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 ...
2
votes
1answer
84 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 ...
11
votes
3answers
3k views

Select code block in vim

Given a code like this: 588 while ($linecounter > 0) { 589 $token = " "; 590 while ($token != PHP_EOL) { 591 if (fseek($handle, $pos, SEEK_END) == -...
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 ...
9
votes
7answers
38k 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?
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
1answer
62 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 ...