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)

5
votes
1answer
31 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
13 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
45 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
65 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: ...
32
votes
4answers
89k 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
32 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+...
80
votes
14answers
54k 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
20 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
29 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
453 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
8 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
22k 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
24 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
27 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
22 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"...
5
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
31 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
13 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
57 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
16 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 ...
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 ...
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 ...
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) == -...
0
votes
1answer
776 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
0answers
11 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....
2
votes
0answers
13 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 ...
0
votes
0answers
27 views

Ctrl+D toggles the OSX dock but I want it to be passed to the terminal [migrated]

I'm new to Linux and have been playing around with manipulating files with cat ie. cat > randomNames Albert Einstein Marie Curie Isaac Newton now when I want to quit cat with control + D on my ...
2
votes
1answer
26 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": ...
5
votes
0answers
26 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 ...
1
vote
1answer
28 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
37k 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
59 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
41 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
49 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
103 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
201 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
128 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
29 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
30 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
56 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
24 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
32 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 ...
0
votes
0answers
35 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 ...