Update emoji picker
This commit is contained in:
parent
6d3ae24f32
commit
1e2e92bc21
1 changed files with 18 additions and 3 deletions
|
@ -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
|
||||
|
|
Reference in a new issue