214

You can set such keyboard shortcut as follows: On Ubuntu 18.04 LTS, 19.10 and 20.04 LTS with GNOME desktop from GNOME Tweaks. Install it sudo apt-get install gnome-tweaks Then open GNOME Tweaks (gnome-tweaks). Select Keyboard & Mouse tab Click Additional Layout Options button Expand Switching to another layout Select Ctrl + Shift here See screenshot ...


74

The new keybinding you define in 'Settings-->Keyboard-->Shortcuts-->Navigation' will get appended to the previous/default one. It will become, for example. gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-down ['<Primary><Shift>Down', '<Control><Alt>Down'] I managed to remove the default keybinding using the ...


41

Here is another link i have found that help me and its the same solutions as k2shah mention it, but with more details. Instead of downloading the spotify_control, you use the D-Bus commands. Before you add it as a new keyboard command, feel free to execute those commands. Play/Stop dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/...


40

If you're using gtk3 the settings are in the libgtk-3-common package in /usr/share/themes/Emacs/gtk-3.0/gtk-keys.css and you can enable them with: gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs" And to switch back: gsettings set org.gnome.desktop.interface gtk-key-theme "Default" If you're using gtk2 the settings are in the libgtk2.0-...


40

To cut, press ctrl+u. To paste, use ctrl+y. This copies whole line to bash clipboard. If you're using X and default Ubuntu terminal, you can use your mouse to mark contents and press ctrl+shift+c to copy, and ctrl+shift+v to paste.


33

1 - In ~/.zshrc bindkey '^[[1;5D' backward-word bindkey '^[[1;5C' forward-word 2 - Or in ~/.bashrc bind '"\e[1;5D" backward-word' bind '"\e[1;5C" forward-word' ... And now ctrl + left / right jump words in byobu / tmux. 3 - Don't mess with inputrc.


31

There is a simple solution credit goes to this thread on Spotify forum, Thanks to schuellerf and rszabla. The solution is pretty simple and works on any Linux distribution. Download this file, extract it and make it executable chmod a+x spotify_control Place it anywhere you want, I'll assume that it is placed in Downloads folder Go to settings -> keyboard ...


17

Since Autokey is defunct, here is how I accomplished this. First install xclip and xdotool: sudo apt-get install xclip xdotool Now write the text you want to paste and save it in a text file. In this example I wrote my address in a file I called address. Now write the bash script: #!/bin/bash xclip -in -selection c ~/scripts/xclip-scripts/address sleep 0....


16

You can use autokey. Follow the instructions below: Installation Open a terminal (Ctrl+Alt+T) and run the following command: sudo apt-get install autokey-gtk Adding Phrases Open autokey using the dash. In the window, expand My Phrases. autokey already comes with four phrases as you can see in the screenshot below. You can either modify the existing ...


16

I found a partial workaround based on other answers for using Ctrl+Shift and shortcuts for GNOME in Ubuntu 18.04: Install GNOME Tweaks as proposed in N0rbert's anwser: sudo apt install gnome-tweaks then: run it; open "Keyboard & Mouse" tab; click "Additional Layout Options" button; instead of selecting Ctrl+Shift key combination in "Switching to ...


15

It is known bug 1245473. Nobody cares about it even on modern Ubuntu Community. I'm citing my other answer here: Myself I found only one resolution - I'll stay on Ubuntu 16.04 LTS MATE until 2021 year (really 2019 because it's Ubuntu flavor). In Ubuntu 16.04 LTS MATE I use Ctrl+Shift without issues. I have created PPA with patched packages for: ...


13

AutoKey can do bindings like this, but it requires running a service in the background (like ahk, but unlike xmodmap). Configure a "phrase" where the text is <home>, the paste method is Keyboard, and the hotkey is <ctrl>-<left>:


13

I found the solution myself. It seems that I needed to enable Desktop Wall plugin in Compiz; just apt-get install compizconfig-settings-manager, run ccsm and search for "wall" to find the option.


12

I'm using ElementaryOS (with its GNOME based window manager) and found a solution through using xdg autostart scripts. Many window managers are using xdg so I assume this approach also will work in other environments. At least it should work with GNOME. xdg run scripts in ~/.config/autostart upon login in a X session. To load xmodmap config upon login, add ...


12

Just do this to create it with the same access rights as .bashrc: touch ~/.inputrc chmod --reference=~/.bashrc ~/.inputrc NOTE : --reference : it inherits permissions of specified file .


11

As of Chrome 59, which switched to gtk3, set gtk-key-theme-name to Emacs in ~/.config/gtk-3.0/settings.ini: [Settings] gtk-key-theme-name = Emacs


10

You can use bind to bind a key to some function. Here is what I did: bind '"\ea": ". ~/newScript.sh\n" ' Here newScript.sh is the file which changes the tty and \ea means that whenever Alt+A is pressed, the script executes. The contents of newScript.sh are: #! /bin/bash ttyNum="$(tty)" ttyNum=$(echo ${ttyNum##*y}) ttyNum=$(( (ttyNum +1) % 7)) chvt $...


10

On Ubuntu Ctrl + Number doesn't work. Instead you have to use Alt + Number Both Alt keys work. This works on Chrome and Firefox and File Manager... essentially anything with tabs open. It works in Unity, GNOME and Cinnamon (as you wanted). How am I supposed to close tabs -– HackToHell You can close tabs with Ctrl+W. This also works on windows and ...


9

I am afraid this is not possible, as no PgUp/PgDown will be sent to command-line applications, which will render some of them unusable. This is good ol' days Unix feature. If you want more user-friendly scrolling, I suggest using the less command. It's used this way: command-with-lot-of-output | less This will start the less command with output of your ...


9

The answer to show all key bindings in Ubuntu / Unity is: gsettings list-recursively org.gnome.desktop.wm.keybindings | sort | more However Alt+F1 is not in there, meaning it's hard-coded in Unity and cannot be changed. Sorry to be the harbinger of bad news


9

Try @N0rbert's answer first. It's actually a bug (see this and this). Unfortunately it seems it's not going to be fixed (first one marked as "RESOLVED WONTFIX"). As a workaround you may have to remove those shortcuts and get used to the default ones to switch layouts (super+space & shift+super+space).


8

Install xbindkeys and xte: sudo apt-get install xbindkeys xautomation Next we need to find the key mappings for Alt+Arrow. Run xbindkeys -k and press Alt plus whatever arrow key you want. For Alt+Up Arrow I get: "NoCommand" m:0x18 + c:111 Alt+Mod2 + Up Now that we know what the bindings for our keys are we need to create the .xbindkeys ...


8

There is en extension to do that. his name is Dash Hotkeys. https://extensions.gnome.org/extension/413/dash-hotkeys/


8

Alt+d will remove the remaining part of a word. But as a . ends the word you'll need to press it two times to remove john.csv.


8

bash uses readline(3) for line editing that defines only alphanumerics as word constituent characters. Now, the key-binding for kill-ing the next word is M-d if you are from the emacs world i.e. use Esc+d or Alt+d. Now, as john.csv is composed of two words by definition, so you need to press the keys twice.


7

There is a command for that chvt. chvt command stands for CHange Virtual Terminal. It takes one option which is a number which tells it the virtual terminal to switch to. For example, if you are logged in at the first virtual terminal and you want to switch to the 7th where the xserver usually displays the GUI, then run chvt as follows : chvt 7 And to ...


6

I had this same problem. I fixed it by copying these lines to my ~/.inputrc file: "\e[1;5C": forward-word "\e[1;5D": backward-word "\e[5C": forward-word "\e[5D": backward-word "\e\e[C": forward-word "\e\e[D": backward-word


6

No need to modify the source. Just customize "evil-toggle-key". M-x customize-variable evil-toggle-key You can also just set the variable using setq. Make sure you set that variable before emacs loads evil, since evil uses the variable's value when setting the keymaps up. For example, this is how it goes in my .emacs: (setq evil-toggle-key "C-`") (require ...


6

I just bought one myself and found that the following workes perfectly for me. Open dconf-editor (sudo apt-get install dconf-editor if it isn't already installed). Navigate to org -> gnome -> desktop -> wm -> keybindings. Change the value of switch-to-workspace-down to ['<Control><Alt>Down', '<Primary><Super>Tab', '<Control>&...


Only top voted, non community-wiki answers of a minimum length are eligible