add keyboard shortcut for clipboard

This commit is contained in:
Mylloon 2022-06-04 15:46:58 +02:00
parent d3deafbcf2
commit b9cfb8e13a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

19
arch.sh
View file

@ -249,13 +249,28 @@ then
sudo systemctl enable touchegg.service
sudo systemctl start touchegg
# Tray icons
yay -S gnome-shell-extension-tray-icons-reloaded --noconfirm
gnome-extensions enable trayIconsReloaded@selfmade.pl
# === Remove extra packages ==
sudo pacman -Rsn epiphany gnome-maps cheese gnome-weather gnome-music gnome-books vim gnome-boxes gnome-photos --noconfirm
# gnome-firefox, maps, caméra, météo, musique, liseuse, vim, machines, photos
# === Clipboard history ==
yay -S gnome-shell-extension-tray-icons-reloaded --noconfirm
gnome-extensions enable trayIconsReloaded@selfmade.pl
# Keybinding
gsettings set org.gnome.shell.keybindings toggle-message-tray ['<Super>m']
CUSTOM_KEYBINDINGS_LIST=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings)
if [[ $CUSTOM_KEYBINDINGS_LIST == "@as []" ]] # creating new list if not exists
then
CUSTOM_KEYBINDINGS_LIST="['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clipboard-shortcut/']"
else # if already existing, adding our new element
CUSTOM_KEYBINDINGS_LIST="${CUSTOM_KEYBINDINGS_LIST::-1}, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clipboard-shortcut/']"
fi
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$CUSTOM_KEYBINDINGS_LIST" # updating the list
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clipboard-shortcut/ name "Copyq" # set name
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clipboard-shortcut/ command "copyq show" # set command
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clipboard-shortcut/ binding "<Super>V" # set shortcut
copyq > /dev/null & disown
copyq config autostart true