From 1e2e92bc21fc6d2cdc9caffceac2cf3b8331b0d3 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 16 Feb 2022 18:55:49 +0100 Subject: [PATCH] Update emoji picker --- installation.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/installation.sh b/installation.sh index d20d0d7..7f916cd 100644 --- a/installation.sh +++ b/installation.sh @@ -189,9 +189,7 @@ yay -S parsec --noconfirm sudo pacman -S onlyoffice --noconfirm # Emoji picker and stome stuff -wget -q https://raw.githubusercontent.com/GaZaTu/x11-emoji-picker/master/install.sh -O /tmp/install_EP.sh -# Installation -yes | bash /tmp/install_EP.sh +yay -S x11-emoji-picker-git # Remove icon if [ -f /usr/share/applications/x11-emoji-picker.desktop ] then @@ -200,6 +198,23 @@ fi # Custom configuration rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null wget -q --show-progress https://git.kennel.ml/Anri/manjaroConfiguration/raw/branch/main/.config/gazatu.xyz/emoji-picker.ini -P "$HOME"/.config/gazatu.xyz/ +# Add keybinding +# Adding the keyboard shortcut +CUSTOM_KEYBINDINGS_LIST=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings) +if ! echo "$CUSTOM_KEYBINDINGS_LIST" | grep -q "$PROJECT_REPO" +then + if [ "$CUSTOM_KEYBINDINGS_LIST" = "@as []" ] # creating new list if not exists + then + CUSTOM_KEYBINDINGS_LIST="['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/$PROJECT_REPO/']" + else # if already existing, adding our new element + CUSTOM_KEYBINDINGS_LIST=$(echo "$CUSTOM_KEYBINDINGS_LIST" | sed 's/\[//' | sed 's/\]//') + CUSTOM_KEYBINDINGS_LIST="[$CUSTOM_KEYBINDINGS_LIST, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/$PROJECT_REPO/']" + fi + gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$CUSTOM_KEYBINDINGS_LIST" # update the list + gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/$PROJECT_REPO/ name "$PROJECT_NAME" # set name + gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/$PROJECT_REPO/ command "$EXECUTABLE_NAME" # set command + gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/$PROJECT_REPO/ binding "period" # set shortcut +fi # == Gnome configuration == # Nautilus keybinding