Update emoji picker

This commit is contained in:
Mylloon 2022-02-16 18:55:49 +01:00
parent 6d3ae24f32
commit 1e2e92bc21
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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 "<Super>period" # set shortcut
fi
# == Gnome configuration ==
# Nautilus keybinding