diff --git a/bin/omakub-sub/theme.sh b/bin/omakub-sub/theme.sh index 8d628ead1..21f38e2fd 100644 --- a/bin/omakub-sub/theme.sh +++ b/bin/omakub-sub/theme.sh @@ -25,6 +25,12 @@ if [ -n "$THEME" ] && [ "$THEME" != "<<-back" ]; then # Forgo setting the Chrome theme until we might find a less disruptive way of doing it. # Having to quit Chrome, and all Chrome-based apps, is too much of an inposition. # source $OMAKUB_PATH/themes/$THEME/chrome.sh + + # qBittorrent theme (only if qBittorrent is installed) + if [ -d "$HOME/.config/qBittorrent" ] && [ -f "$OMAKUB_PATH/themes/$THEME/qbittorrent.qbtheme" ]; then + mkdir -p ~/.config/qBittorrent/themes + cp $OMAKUB_PATH/themes/$THEME/qbittorrent.qbtheme ~/.config/qBittorrent/themes/theme.qbtheme + fi fi source $OMAKUB_PATH/bin/omakub-sub/menu.sh diff --git a/install/desktop/optional/app-qbittorrent.sh b/install/desktop/optional/app-qbittorrent.sh new file mode 100755 index 000000000..64ea2a04e --- /dev/null +++ b/install/desktop/optional/app-qbittorrent.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# qBittorrent is a free and open-source BitTorrent client. See https://www.qbittorrent.org/ +sudo add-apt-repository -y ppa:qbittorrent-team/qbittorrent-stable +sudo apt update +sudo apt install -y qbittorrent + +# Set up default theme (tokyo-night) +mkdir -p ~/.config/qBittorrent/themes +cp ~/.local/share/omakub/themes/tokyo-night/qbittorrent.qbtheme ~/.config/qBittorrent/themes/theme.qbtheme + +# Pre-configure qBittorrent to use custom theme +if [ ! -f ~/.config/qBittorrent/qBittorrent.conf ]; then + cat > ~/.config/qBittorrent/qBittorrent.conf << 'EOF' +[LegalNotice] +Accepted=true + +[Preferences] +General\CustomUIThemePath=/home/$USER/.config/qBittorrent/themes/theme.qbtheme +General\UseCustomUITheme=true +EOF + sed -i "s|\$USER|$USER|g" ~/.config/qBittorrent/qBittorrent.conf +fi diff --git a/themes/catppuccin/qbittorrent.qbtheme b/themes/catppuccin/qbittorrent.qbtheme new file mode 100644 index 000000000..858dab973 Binary files /dev/null and b/themes/catppuccin/qbittorrent.qbtheme differ diff --git a/themes/everforest/qbittorrent.qbtheme b/themes/everforest/qbittorrent.qbtheme new file mode 100644 index 000000000..756fca62f Binary files /dev/null and b/themes/everforest/qbittorrent.qbtheme differ diff --git a/themes/gruvbox/qbittorrent.qbtheme b/themes/gruvbox/qbittorrent.qbtheme new file mode 100644 index 000000000..9aea0e31c Binary files /dev/null and b/themes/gruvbox/qbittorrent.qbtheme differ diff --git a/themes/kanagawa/qbittorrent.qbtheme b/themes/kanagawa/qbittorrent.qbtheme new file mode 100644 index 000000000..756fca62f Binary files /dev/null and b/themes/kanagawa/qbittorrent.qbtheme differ diff --git a/themes/matte-black/qbittorrent.qbtheme b/themes/matte-black/qbittorrent.qbtheme new file mode 100644 index 000000000..756fca62f Binary files /dev/null and b/themes/matte-black/qbittorrent.qbtheme differ diff --git a/themes/nord/qbittorrent.qbtheme b/themes/nord/qbittorrent.qbtheme new file mode 100644 index 000000000..6fbed9c52 Binary files /dev/null and b/themes/nord/qbittorrent.qbtheme differ diff --git a/themes/osaka-jade/qbittorrent.qbtheme b/themes/osaka-jade/qbittorrent.qbtheme new file mode 100644 index 000000000..756fca62f Binary files /dev/null and b/themes/osaka-jade/qbittorrent.qbtheme differ diff --git a/themes/ristretto/qbittorrent.qbtheme b/themes/ristretto/qbittorrent.qbtheme new file mode 100644 index 000000000..756fca62f Binary files /dev/null and b/themes/ristretto/qbittorrent.qbtheme differ diff --git a/themes/rose-pine/qbittorrent.qbtheme b/themes/rose-pine/qbittorrent.qbtheme new file mode 100644 index 000000000..756fca62f Binary files /dev/null and b/themes/rose-pine/qbittorrent.qbtheme differ diff --git a/themes/tokyo-night/qbittorrent.qbtheme b/themes/tokyo-night/qbittorrent.qbtheme new file mode 100644 index 000000000..756fca62f Binary files /dev/null and b/themes/tokyo-night/qbittorrent.qbtheme differ diff --git a/uninstall/app-qbittorrent.sh b/uninstall/app-qbittorrent.sh new file mode 100644 index 000000000..9bbd68709 --- /dev/null +++ b/uninstall/app-qbittorrent.sh @@ -0,0 +1 @@ +sudo apt remove --purge -y qbittorrent