Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
3 answers
3240 views
How do i bindkey the Right Control Key in zsh?
I searched the internet and could not find anybody asking this question. I was annoyed of moving right and the autocomplete `autosuggest-accept` being the same keybind. My closes guesses were ``` bindkey -v ' ' autosuggest-accept ``` and ``` bindkey '\xffe4' autosuggest-accept ``` but they did not w...
I searched the internet and could not find anybody asking this question. I was annoyed of moving right and the autocomplete autosuggest-accept being the same keybind. My closes guesses were
bindkey -v '' autosuggest-accept
and
bindkey '\xffe4' autosuggest-accept
but they did not work. How should I go at finding how to do this?
1ctinus (78 rep)
Apr 13, 2021, 11:25 PM • Last activity: Jul 31, 2025, 10:03 PM
1 votes
0 answers
60 views
mousepad with key combinations for bash, zsh, emacs, vi, or gnome on a German PC keyboard?
Recently, I noticed that it's possible to order cheap mousepads with customer-provided images on it. As I don't wish to reinvent the wheel: Has anyone of you folks, perhaps, already done the job of constructing an image with a list or lists of the most useful or frequent default key bindings of bash...
Recently, I noticed that it's possible to order cheap mousepads with customer-provided images on it. As I don't wish to reinvent the wheel: Has anyone of you folks, perhaps, already done the job of constructing an image with a list or lists of the most useful or frequent default key bindings of bash, zsh, emacs, vi, or Gnome for a rectangular mousepad of size between 22 cm × 18 cm and 25 cm × 20 cm? The key combinations should work on a German QWERTZ ISO 105-key keyboard on a PC running Debian, if that matters. In the positive case: could you share not only the image but, ideally, also the original document?
user743115 (1 rep)
Jul 25, 2025, 02:14 AM • Last activity: Jul 26, 2025, 03:29 PM
5 votes
1 answers
2741 views
Use Scroll Lock key for terminal flow control
So, my Scroll Lock key doesn't have much use, while I keep hitting Ctrl + S with no intention of stopping control flow. I know how to disable Ctrl + S from locking scroll (`stty -ixon`), but can I use Scroll Lock key instead for the same use? **- UPDATE -** In my terminal Scroll Lock does not stop c...
So, my Scroll Lock key doesn't have much use, while I keep hitting Ctrl+S with no intention of stopping control flow. I know how to disable Ctrl+S from locking scroll (stty -ixon), but can I use Scroll Lock key instead for the same use? **- UPDATE -** In my terminal Scroll Lock does not stop control flow. My question is how to assign that function to that key.
Fernando César (273 rep)
Dec 23, 2014, 10:00 AM • Last activity: Jul 26, 2025, 08:02 AM
2 votes
1 answers
2810 views
Tmux horizontal split isn't working, instead it brings up a weird menu
So I use ctrl + a (bound to a instead of b), and I try to ctrl + a and release then type in SHIFT + ' which is " so ctrl + a + " like the horizontal split should in theory work. When I do that I get a weird menu (I'm not sure what this menu is, why it pops up, I'm trying to figure out how to correct...
So I use ctrl + a (bound to a instead of b), and I try to ctrl + a and release then type in SHIFT + ' which is " so ctrl + a + " like the horizontal split should in theory work. When I do that I get a weird menu (I'm not sure what this menu is, why it pops up, I'm trying to figure out how to correctly get the horizontal split to work) TMux
ES-Legacy (21 rep)
Feb 18, 2022, 04:50 PM • Last activity: Jul 26, 2025, 06:07 AM
2 votes
2 answers
5500 views
How to configure Deepin Desktop Environment (DDE) to change keyboard layout with caps lock?
My system is Manjaro Linux. But I think this does not metter. In settings panel I cannot make `CapsLock` as keyboard layout changer. _Please help_.
My system is Manjaro Linux. But I think this does not metter. In settings panel I cannot make CapsLock as keyboard layout changer. _Please help_.
kyb (430 rep)
Apr 17, 2017, 06:49 PM • Last activity: Jul 25, 2025, 02:03 AM
1 votes
2 answers
1836 views
Switch audio output by keyboard in KDE Plasma
I would like to have a way of switching the audio output device (internal speakers/headphones to bluetooth speakers etc) by keyboard actions (which I usually can do without searching, finding and putting my glasses on my nose). Plasma tray elements can be activated with shortcuts, and thus I can con...
I would like to have a way of switching the audio output device (internal speakers/headphones to bluetooth speakers etc) by keyboard actions (which I usually can do without searching, finding and putting my glasses on my nose). Plasma tray elements can be activated with shortcuts, and thus I can connect, disconnect, switch between bluetooth devices by keyboard, because when the drop-down menu is visible, selection with arrow-keys and Enter to activate does the trick. enter image description here enter image description here But that doesn't work when trying to switch between audio devices themselves. I can bring forth the audio volume tray element with a shortcut: enter image description here but further interaction by keyboard is limited to volume level. There is a widget called [audio device switcher](https://store.kde.org/p/1195707/) which brings the options more to the front, but its shortcut does nothing. Overall, it lacks keyboard interaction. The closest thing to what I want is to simply disable bluetooth by the first method *IF* that device is the one that is currently playing...
cipricus (1779 rep)
Nov 21, 2023, 12:41 PM • Last activity: Jul 16, 2025, 01:36 PM
2 votes
3 answers
1222 views
How can I navigate and copy some text from the past terminal output?
### Problem Very often when I work with `git` I need to copy some content from the output of the last command. And I hate switching from keyboard to trackpad/mouse. **Case #1** ``` ... ➜ extract_ttc git:(feature/simplify-gha-workflows) git push fatal: The current branch feature/simplify-gha-workflow...
### Problem Very often when I work with git I need to copy some content from the output of the last command. And I hate switching from keyboard to trackpad/mouse. **Case #1**
...
➜  extract_ttc git:(feature/simplify-gha-workflows) git push
fatal: The current branch feature/simplify-gha-workflows has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin feature/simplify-gha-workflows
I need to copy git push --set-upstream origin feature/simplify-gha-workflows manually to execute, so I switching to mouse/trackpad from keyboard **Case #2**
...
➜  extract_ttc git:(feature/simplify-gha-workflows) git push --set-upstream origin feature/simplify-gha-workflows
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 16 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 1.16 KiB | 1.16 MiB/s, done.
Total 6 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
remote:
remote: Create a pull request for 'feature/simplify-gha-workflows' on GitHub by visiting:
remote:      https://github.com/fontist/extract_ttc/pull/new/feature/simplify-gha-workflows 
remote:
To github.com:fontist/extract_ttc.git
 * [new branch]      feature/simplify-gha-workflows -> feature/simplify-gha-workflows
Branch 'feature/simplify-gha-workflows' set up to track remote branch 'feature/simplify-gha-workflows' from 'origin'.
I need to copy https://github.com/fontist/extract_ttc/pull/new/feature/simplify-gha-workflows again to execute open ### Questions - Is there a way to navigate the terminal output of the past commands (without mouse/trackpad)? - Is there some approach that doesn't depend on the terminal app (for example I use iTerm on OSX)? - If there is no solution in the way how I imagined it: what are possible approaches to achieve the same with keyboard only?
CAMOBAP (270 rep)
Dec 21, 2020, 02:42 PM • Last activity: Jul 16, 2025, 12:11 PM
16 votes
3 answers
7141 views
Super+1, Super+2, Super+3, etc. keys can not be remapped in Gnome
I have been using the [gTile](https://github.com/gTile/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 fine until a recent update of Gnome. After the update, some of...
I have been using the [gTile](https://github.com/gTile/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 fine until a recent update of Gnome. After the update, some of my shortcuts now seem to do other random things, while other shortcuts don't seem to do anything at all. I looked in *Settings → Devices → Keyboard → Keyboard Shortcuts*, but the Super+1, Super+2 shortcuts didn't even seem to be defined. I also uninstalled all other Gnome shell extensions (thinking that other extensions might be setting their own shortcuts) but that didn't help. **Why are these shortcuts un-remappable and how can I make them remappable again?**
Trevor (1739 rep)
Apr 3, 2019, 09:50 PM • Last activity: Jul 14, 2025, 11:24 PM
20 votes
9 answers
30198 views
Map Caps Lock to Control in Linux Mint
I am running the latest version of Linux Mint with Cinnamon. I'm trying to map Caps Lock to Ctrl , but I cannot figure out how to do it. All web searches I've done have led me to older versions of Linux Mint (there is no keyboard layout option in my settings). How can I do this?
I am running the latest version of Linux Mint with Cinnamon. I'm trying to map Caps Lock to Ctrl, but I cannot figure out how to do it. All web searches I've done have led me to older versions of Linux Mint (there is no keyboard layout option in my settings). How can I do this?
Zach Russell (1127 rep)
Feb 7, 2014, 11:59 AM • Last activity: Jul 11, 2025, 07:02 PM
1 votes
1 answers
2508 views
How can I bind "modifier + arrow" keys to home/end/pageup/pagedown under X?
I have a new 60% keyboard (NuPhy Air60), but it does not have any way to trigger pageup/pagedown or home/end keys. My goal is to recover these commands with a custom keybinding, using a modifier key like `hyper` or `alt`, in combination with the arrow keys. For my preference, something like: - alt +...
I have a new 60% keyboard (NuPhy Air60), but it does not have any way to trigger pageup/pagedown or home/end keys. My goal is to recover these commands with a custom keybinding, using a modifier key like hyper or alt, in combination with the arrow keys. For my preference, something like: - alt + arrowup = pageup - alt + arrowdown = pagedown - alt + arrowleft = home - alt + arrowright = end I tried to use xmodmap to make the bindings -- but unfortunately due to a years-old known chromium bug, my bindings there did not work in Chrome or VSCode. What else can be done?
ChaseMoskal (111 rep)
Mar 13, 2023, 12:08 AM • Last activity: Jul 6, 2025, 07:08 AM
2 votes
2 answers
2241 views
How can I change CMD to CTRL in Linux Mint only in Terminal?
I installed Linux Mint on my MacBook Air, and I prefer to use Cmd for copying/pasting, opening and closing windows, and general things like that. However, I would like to use Ctrl to input to the Terminal. So, pressing Ctrl + C would terminate whatever command I'm running, and Cmd + C would copy any...
I installed Linux Mint on my MacBook Air, and I prefer to use Cmd for copying/pasting, opening and closing windows, and general things like that. However, I would like to use Ctrl to input to the Terminal. So, pressing Ctrl+C would terminate whatever command I'm running, and Cmd+C would copy any text that's highlighted.  How can I do that?
LostXOR (235 rep)
Dec 18, 2019, 02:00 AM • Last activity: Jun 30, 2025, 08:02 PM
1 votes
0 answers
70 views
How to make "Ctrl-Shift" and "Ctrl-Shift-Arrows" shortcuts work together?
I am running KDE on Kubuntu 24, with default settings for almost everything. I am trying set up shortcuts to be Windows-like, as I am used to but I have gotten stuck on a weird bug. When I set Ctrl + Shift as the shortcut to change keyboard layouts, the Ctrl + Shift Left or Right combination (for se...
I am running KDE on Kubuntu 24, with default settings for almost everything. I am trying set up shortcuts to be Windows-like, as I am used to but I have gotten stuck on a weird bug. When I set Ctrl+Shift as the shortcut to change keyboard layouts, the Ctrl+ShiftLeft or Right combination (for selecting the whole word) stops working. If I set Alt+Shift as the keyboard layout change shortcut, the Alt+Shift+Tab combination (switch back to previous task) breaks. I have now set the shortcut to switch layouts to something weird and inconvenient so make the others work, but it feels like bug that must've been fixed by someone years ago. So the question is - is it really fixed? Or, at least, is there a workaround?
AlexandrX (111 rep)
Dec 5, 2024, 04:24 PM • Last activity: Jun 25, 2025, 06:28 AM
1 votes
2 answers
4310 views
Shortcuts to enable/disable a touchpad in GNOME3 on Wayland
I'm trying to add custom shortcuts to enable/disable a touchpad on my laptop. I have GNOME 3 on Wayland. Using a suggestion from https://unix.stackexchange.com/a/571537/138312, I managed to do it using a terminal. **However**, if I put exactly the same commands into shortcuts (using a GUI, the only...
I'm trying to add custom shortcuts to enable/disable a touchpad on my laptop. I have GNOME 3 on Wayland. Using a suggestion from https://unix.stackexchange.com/a/571537/138312 , I managed to do it using a terminal. **However**, if I put exactly the same commands into shortcuts (using a GUI, the only way I know), they don't work. Does anyone know the solution for this, or any other way around to have shortcuts for a touchpad? Some details, if needed: Lenovo Thinkpad T450s, Debian 9, Gnome 3.22.2
Karen Fidanyan (11 rep)
Jun 15, 2020, 03:08 PM • Last activity: Jun 21, 2025, 11:49 PM
2 votes
2 answers
347 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 connection is done through openssh. I'm using a belgian keyboard (azerty, similar to french kb). The p...
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 connection is done through openssh. I'm using a belgian keyboard (azerty, similar to french kb). The problem is the same whether I use seamless or desktop modes. However I don't have the problem when testing xpra locally on my laptop. Dead keys (circumflex accent or tilde that should appear if I press it and then another key (space for example)) don't work in any applications. Using xev, I can see the event though :
KeyPress event, serial 48, synthetic NO, window 0x3000001,
    root 0x50e, subw 0x0, time 1899047455, (114,40), root:(122,456),
    state 0x10, keycode 34 (keysym 0xfe52, dead_circumflex), same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: True

KeyRelease event, serial 48, synthetic NO, window 0x3000001,
    root 0x50e, subw 0x0, time 1899047456, (114,40), root:(122,456),
    state 0x10, keycode 34 (keysym 0xfe52, dead_circumflex), same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XFilterEvent returns: False

KeyPress event, serial 48, synthetic NO, window 0x3000001,
    root 0x50e, subw 0x0, time 1899048177, (114,40), root:(122,456),
    state 0x10, keycode 34 (keysym 0xfe52, dead_circumflex), same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: True

KeyPress event, serial 48, synthetic NO, window 0x3000001,
    root 0x50e, subw 0x0, time 1899048177, (114,40), root:(122,456),
    state 0x10, keycode 0 (keysym 0x5e, asciicircum), same_screen YES,
    XKeysymToKeycode returns keycode: 15
    XLookupString gives 0 bytes: 
    XmbLookupString gives 1 bytes: (5e) "^"
    XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x3000001,
    root 0x50e, subw 0x0, time 1899048177, (114,40), root:(122,456),
    state 0x10, keycode 34 (keysym 0xfe52, dead_circumflex), same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XFilterEvent returns: False
I tried different input methods and different keyboard configurations in xpra but I can't get this working. Is there something I'm missing?
Olivier (676 rep)
Aug 24, 2022, 09:19 AM • Last activity: Jun 20, 2025, 02:43 PM
1 votes
1 answers
69 views
How to unset keyboard layout shortcuts in fedora
Yesterday I installed fedora. The set up allowed me to pick from a limited amount of shortcuts to switch the layout. Now, in KDE, I found that I can set the shortcut to switch layouts from the system settings, under keyboard layout, so I set my preferred shortcut there. Problem is, I can't figure ou...
Yesterday I installed fedora. The set up allowed me to pick from a limited amount of shortcuts to switch the layout. Now, in KDE, I found that I can set the shortcut to switch layouts from the system settings, under keyboard layout, so I set my preferred shortcut there. Problem is, I can't figure out how to clear the shortcut I set during set-up. It's nowhere to be found. How do I unset the shortcut I specified during set-up?
Nicolas Straub (115 rep)
Jun 3, 2025, 06:37 PM • Last activity: Jun 9, 2025, 12:12 AM
4 votes
2 answers
2017 views
How to use Ctrl+mouse click in tmux?
Due to the change in Tmux2.1, I need to remap my mouse's middle click to tmux's paste: bind -T root MouseDown2Pane run -b "tmux paste-buffer" However, I also would like to enable using Ctrl (or Alt , Cmd ) + middle click to paste the system's clipboard. This is what I have tried (failed) so far: bin...
Due to the change in Tmux2.1, I need to remap my mouse's middle click to tmux's paste: bind -T root MouseDown2Pane run -b "tmux paste-buffer" However, I also would like to enable using Ctrl (or Alt, Cmd) + middle click to paste the system's clipboard. This is what I have tried (failed) so far: bind -T root M+MouseDown2Pane run -b "pbpaste | tmux load-buffer -; tmux paste-buffer"
dragonxlwang (783 rep)
Nov 15, 2015, 07:46 PM • Last activity: Jun 3, 2025, 03:03 AM
3 votes
1 answers
2922 views
How do you make a toggle key using Autokey?
I want to use Autokey to toggle the e key on and off in a program called "xyz". So if I press e , the program thinks I'm holding down e . I press e again, it thinks I released it. How do you do this please? Or is there some other program that can do this? bonus question: how do you do this with any...
I want to use Autokey to toggle the e key on and off in a program called "xyz". So if I press e, the program thinks I'm holding down e. I press e again, it thinks I released it. How do you do this please? Or is there some other program that can do this? bonus question: how do you do this with any Ubuntu program, such as fvwm2, xorg, xmodmap, xkb, xrdb, any way at all?
user111973 (31 rep)
Apr 26, 2015, 01:27 AM • Last activity: Jun 1, 2025, 05:04 PM
5 votes
1 answers
2750 views
Xfce Keyboard Layout change Ctrl+Space
I've been googling this for almost a week to no avail.  When I open the Keyboard settings pane, the options (ones that have "Space" in them) are limited to only Alt + Space and Super + Space – there is no Ctrl + Space . I've found a couple of answers, none of which seem to work. The first one i...
I've been googling this for almost a week to no avail.  When I open the Keyboard settings pane, the options (ones that have "Space" in them) are limited to only Alt+Space and Super+Space – there is no Ctrl+Space. I've found a couple of answers, none of which seem to work. The first one is to install the xfce4-xkb-plugin (which I already had installed), then set "use system default" flag in the Keyboard settings pane, after which use plugin Properties to set the languages and shortcuts.  It doesn't work – the Properties pane has only options on how the pane item looks...that's it. Number two is this line: -option grp:ctrl_space_toggle,grp_led:scroll en,ru It doesn't work either.  If I put this in my .Xmodmap file, there is an error and the file isn't parsed anymore. I gave up on searching, but I really need this, as it's a long time reflex.  Please help me set Ctrl+Space as a shortcut to change layout.  (I use Arch Linux.)
simon (171 rep)
Jun 22, 2016, 11:40 AM • Last activity: May 29, 2025, 04:05 AM
70 votes
5 answers
47779 views
Where do I find a list of terminal key codes to remap shortcuts in bash?
For example: "\e[1;5C" "\e[Z" "\e-1\C-i" I only know bits and pieces, like `\e` stands for escape and `C-` for Ctrl , but what are these numbers (`1`) and letters (`Z`)? What are the `;`, `[` and `-` signs for? Is there only trial and error, or is there a complete list of bash key codes and an expla...
For example:
"\e[1;5C"
"\e[Z"
"\e-1\C-i"
I only know bits and pieces, like \e stands for escape and C- for Ctrl, but what are these numbers (1) and letters (Z)? What are the ;, [ and - signs for? Is there only trial and error, or is there a complete list of bash key codes and an explanation of their syntax?
bug (2698 rep)
May 21, 2013, 10:25 AM • Last activity: May 14, 2025, 06:58 PM
5 votes
3 answers
1647 views
Increasing volume causes left/right channels to be unbalanced
In Gnome 3, I mapped my volume up to `amixer set Master 1000+`, and down to `amixer set Master 1000-`. This works just fine, as long as I spin the volume roller slowly. [![enter image description here][1]][2] If I am to spin it really quickly, the left and right channel become unbalanced. [![enter i...
In Gnome 3, I mapped my volume up to amixer set Master 1000+, and down to amixer set Master 1000-. This works just fine, as long as I spin the volume roller slowly. enter image description here If I am to spin it really quickly, the left and right channel become unbalanced. enter image description here
Henry (353 rep)
Jul 22, 2015, 03:16 PM • Last activity: May 11, 2025, 10:43 PM
Showing page 1 of 20 total questions