update emoji script with the script repo

This commit is contained in:
Mylloon 2021-11-20 20:58:25 +01:00
parent 939324f62d
commit 8c881bb1c2
3 changed files with 2 additions and 38 deletions

View file

@ -111,8 +111,7 @@ Mon guide à suivre lors d'une réinstallation d'Ubuntu
- Installe le [sélecteur d'emojis](https://github.com/GaZaTu/x11-emoji-picker) - Installe le [sélecteur d'emojis](https://github.com/GaZaTu/x11-emoji-picker)
```bash ```bash
# Attention le script ne gère pas les raccourcis qui sont déjà assignés à "Super + ;" wget -q --show-progress https://raw.githubusercontent.com/GaZaTu/x11-emoji-picker/master/install.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installEmojiPicker.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
``` ```
- Rajoute les raccourcis clavier - Rajoute les raccourcis clavier

View file

@ -1,35 +0,0 @@
# Fetching last versin of x11-emoji-picker
wget -q https://api.github.com/repos/GaZaTu/x11-emoji-picker/releases/latest
echo "Retrieve the last package..."
grep 'browser_download_url": ".*.deb"' latest | awk '{ print substr ($0, 32 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }' > url
rm latest
# Downloading package
wget -q --show-progress -i url -O x11-emoji-picker.deb
rm url
# Installing dependencies
wget -q --show-progress http://ftp.br.debian.org/debian/pool/main/i/icu/libicu57_57.1-6+deb9u4_amd64.deb
sudo apt install ./libicu57_57.1-6+deb9u4_amd64.deb -y
rm libicu57_57.1-6+deb9u4_amd64.deb
# Installing the emoji picker
sudo apt install ./x11-emoji-picker.deb -y
# Deleting the .deb
rm x11-emoji-picker.deb
# Adding the keyboard shortcut
# Fetching customs keyboard shortcuts
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/x11-emoji-picker/']"
else # If already existing, adding our new element
CUSTOM_KEYBINDINGS_LIST="${CUSTOM_KEYBINDINGS_LIST::-1}, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/x11-emoji-picker/']"
fi
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$CUSTOM_KEYBINDINGS_LIST" # On met à jour la liste
# Naming it
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/x11-emoji-picker/ name 'Emoji Picker' # Set name
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/x11-emoji-picker/ command 'emoji-picker' # Set command
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/x11-emoji-picker/ binding '<Super>semicolon' # Set shortcut
echo ""
echo "Emoji picker installed"
echo "Select \"InputMethod: activate window & default\""

View file

@ -63,7 +63,7 @@ then
bash installOnlyoffice.sh bash installOnlyoffice.sh
# Install EmojiPicker and its keyboard shortcut # Install EmojiPicker and its keyboard shortcut
bash installEmojiPicker.sh wget -q --show-progress https://raw.githubusercontent.com/GaZaTu/x11-emoji-picker/master/install.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
# Setup some others keyboard shortcut # Setup some others keyboard shortcut
bash createKeyboardsShortcut.sh bash createKeyboardsShortcut.sh