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.
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 ...
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
I managed to remove the default keybinding using the ...
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.
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/...
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-...
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.
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.
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 ...
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:
xclip -in -selection c ~/scripts/xclip-scripts/address
You can use autokey.
Follow the instructions below:
Open a terminal (Ctrl+Alt+T) and run the following command:
sudo apt-get install autokey-gtk
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 ...
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
open "Keyboard & Mouse" tab;
click "Additional Layout Options" button;
instead of selecting Ctrl+Shift key combination in "Switching to ...
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:
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>:
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 ...
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:
ttyNum=$(( (ttyNum +1) % 7))
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
You can close tabs with Ctrl+W. This also works on windows and ...
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 ...
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
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).
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:
m:0x18 + c:111
Alt+Mod2 + Up
Now that we know what the bindings for our keys are we need to create the .xbindkeys ...
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.
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 :
And to ...
I had this same problem. I fixed it by copying these lines to my ~/.inputrc file:
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-`")
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>&...