Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
19 views

Can Capslock mimick the use of shift

I am using lightweight Linux, with Xorg, an minimal xbase-client for the only purpose to launch specific program on remote site. These programs used by lambda users works well with a single default. ...
0
votes
1answer
8 views

How to make xmodmap changes permanent? (reboot and resume)

Using xmodmap to remap meta key with the following command: xmodmap -e 'keycode 133 = F14' How can i make the change permanent, especially on system sleep/resume ?
0
votes
0answers
6 views

How to I simulate Apple propellor key for Google Docs in GNOME Web?

I have opened a Google Docs spreadsheet in GNOME Web. In Firefox I can copy-paste with Ctrl + C then Ctrl + V but this doesn't work in Web. If I try, I get this message: These actions are ...
0
votes
0answers
13 views

Is there a keyboard shortcut for the GNOME Panel taskbar in Fedora 30?

Is there a keyboard shortcut for the GNOME Panel taskbar in Fedora 30? As far as I can tell, there’s no way to access the GNOME Panel taskbar via the keyboard, which is unexpected. It seems that the ...
0
votes
0answers
29 views

Hot Key for “Enter”

I'm using the fedora deployment Virtual Machine and I would like move some of my Windows hotkeys to Linux. It seems like the native way to do this is by going to settings -> Keyboard then add Keyboard ...
1
vote
1answer
21 views

Non recursive .inputrc macros

I was looking to bind " to automatically insert a pair and put the cursor in the middle. Theoretically, like this: "\"": "\"\"\C-b" But this would act recursively causing this error message to pop ...
1
vote
1answer
11 views

Disabling a key in Ubuntu 18.04.2 which doesn't show in keyboard panel

I have a problem that when I'm pressing Alt+Shift (both right and left) Ubuntu changes the language... I want to disable the shortcut of changing a language in my Ubuntu 18.04.2 LTS , but I don't see ...
0
votes
0answers
6 views

Cinnamon Alt-Tab shortcut not picking up xkb mapping Backslash to Tab

I'm using Cinnamon 3.6.7 and trying to map my physical Backslash key to work like a "right tab" button. All I did was use setxkbmap -print to generate a short keymap file, then put replace key <...
1
vote
0answers
25 views

Keyboard backlight on Asus FX503 laptop [closed]

I'm unable to turn off the back light of the keyboard on my Asus FX503 laptop. I've tried every solutions available on the internet including xset, etc. Ubuntu 18.04 is installed. I've asked the same ...
0
votes
0answers
29 views

How to bind function key to a different keyboard key?

On my keyboard i have to press [fn] + [f5] for function key to execute which is really annoying so I wanted to bind keycode of [f5] key to a different key that doesn't require [fn] key. I saw a lot ...
0
votes
1answer
23 views

Tab key increases volume in Fedora

I am using ASUS VivoBook together with Fedora 29. Everything works except for a keyboard glitch. Pressing Tab increases volume, even though the entry for Volume up in Keyboard Shortcuts settings is ...
1
vote
2answers
93 views

How add Terminal Shortcut in Debian 9 Stretch Mate

I am using Debian Stretch Mate and I want to open a terminal by using the keyboard shortcut Ctrl+t. I tried the approaches given here and here but the don't work for me. From here Tell to does it ...
0
votes
2answers
47 views

Cannot get loadkeys to change key mappings

The man page for keymaps(5) includes this quote: Here's an example to bind the string "du\ndf\n" to the key AltGr-D. We use the "spare" action code F100 not normally bound to any key. altgr ...
0
votes
0answers
20 views

Ctrl-alt-del is not working in mate session

Linux Mint 19.1 (= Ubuntu bionic), mate environment. Some time ago hotkey combination ctrl-alt-del was stopped to work. If I press it in hotkey manager, it is captured well, but my action does not ...
1
vote
0answers
91 views

XCompose multiple characters: ¯\_(ツ)_/¯

In my ~/.XCompose, I have this line: <Multi_key> + <3> + <3> : "¯\_(ツ)_/¯" # Shrug. Which sadly, does not do what I want. Since only the first characters of the shrug is used. Can ...
0
votes
0answers
30 views

Vim statusline shows ^[[2;2R^[[>41;330;0c^[]10;rgb:e5e5/e5e5/e5e5^G^[]11;rgb:0000/0000/0000^G after mapping Capslock to Esc

I added au VimEnter * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' au VimLeave * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock' to my .vimrc to map Capslock to Escape. ...
0
votes
0answers
250 views

How to replace CTRL+C shortcut with same action plus xclip save copied selection command?

I am trying to be able to save/log all clipboard selection copies to a clipboard_histroy.log file. I want this to be able to simply append each copied selection to the log file but at the same time ...
1
vote
2answers
125 views

How to key bind 'backward-kill-line' to Ctrl+Shift+Backspace?

I have used answer of zsh kill Ctrl + Backspace, Ctrl + Delete to configure following key binding: Ctrl+Backspace: delete until the beginning of current word, Ctrl+Delete: delete until the end of ...
0
votes
1answer
181 views

How to create a toggle shortcut for the Deepin Control Center

The Deepin Control Center cannot be launched with a shortcut. It is a panel that appears on the right side of the screen containing all the Deepin settings. What is the command that could be ...
2
votes
1answer
71 views

Super+1, Super+2, Super+3, etc. keys can not be remapped in Gnome

I have been using the gTile Gnome shell extension. In gTile, I defined specific preset window positions, along with the keyboard shortcuts Super+1, Super+2, etc. to apply them. This was all working ...
2
votes
0answers
43 views

setxkbmap -layout us,pt doesn't work

I'm using i3 and imported some keybinds from another user that has the US keyboard. From the i3 forums, the easiest way to do this would be to do: setxkbmap -layout us,pt ..... This solution seems ...
0
votes
0answers
29 views

Mimic command on Linux

I find it really useful when using osx to have the Control key freed up to use emacs-like shortcuts in most applications, but in Linux it tends to be used for shortcuts instead. Is there a way to ...
0
votes
0answers
30 views

How to remap the keyboard with the Super L + hjkl like vim arrows

I'm using Arch Linux, I tried using xmodmap, so I'm not getting it When you press Super L + h, it would be the action of the left arrow When you press Super L + j, it would be the action of the down ...
3
votes
2answers
111 views

Can I launch macros and shortcuts from a second keyboard on Linux?

I have a small numpad keyboard which I would like to use for launching macros and shortcuts, along side my regular keyboard. I can attach macros and shortcuts to these keys (i.e, numpad 1 minimises ...
1
vote
0answers
65 views

Define <Super>C to copy etc

I am running Ubuntu 18.04 I am trying to remap the default Ubuntu shortcut of Ctrl+C to be Super+C, as well as paste, cut, select all, undo, and redo. I DO NOT want to just change Ctrl to be Super ...
0
votes
0answers
20 views

Mapping a key combo to toggle Fn or ALT

I bought a USB keyboard/touchpad. As the keyboard has F1,...,F12 and 1,...,' on the same keys, resp., w/ F1,...,F12 triggered by holding down fn or ALT, I'd like to bind a key combo to toggle fn or ...
0
votes
1answer
61 views

How can I run multiple unix commands sequentially using a single shortcut command?

I usually go through files using the following commands: cd first pwd ls cd second ls This a more generic way of my work. Can I execute all the commands one by one by itself by calling "some secret ...
1
vote
1answer
40 views

How to add keyboard shortcut for Tomboy 'create new note'?

I'm on Linux Mint and I use Tomboy Notes a lot. I want to add a custom keyboard shortcut to instantly open a 'new note' window and start typing. I've already created a custom keyboard shortcut for ...
0
votes
0answers
17 views

Mapping external keyboard PrintScreen

I'm running Pop!_OS and using an external CODE keyboard (88-keys) and I want to map PrintScreen and SHIFT+PrintScreen in my external keyboard to the actual PrintScreen key. The internal laptop ...
0
votes
1answer
24 views

Atom Editor: How to configure keybindings with “^” key

What is the keymap configuration to toggle "Tree View: Reveal active file" with Ctrl-Shift-^ in linux (german keyboard)? On Windows (english but german keyboard), the command "Reveal in Tree View" is ...
1
vote
0answers
9 views

Can triggerhappy be used to load multiple keysets of functionality?

I recently wrote a script with a loop that will switch out the functionality of a set of key presses based on a set of other keypresses. I'm starting to think the same can be done with triggerhappy. ...
0
votes
2answers
95 views

xterm: Disable Left Alt from producing ø

I'm on latest debian testing with i3wm on two different laptops. Linux mango 4.19.0-2-amd64 #1 SMP Debian 4.19.16-1 When I press LeftAlt + x I get "ø". And other special chars with other keys. I ...
0
votes
0answers
15 views

How to bind a keyboard shortcut with certain left or right modifier key in Ubuntu 18.04

In Ubuntu 18.04 keyboard shortcut settings do not differentiate between left and right modifier keys (e.g. Show All Applications - Super+A). Is there a remap-free way to assign a combination with ...
0
votes
0answers
104 views

Caps Lock behavior under Sway / Wayland

Under X, I can make Caps Lock behave as Esc when pressed briefly, but as Ctrl when held down with: setxkbmap -option 'caps:ctrl_modifier' xcape -e 'Caps_Lock=Escape' -t 100 How can I replicate this ...
1
vote
0answers
60 views

Eliminate xdotool delay?

I have assigned the key F2 to the command bash -c "sleep 0.1;xdotool type --clearmodifiers $(date +%Y%m%d%H%M%S)" There is a delay of half a second (not because of the sleep 0.1 command that should ...
0
votes
0answers
19 views

keymaps : strings as usual

In the keymaps manpage, section ABBREVIATIONS : strings as usual Defines the usual values of the strings (but not the keys they are bound to). In which file are these usual definitions ?
0
votes
1answer
28 views

Create a schortcut for Keyboard Key + Scroll

I want to map the action ctrl+shift+tab + scroll to volume up/down. How can I achieve this? I know that ctrl + scroll maps to zoom in/out by default. Surely, there must be a way to create such a ...
0
votes
0answers
38 views

Command to change the port of the audio output device

Here is my machine: ,g$$$$$$$$$$$$$$$P. OS: Debian 9.8 stretch ,g$$P"" """Y$$.". Kernel: x86_64 Linux 4.19.0-0.bpo.2-amd64 ,$$P' `$$$. Uptime: 49m ',...
0
votes
0answers
28 views

Grub2 disable right arrow booting

Sometimes when I turn on the computer I want to go to a different boot option than usual in grub, so I use the up or down arrow key to get to it. However since they are close to the right-arrow key, I ...
0
votes
2answers
164 views

How to change keyboard layout shortcut to ctrl+shift on Debian 9?

I am used to use ctrl+shift to change keyboard layout. I found how to do change keyboard layout : However, I can't set crtl+shift, for example, I can set only ctrl+tab or ctrl+c or ctrl+shift+w etc ...
0
votes
1answer
77 views

Re-mapping EOF (ctrl+D) in bash

If I'm in a bash shell, because of how stty is set up, typing Ctrl+D will send an EOF to bash, which will then do pretty much the same thing as the command exit does, and exits the shell. I'm ...
0
votes
0answers
16 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
66 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
35 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.
1
vote
0answers
118 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
31 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
42 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
41 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
1answer
32 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
120 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)?