Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bin/omakub-sub/theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
23 changes: 23 additions & 0 deletions install/desktop/optional/app-qbittorrent.sh
Original file line number Diff line number Diff line change
@@ -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
Binary file added themes/catppuccin/qbittorrent.qbtheme
Binary file not shown.
Binary file added themes/everforest/qbittorrent.qbtheme
Binary file not shown.
Binary file added themes/gruvbox/qbittorrent.qbtheme
Binary file not shown.
Binary file added themes/kanagawa/qbittorrent.qbtheme
Binary file not shown.
Binary file added themes/matte-black/qbittorrent.qbtheme
Binary file not shown.
Binary file added themes/nord/qbittorrent.qbtheme
Binary file not shown.
Binary file added themes/osaka-jade/qbittorrent.qbtheme
Binary file not shown.
Binary file added themes/ristretto/qbittorrent.qbtheme
Binary file not shown.
Binary file added themes/rose-pine/qbittorrent.qbtheme
Binary file not shown.
Binary file added themes/tokyo-night/qbittorrent.qbtheme
Binary file not shown.
1 change: 1 addition & 0 deletions uninstall/app-qbittorrent.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo apt remove --purge -y qbittorrent