Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [keyboard-shortcuts]

Questions about how to run a program or other operating system function when a given combination of keys is pressed.

0
votes
0answers
7 views

2-key Keybindings (e.g. alt-shift) override 3-key bindings (e.g. alt-shift-1). How can I fix that?

If I have a 3key binding (e.g. alt-shift-1) and 2-key binding (e.g. alt-shift), when I press alt-shift-1 it just does the alt-shift binding instead (and writes shift+1). Shorter bindings override ...
0
votes
0answers
4 views

Set custom keyboard shortcuts for keyboard layout change by CLI in Cinnamon (Linux Mint)

Setting for set custom keyboard shortcuts via CLI does not fully work on Linux Mint Cinnamon 19.1. Here is what I've done to investigate: 1) Added custom via GUI, assign Ctrl+Alt+z, it shows as Ctrl+...
1
vote
1answer
22 views

Vim - opening man pages

I'm aware that exists a shortcut to open manpage of current function (the function cursor is on), but I can't recall how to do that.
0
votes
0answers
8 views

How to remap Caps Lock key to a command (not ctrl or escape, but a command like xfce4-terminal)

I am using GNOME on Wayland on Arch Linux. Currently my CapsLock key does nothing and "Both shift keys" act as CapsLock (set from gnome-tweaks). I want to remap CapsLock to a command like gnome-...
1
vote
1answer
21 views

Creating shortcuts profiles in XFCE4

I would like to create a script to switch between two shortcuts profile in XFCE in a way that I could change the shortcuts layout without restarting the session. I know that shortcuts are in ~/....
0
votes
1answer
27 views

French characters mappings in xkbcomp ~/.keymap.xkb

I am looking to add all the French characters to my ~/.keymap.xkb file. In the interest of not duplicating things, has anyone else done this and care to share their configuration? Clearly some ...
0
votes
2answers
38 views

How to create a keyboard shortcut that checks if a program is already open if yes it opens its window instead of the new instance

Example on hyper terminal: I press alt+h, the script should check if hyper is already running in the background. If yes, it should open already the opened window. If not, open a new window. OS: ...
0
votes
0answers
15 views

How to fix keymap after ubuntu installation

Recently I've installed Ubuntu 18.04 on my pc alongside Windows 10. I added nouveau.modeset to grub boot script to be able to log in (there is an issue on Dell XPS 15, which prevents ubuntu from ...
-2
votes
1answer
98 views

CTRL+D vs CTRL+C

Is it true to say that CTRL+D stops input execution while CTRL+C stops output displaying (as plain data, without execution)?
0
votes
1answer
11 views

How to select text when Arrows, Home, and End are mapped to Mode_Switch+Letter

I managed to map the arrow keys, Home, and End to Mode_Switch+Letter (where mode switch is Caps Lock) as explained in this answer: Bind CAPS+hjkl to arrow keys; CAPS to ESC though if I want to ...
0
votes
0answers
16 views

Insert is pasting in Waterfox

Pressing the insert key in Waterfox seems to paste the clipboard contents, as opposed to the usual behavior. Why is this? How can I change it?
0
votes
0answers
14 views

Linux Mint shortcut key fails to switch back to previous keyboard layout

In Linux Mint with Cinnamon. two keyboard layouts are used; en-CA (useful for accents in french) and en-US. I set up the shortcut to switch layouts to super+space. I can switch from en-US to en-CA, ...
1
vote
0answers
13 views

How to create a keyboard shortcut to enter a Unicode shruggie?

I want to create a keyboard shortcut that, when pressed, writes ¯\_(ツ)_/¯ I use Linux Mint Cinnamon.
0
votes
1answer
24 views

Unable to remap CapsLock key on AwesomeWM with iBus-Mozc

I'm trying to remap CapsLock to Ctrl, but seems unable to remap in all ways. Also, the key has a strange behavior. First, I use japanese keyboard. Therefore, XKBLAYOUT = "jp" in /etc/default/...
0
votes
1answer
16 views

Open Konsole window in KDE with Keyboard Shortcut

I am used to using Ctrl+` to open Cmder in Windows. This key combination does not start a new Cmder process, but rather it maximizes or brings the already running one to the front and focuses on it. ...
0
votes
0answers
39 views

setting custom shortcut global in Linux

I am used to the following shortcut back when I was on Windows: Alt + n => Backspace I used to do that simply with Autohotkey and assigning a global shortcut all over the windows. Is there a way to ...
1
vote
1answer
17 views

Every time I press Crtl+f, Xterm opens despite not being a global keybind; how can I disable this behaviour?

I think some programs use xterm, so I don't want to uninstall it, but I use bash and Konsole for my terminal, so I don't need it bound to a key, especially Ctrl+f as it makes performing searches ...
1
vote
0answers
14 views

Can one efficiently identify “stacked” keybindings?

Consider this example "session stack": vim inside bash inside tmux inside a terminal emulator inside my desktop environment. Any given key or chord may be mapped at any one of those levels. Sometimes ...
0
votes
0answers
15 views

How to find out if a given shortcut combination does something, other than trying it?

I'm using Linux Mint 19.1, and noticed that the shortcuts alt+shift+up and alt+shift+down stopped working on Sublime Text 3. I checked the app configuration, and it is correct, so I suspect that this ...
2
votes
1answer
29 views

Local keys don't work in graphical shell in Debian 9.6

I installed Debian 9.6 with english as the language, and locale settings (incl. keyboard) as finnish. All works fine in desktop apps e.g. Chromium, but the keys "ä", "ö" and "å" don't work in Konsole, ...
0
votes
0answers
14 views

Ctrl + F4 not working

I've some problems with shortcuts in Ubuntu. One of them is that I cannot close tab in PhpStorm via Ctrl + F4 (it's specified so in screen where I choose to close it manually). It just does nothing
10
votes
1answer
1k views

What does (arg: n) in the command prompt mean?

On Codecademy's Command Line Course, when trying to use the keyboard shortcut Alt+Shift+# (which is supposed to comment the current line) in the command prompt, it switches the prompt from $ to (arg: ...
0
votes
1answer
44 views

Linux shortcut to screenshot directly to clipboard (Arch linux, xclip, gnome-screenshot)

I'm trying to add a keyboard shortcut to be able to automatically screenshot an active window to the clipboard I'm trying this line of code right now gnome-screenshot -w | xclip -selection clipboard ...
0
votes
0answers
42 views

Graphic tablet buttons

I have a noname tablet with 12 buttons. I made it work by digimend driver. Pointer works good, but tablet buttons generate mouse_btn events. I'd like these buttons generate custom keyboard events. How ...
4
votes
0answers
99 views

zsh keybinding: ignore given command in insert-last-word

In zsh, I have alt+. bound to insert-last-word. When I press alt+., I can list through the last word of previous commands. How can I exclude some words from being shown when I cycle through ? ie, ...
0
votes
0answers
17 views

KEY_UNKNOWN X1 tablet gen3

Some of the multimedia keys on the detachable keyboard of the X1 tablet gen3 (vendorid 17ef product id 60b5) do get mapped to KEY_UNKNOWN. Looking at the usbmon log, the data sent to the controller ...
1
vote
1answer
53 views

How to get all default keyboard shortcuts in Gnome 3?

I want to query default shortcuts for Gnome 3 from my running system. Is that possible? First, I want to make shortcut comparison between systems. Second, I want to see which shortcuts are modified. ...
1
vote
1answer
75 views

Switch capslock and ctrl with config file on ubuntu 18.04

Recently, I tried to switch capslock and ctrl on my Ubuntu 18.04. I did it by add the following line into my .bashrc: # swap capslock and ctrl /usr/bin/setxkbmap -option "ctrl:swapcaps" This worked,...
2
votes
2answers
94 views

Alt + . (dot) shows &, instead of a previous argument

I (ab)use Alt + . to recover the last argument in a previous command (I'm using ZSH): for example, $ convert img.png img.pdf $ llpp (alt + .) # which produces llpp img.pdf but sometimes I review a ...
5
votes
3answers
811 views

Is it possible to type μ on the bash command line without copying and pasting?

This may seem a bit of a strange question, but it occurred to me that when typing a command such as the following, I always have to copy and paste the character from Wikipedia. echo '5 μs' >> /...
0
votes
1answer
62 views

How to fix key mapping for control key [closed]

As I have mentioned here for some reason whenever I try to use CTRL key for any of the keyboard shortcuts, it prints the caret sign ^. Here is my .bashrc file: # ~/.bashrc: executed by bash(1) for ...
0
votes
0answers
18 views

Ctrl + Alt + A does not work in Emacs and other applications

I'm currently using Fedora 29 KDE Spin, I noticed that CTRL + ALT + A does not work in spacemacs, and the key combination does not seem to work anywhere. Some people advised me that it might be due to ...
0
votes
1answer
68 views

Kde Konsole swallows Shift-Left and Shift-Right

I'm running emacs -nw in console mode inside the KDE konsole terminal emulator. In Emacs I have defines Shift-Left and Shift-Right from the windmove package to jump horizontally between buffers. The ...
1
vote
0answers
55 views

Importing KDE global shortcuts defined by UUID?

I set up custom shortcuts using the Global Shortcuts GUI and want to transfer them to my other machines. When I export these shortcuts to a file, there are lines like: {f7cae817-7e09-468e-b039-...
3
votes
1answer
581 views

What does Super-O do on Linux Mint?

I am running Linux Mint, with Cinnamon 19. I accidentally pressed Super-O, and the following popup icon appeared: Pressing Super-O again seems to 'toggle' the setting, now showing this: I looked ...
0
votes
0answers
47 views

Why does Mutt's (more specifically, Neomutt's) “quit” command change depending on which screen I'm on?

If I'm viewing an HTML-based email, the steps to view it are: Inbox: select email, press [Enter] Email: text/html is unsupported, press [v] Email: viewing attachments, select and press [Enter] Now ...
0
votes
1answer
42 views

readline keybindings in chrome/chromium

Does a chrome/chromium extension exist that can configure often used readline keybindings? Specifically Ctrl+a for Home, Ctrl+e for End, Ctrl+d, etc for use within a text editing box. I have found ...
1
vote
0answers
43 views

Two keyboard keys with same ouput?

I have a Gigabyte Aero 14 with the G-Macro keys on the side. I have had Arch for a while on this computer and love it for my coding environment, but I have had some free time lately and want to ...
4
votes
1answer
50 views

zsh keybinding: insert-last-word

In zsh, I have alt+. bound to insert-last-word When I am listing through the last command parameters by repeatedly pressing alt+., sometimes I press one too many and I need to go one back. What ...
0
votes
1answer
27 views

How to disable ALT + HOME shortcut? Linux Mint 18

My notebook keyboard seems pressing random times the shortcut ALT + Home. Is bad because when I'm in, e.g., browser, I go to home page.
1
vote
1answer
46 views

How to undo CTRL+L in Bash in a GUIless system?

I mistakenly hitted CTRL+L and hiddened output from my previous viewport of the terminal window (Putty window in that case). Of course I can scroll up with the mouse and see the Bash output but that ...
3
votes
1answer
247 views

How to customize keybindings on ST i.e. simple/suckless terminal?

Here is the corresponding part of my config.h: /* Internal keyboard shortcuts. */ #define MODKEY Mod1Mask #define TERMMOD (ControlMask|ShiftMask) static Shortcut shortcuts[] = { /* mask ...
0
votes
1answer
428 views

tmux: Switch windows and panes with a single key

My Problem tmux key bindings require two separate key hits to enter a command. The first is called a prefix, and set to control+a. The second key performs the actual command, for example: c create ...
0
votes
1answer
23 views

Assign BackSpace to Super_R or Menu button in /etc/default/keyboard

I am running Debian 9. I bought a new keyboard that I love, but the BackSpace key is very small. I would like to assign BackSpace to the right Super key or Menu key (also on the right lower side). ...
0
votes
3answers
52 views

Is there a way I can tab between screens without pressing ctrl-a tab every time?

Essentially I just want to press Ctrl+Tab, not Ctrl+A then Tab. I don't believe this can be accomplished with an alias, but have read some stuff about maybe using stty? But I've never used stty and ...
0
votes
0answers
45 views

How to disable GNOME's 8 sec. shift hotkey for activating slow keys/keystroke delay?

When I press Shift for 8 seconds (as the upcoming dialog says, I rather feel these are 10 seconds) GNOME enables "slow keys", how they call it. Fortunately a dialog pops up before it is finally ...
0
votes
1answer
70 views

Using Menu key as modifier in X

I would like my Menu key (keycode 135) to act both as the regular context menu key when pressed alone, and also to have it emulate my XF86Audio* multimedia keys when used as a modifier, e.g. Menu+PgUp ...
0
votes
1answer
16 views

Access primary register with keyboard

I’ve read this answer on superuser.com by grawity and part of the text “X Selections, Cut Buffers, and Kill Rings.” by Jamie Zawinski. I understand there’s the primary register: use the mouse to ...
0
votes
1answer
75 views

Tmux binding error `returned 127` in cygwin

I want to use a clipboard manager in tmux. It is the CopyQ, but it does not matter, I guess. In ~/.tmux.conf I set following binding: set-window-option -g mode-keys vi bind C-y run 'out=`tmux save-...
0
votes
0answers
25 views

How can I remap Left Control + ijkl to cursor keys

Based on this blog post, I'd like to use Ctrl + ijkl as cursor keys, without losing other common keybindings such as Ctrl + s, Ctrl + a, etc. Using xkb, is there a way to remap Ctrl + i, Ctrl + j, ...