Questions tagged [keyboard-shortcuts]

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

Filter by
Sorted by
Tagged with
2 votes
2 answers
15 views

KDE keyboard shortcut to maximize a window

According to KDE Documentation → Common Keyboard Shortcuts → Panning and Zooming there are 4 keyboard shortcuts for resizing/panning a window, where Meta+◀─ and Meta+─▶ also move the window to another ...
1 vote
0 answers
17 views

How to keep keyboard mapping after reboot?

In order to remap my keyboard I use the following commands: $ setxkbmap -layout fr -variant latin9 -option '' $ setxkbmap -option ctrl:nocaps $ printf "keycode 127 = Caps_Lock NoSymbol Caps_Lock&...
0 votes
0 answers
25 views

Linux Mint 21 - ctrl + 5 not sending any input and discarding xmodmap changes

Yesterday, I updated Linux Mint to version 21. With that update, one small but for me huge issue creeped into the install. I often play FFXIV on this computer, and I have keybinds with a MMO mouse, ...
  • 1
1 vote
0 answers
6 views

How to combine two actions to a single shortcut with dconf

I currently store all my windows management shortcuts in a github repo and then any time I'm on a new machine, instance, VM, etc then I can clone the repo and use dconf load /org/gnome/desktop/wm/...
  • 113
1 vote
0 answers
28 views

How to set a keyname (or keycode) as a hotkey for vlc?

I want to map keycode 168 (KEY_REWIND according to virkeycode on ubuntu) to Shift+Left (as it's the default hotkey in vlc for "very short backward jumps") and keycode 208 to Shift+Right. ...
1 vote
1 answer
17 views

How to remap Caps Lock to a specific key?

By default I have the following key mapping: $ xmodmap -pke ... keycode 49 = oe OE oe OE leftdoublequotemark rightdoublequotemark leftdoublequotemark ... keycode 66 = Caps_Lock NoSymbol Caps_Lock ......
1 vote
0 answers
21 views

custom keybindings for less (lesskey)

the manpage says I can use $HOME/.lesskey file to define my own custom keybindings for less. It even shows some examples, such as ... n repeat-search \en repeat-search-all ... q ...
0 votes
0 answers
8 views

How to map mouse button to keyboard keys using xmodmap and xev

I use xmodmap and xev to bind my keyboard key to mouse button but when i try to map my mouse button to keyboard key it doesn't work, I can't get the mouse "code" using xev. Does xmodmap only ...
0 votes
1 answer
22 views

How to separate Ctrl-i from TAB in WSL?

I am using bash on WSL2 with Ubuntu, and I want Crtl-i and TAB to send different keycodes so I can remap Ctrl-i on emacs while still using TAB for indentation. I tried following the answer in this ...
1 vote
1 answer
19 views

KDE meta key not working

The issue There are several questions that I can't find an answer for about the Meta key on KDE. What is the Meta key mapped to by default? How to know to which key the Meta key is bound to? So I ...
  • 213
1 vote
0 answers
21 views

Remap LeftAlt + hjkl to arrow keys

I'm trying to remap LeftAlt + hjkl to my arrow keys using an XKB layout. Here's my current config (non-functional): key <AC06> { [ h, H, Left ] }; key <...
0 votes
0 answers
10 views

Capture Showkey Output

I want to display the output of the "showkey" command and redirect it to another program. The goal would be so I can show when keys "Shift, Fn, ctrl, Caps Lock, etc..." are pressed ...
0 votes
0 answers
43 views

To execute key press from within bash

How do we execute/simulate key press from within bash line code script? e.g. alt-L a shortcut preset with a readline code is needed to be triggered in such bash line code How to achieve it?
0 votes
3 answers
55 views

How to delete in terminal from "/" to "/"?

Im using Kitty emulator and bash shell. I know that Ctrl+w I can delete a word in terminal (like Ctrl+Backspace). But what if I have something like this: sh /home/user/dir1/dir2/file.sh I just want ...
-7 votes
0 answers
48 views

I cant use shortcuts on my vm Xubuntu

I noticed that ı can't use any shourcuts (or "left ctrl") on my vm. for example ı can't write "@" sign or paste anything. but also I realized some of the shortcuts just work if I ...
0 votes
1 answer
25 views

"/usr/bin/flameshot gui" throws error: "bash: /usr/bin/flameshot: No such file or directory"

To bind the "Print" key (on my keyboard, it is called "prt sc") as a shortcut to my Flameshot app on Linux Mint, I used the guide of the Linux Mint Forum [SOLVED] How to bind ...
0 votes
1 answer
14 views

How to distable Ctrl+Alt+B (for bring up the browser)?

I'd like to use the keybinding Ctrl+Alt+b in Emacs, but it's captured by the OS (Lubuntu 22.04 LTS). I know that Ctrl+Alt+<left> can be disabled with: gsettings set org.gnome.desktop.wm....
  • 398
0 votes
1 answer
15 views

Can't use dead keys through xpra x11 on ubuntu linux

I'm using xpra to work on a remote ubuntu linux server from my ubuntu linux laptop, using the latest xpra x11 client and the latest xpra x11 server (installed from the xpra.org apt repository). The ...
  • 566
0 votes
0 answers
29 views

i3 config - user scripts not running

I found this thread and have basically the same problems. I have triple checked that I don't have additional config files and have a /tmp/set.out but don't really know what to look for in there. I ...
  • 1
0 votes
0 answers
14 views

Key combination don't work with xmodmap?

The tab key on my laptop is broken, and keyboard replacement will arrive in 1 month, life is a lot harder without tab key. I've replaced my fn key to emulate tab key and it work well. xmodmap -e '...
  • 1
0 votes
0 answers
17 views

How to programmaticaly add a keyboard shortcut?

I am using Linux Mint 21 Cinnamon. I am aware of the GUI way of adding a keyboard shortcut. Just open the "Keyboard" application and click the "Shortcuts" tab etc. Easy peasy. But ...
  • 231
1 vote
2 answers
29 views

tmux binding a key to bash command refuses to work

I want to be able to respawn all panes in my current window that are NOT in tree-mode. I made this script and it works: for i in $(tmux list-panes -F "#{line} #{pane_id} #{pane_mode} #{...
  • 428
0 votes
0 answers
24 views

How to trigger Magic SysRq on a TKL keyboard

On a Logitech G413 TKL SE keyboard, I can print screen (and all GNOME options with Ctrl/Alt/Shift) easily by pressing FN + INS, which is the equivalent to Print Screen (PrtSc) on this keyboard: But ...
  • 2,000
0 votes
0 answers
7 views

LXQt hotkeys use incorrect versions of commands (seem to run in different environment)

What Happened I'm using Lubuntu with LXQt version 0.17.0, Qt 5.15.3. I'm trying to run node path/to/script.js via shortcut key (defined in "Global Actions Manager"). When executed via ...
  • 1
0 votes
0 answers
17 views

Set app-specific, custom shortcut in GNOME

In GNOME, the keyboard shortcut Alt+F4 closes a window. I'd like to remap this shortcut to some other combination (or rather, add an additional combination), but only for one single application (in my ...
0 votes
0 answers
12 views

Changing an application's menu shortcuts in Ubuntu?

On MacOS it is possible to change shortcuts for any application (at least which I guess conform to some specification), see here. I was discussing with a colleague that in all likelihood, something ...
  • 445
0 votes
1 answer
16 views

Nano: can the escape key be mapped?

I've been playing with the keyboard mapping in the .nanorc file some today, and you can map the F keys like...bind F3 cancel all, however, i haven't had any luck with trying find how nano recognizes ...
0 votes
2 answers
94 views

How to remap Ctrl to Caps Lock in a TTY?

I already understand how to remap keys in an X graphical server. However, I sometimes like to do work from a TTY and cannot seem to figure out a way to functionally remap Ctrl to Caps Lock. I have ...
0 votes
0 answers
18 views

digiKam: How do I assign a keyboard shortcut to open a picture with the Gimp?

I'm using digiKam 7.1.0 on OpenSuSE Leap 15.3 and would like to define a keyboard shortcut to open a picture marked in the preview with the Gimp (or another software). Now there is the possibility to ...
  • 317
0 votes
0 answers
13 views

Keybindings out of nowhere?

I'm having a problem with my keybindings to change workspaces. I'm using Debian 11 stable. GNome 3.38.5 and wayland. This are my dconf settings: This are my keyboard shortcuts on the regular gnome ...
  • 43
0 votes
1 answer
63 views

How to toggle between ibus and xkb?

I am using MX GNU/Linux v19 (Patito feo). I have installed these three packages with apt. ibus ibus-mozc ibus-anthy I can confidently say that they got installed correctly as I can see this in the ...
  • 143
0 votes
1 answer
82 views

Create keyboard shortcut in Arch [gnome]

Im new to Arch and just installed it with gnome as a DE. I can run the gnome shell by clicking the icon but would like to setup a shortcut for it. I'd like to setup the shortcut like in Ubuntu, Ctrl + ...
1 vote
2 answers
96 views

Permanently remap caps lock to escape

I am trying to remap caps lock to escape on the keyboard. I tried the following solution found on AskUbuntu without success: $ xmodmap -e "keycode 9 = Caps_Lock NoSymbol Caps_Lock" $ xmodmap ...
  • 349
0 votes
1 answer
64 views

Can I merge keyboard and mouse to a single virtual input device?

There are some applications that use strange/inconvenient user interaction and that is impossible to edit. I want to remap a combination of a keyboard and mouse event to another combination of ...
  • 482
0 votes
1 answer
20 views

Why menu options/items for editors/commands are declared with uppercase characters?

When nano is running, in the bottom appears the menu options based on ^#, for example ^O ^X etc .. Each one represents ctrl + o ctrl + x respectively Reason of this post: when a new linux user - ...
0 votes
0 answers
103 views

Key presses (multiple keys pressed) do not propagate to Userspace

Background I am using kbct to remap keys. Concretely, I am remapping the arrow keys to hjkl, respectively. kbct remaps keys at the lowest possible userspace level by grabbing input devices and ...
  • 213
1 vote
0 answers
42 views

How to send Alt+1 to CLI when multiple tabs are open in gnome-terminal?

Both ranger and the gnome-terminal use Alt + 1, Alt + 2 etc to switch to the corresponding tab. So if a gnome-terminal window only has one tab and ranger is open, then pressing Alt + 2 will go the ...
  • 113
0 votes
1 answer
411 views

How to restore the default keyboard shortcuts in KDE plasma 5.24.5?

I deleted the panel and then added a default panel on KDE plasma's desktop. Now the Windows/meta key does not open the application launcher/ start menu. I restored the default keyboard shortcuts as ...
0 votes
1 answer
161 views

Binding a .sh file (shell script) to a set of keys

I have wrote some commands in a shell script to run some ROS commands to launch my robot. I recently got a control pad where I can bind certain buttons to some keybinds like Ctrl + 1 etc... I want to ...
-1 votes
1 answer
51 views

zsh: tab rotates between directories, what key to select and enter one?

I am trying to complete path within a directory tree. When I press tab at any directory level, completion rotates among all possible directory completions. Is there a way to bind a key to "select&...
1 vote
0 answers
73 views

How to get my brightness/volume and other special keys to work in a tty

I am running Debian stretch on a Lenovo laptop with only a window manager (i.e. no desktop). Out of the box, this configuration of Debian ignores the keys with special functions, such as volume up, ...
0 votes
1 answer
241 views

putty - ctrl + d doesn't work (ctrl + shift + d does) [closed]

I'm connected to a Linux server over ssh using putty. Usually in Linux you can delete characters you typed in the command prompt with Ctrl + d. But on Windows with putty this does not work. The ...
0 votes
0 answers
26 views

Find key identification from `showkey`

I have a Samsung Expert x40 and it has a [fn] option at F1 and originally it opens Samsung Settings. I want to bind this key to run a script with sxhkd but xev doesn't recognize anything from it so I ...
2 votes
1 answer
50 views

Two Enter Keys are behaving Differently

I am using the alacritty terminal emulator under Zorin 16. My two enter keys are giving different output. % showkey -a Press any keys - Ctrl-D will terminate this program ^M 13 0015 0x0d ^J 10 ...
  • 1,642
1 vote
1 answer
101 views

I3 WM bindsym giving error but in terminal, works fine

I have this in my i3 config to restart picom: bindsym $mod+Shift+P exec killall picom; sleep 0.2; picom It works fine in terminal but when I press the keybinding, it shows error, and it just says you ...
0 votes
0 answers
18 views

Using Ctrl+Meta+n to switch to the next virtual terminal?

I am using KDE and there are virtual desktops and activities, but I want to use multiple users instead, that is why I need to switch to the next virtual terminal, I assume that I should use loadkeys ...
0 votes
1 answer
285 views

How do I run a sudo command from kde shortcuts command?

In KDE setting you can assign a shortcut to execute your arbitrary command. To assign a command to shortcut in KDE, you can do the following. In System Settings -> Shortcuts -> Custom Shortcuts, ...
  • 482
0 votes
1 answer
28 views

Help with xmodmap example from archwiki

This article: https://wiki.archlinux.org/title/xmodmap#Reassigning_modifiers_to_keys_on_your_keyboard Has an example: clear lock clear control add control = Caps_Lock Control_L Control_R keycode 66 = ...
0 votes
1 answer
61 views

Switch between Dosbox and Linux

When playing old dos games on DosBox in Linux (Mint 20), I get locked in and cannot find any shortcuts to switch over to Xfce desktop or running applications in Linux. In Windows you can easily do ...
1 vote
1 answer
515 views

Exit browser in full screen

I'm trying to find a way to exit kiosk mode or to exit a full screen chromium. So I'm running a Raspberry Pi 4 with raspbian and have Netflix, Disney+ etc. working as a link on my desktop. I add the ...

1
2 3 4 5
32