Add Syncthing, Discord, Obsidian, Flameshot, Parsec, Onlyoffice, EmojiPicker, Gnome configuration, copyq, signal, kolourpaint
This commit is contained in:
parent
071d3df7ed
commit
6d3ae24f32
1 changed files with 68 additions and 9 deletions
|
@ -150,25 +150,84 @@ sudo zip --update xpui.spa xpui.js
|
||||||
sudo rm xpui.js
|
sudo rm xpui.js
|
||||||
|
|
||||||
# == Syncthing ==
|
# == 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
|
# 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 '<Super>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. 🎉"
|
echo -e "\nInstallation done. 🎉"
|
||||||
|
|
Reference in a new issue