dotfiles/gui/theme.sh
2020-11-22 09:38:00 +08:00

26 lines
635 B
Bash
Executable File

#!/bin/sh
set -e
DIR=$(dirname "$(readlink -f "$0")")
. "$DIR/../env.sh"
log 'Setting up theme'
case "$PM" in
apt)
sudo apt install -y \
lxappearance arc-theme qt5ct qt5-style-plugins
# install arc-icon-theme
git clone https://github.com/horst3180/arc-icon-theme --depth 1 /tmp/arc-icon-theme && cd /tmp/arc-icon-theme
./autogen.sh --prefix=/usr
sudo make install
rm -rf /tmp/arc-icon-theme
cd -
;;
pacman)
sudo pacman -S --noconfirm --needed \
lxappearance arc-gtk-theme arc-icon-theme qt5ct qt5-styleplugins
;;
esac