add keyboard shortcut for clipboard
This commit is contained in:
parent
d3deafbcf2
commit
b9cfb8e13a
1 changed files with 17 additions and 2 deletions
19
arch.sh
19
arch.sh
|
@ -249,13 +249,28 @@ then
|
||||||
sudo systemctl enable touchegg.service
|
sudo systemctl enable touchegg.service
|
||||||
sudo systemctl start touchegg
|
sudo systemctl start touchegg
|
||||||
|
|
||||||
|
# Tray icons
|
||||||
|
yay -S gnome-shell-extension-tray-icons-reloaded --noconfirm
|
||||||
|
gnome-extensions enable trayIconsReloaded@selfmade.pl
|
||||||
|
|
||||||
# === Remove extra packages ==
|
# === Remove extra packages ==
|
||||||
sudo pacman -Rsn epiphany gnome-maps cheese gnome-weather gnome-music gnome-books vim gnome-boxes gnome-photos --noconfirm
|
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
|
# gnome-firefox, maps, caméra, météo, musique, liseuse, vim, machines, photos
|
||||||
|
|
||||||
# === Clipboard history ==
|
# === Clipboard history ==
|
||||||
yay -S gnome-shell-extension-tray-icons-reloaded --noconfirm
|
# Keybinding
|
||||||
gnome-extensions enable trayIconsReloaded@selfmade.pl
|
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 > /dev/null & disown
|
||||||
copyq config autostart true
|
copyq config autostart true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue