sunhat/install/ulauncher.sh

14 lines
550 B
Bash

if [ -n "$FORCE" ] || ! command -v ulauncher &>/dev/null; then
sudo add-apt-repository universe -y
sudo add-apt-repository ppa:agornostal/ulauncher -y
sudo apt update -y
sudo apt install -y ulauncher
# Start ulauncher to have it populate config before we overwrite
mkdir -p ~/.config/autostart/
cp $OMAKUB_PATH/configs/ulauncher.desktop ~/.config/autostart/ulauncher.desktop
gtk-launch ulauncher.desktop
sleep 2 # ensure enough time for ulauncher to set defaults
cp $OMAKUB_PATH/configs/ulauncher.json ~/.config/ulauncher/settings.json
fi