From 6d3ae24f32bf39a5c6d96b7a5bf93bbfdcfc8d9b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 16 Feb 2022 18:45:10 +0100 Subject: [PATCH] Add Syncthing, Discord, Obsidian, Flameshot, Parsec, Onlyoffice, EmojiPicker, Gnome configuration, copyq, signal, kolourpaint --- installation.sh | 77 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 68 insertions(+), 9 deletions(-) diff --git a/installation.sh b/installation.sh index f83995c..d20d0d7 100644 --- a/installation.sh +++ b/installation.sh @@ -150,25 +150,84 @@ sudo zip --update xpui.spa xpui.js sudo rm xpui.js # == Syncthing == +sudo pacman -S syncthing --noconfirm +# Launch it at startup +sudo systemctl enable syncthing@"$USER".service +sudo systemctl start syncthing@"$USER".service -# Discord +# == Discord == +sudo pacman -S discord --noconfirm -# Obsidian +# == Obsidian == +yay -S obsidian --noconfirm -# Flameshot +# == Flameshot == +sudo pacman -S flameshot --noconfirm +# Custom configuration +rm "$HOME"/.config/flameshot/flameshot.ini 2>/dev/null +wget -q --show-progress https://git.kennel.ml/Anri/manjaroConfiguration/raw/branch/main/.config/flameshot/flameshot.ini -P "$HOME"/.config/flameshot/ +# Change keybindings +gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot "[]" +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/flameshot-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/flameshot-shortcut/']" +fi +gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$CUSTOM_KEYBINDINGS_LIST" +# Remove icon +if [ -f /usr/share/applications/org.flameshot.Flameshot.desktop ] +then + sudo mv /usr/share/applications/org.flameshot.Flameshot.desktop /usr/share/applications/org.flameshot.Flameshot.desktop.bak +fi -# Parsec +# == Parsec == +yay -S parsec --noconfirm -# Onlyoffice +# == Onlyoffice == +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 +# Remove icon +if [ -f /usr/share/applications/x11-emoji-picker.desktop ] +then + sudo mv /usr/share/applications/x11-emoji-picker.desktop /usr/share/applications/x11-emoji-picker.desktop.bak +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/ -# Gnome configuration +# == Gnome configuration == +# Nautilus keybinding +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/nautilus-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/nautilus-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/nautilus-shortcut/ name 'Nautilus' # set name +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ command 'nautilus -w' # set command +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ binding 'E' # set shortcut +# Show battery poucentage +gsettings set org.gnome.desktop.interface show-battery-percentage true -# Clipboard history +# == Clipboard history == +sudo pacman -S copyq --noconfirm -# Signal +# == Signal == +sudo pacman -S signal-desktop --noconfirm -# Paint +# == Paint == +sudo pacman -S kolourpaint --noconfirm +# Rename icon +if [ -f /usr/share/applications/org.kde.kolourpaint.desktop ] ; then + sudo sed -i "3s#.*#Name=Paint#" /usr/share/applications/org.kde.kolourpaint.desktop +fi echo -e "\nInstallation done. 🎉"