diff --git a/README.md b/README.md index be42f52..89dbe2a 100644 --- a/README.md +++ b/README.md @@ -9,17 +9,17 @@ environment's system tray. 1. **NextDNS CLI**: The script controls the nextdns service. If you haven't installed it yet: -```bash -sh -c 'curl -sL https://nextdns.io/install | sh' -``` + ```bash + sh -c 'curl -sL https://nextdns.io/install | sh' + ``` 1. **Python 3 & PyQt6**: The interface is built using Python 3 and the Qt6 toolkit. (This is installed by default on (K)ubuntu.) -```bash -sudo apt update -sudo apt install python3 python3-pyqt6 -``` + ```bash + sudo apt update + sudo apt install python3 python3-pyqt6 + ``` 1. **Polkit Agent**: The script uses pkexec to handle start/stop commands safely. Most desktop environments (KDE, GNOME, XFCE) come with this pre-installed. @@ -51,30 +51,30 @@ Preview what would be removed: 1. **Copy the files to your home directory:** -```bash -# Create directories if they don't exist -mkdir -p ~/.local/bin ~/.local/share/applications ~/.local/share/icons -# Copy the specific files -cp home/.local/bin/nextdns-tray ~/.local/bin/ -cp home/.local/share/applications/nextdns-tray.desktop ~/.local/share/applications/ -cp home/.local/share/icons/nextdns.png ~/.local/share/icons/ -``` + ```bash + # Create directories if they don't exist + mkdir -p ~/.local/bin ~/.local/share/applications ~/.local/share/icons + # Copy the specific files + cp home/.local/bin/nextdns-tray ~/.local/bin/ + cp home/.local/share/applications/nextdns-tray.desktop ~/.local/share/applications/ + cp home/.local/share/icons/nextdns.png ~/.local/share/icons/ + ``` 1. **Make the script executable** -```bash -chmod +x ~/.local/bin/nextdns-tray -``` + ```bash + chmod +x ~/.local/bin/nextdns-tray + ``` -The bundled `nextdns-tray.desktop` launcher runs `nextdns-tray` directly (via `PATH`) so it is not tied to any repository location. -If your desktop session does not include `~/.local/bin` in `PATH`, use an absolute path in `~/.local/share/applications/nextdns-tray.desktop`. + The bundled `nextdns-tray.desktop` launcher runs `nextdns-tray` directly (via `PATH`) so it is not tied to any repository location. + If your desktop session does not include `~/.local/bin` in `PATH`, use an absolute path in `~/.local/share/applications/nextdns-tray.desktop`. 1. **(Optional) Add to Autostart**: If you want the tray to start automatically when you log in: -```bash -mkdir -p ~/.config/autostart -cp ~/.local/share/applications/nextdns-tray.desktop ~/.config/autostart/ -``` + ```bash + mkdir -p ~/.config/autostart + cp ~/.local/share/applications/nextdns-tray.desktop ~/.config/autostart/ + ``` ### Manual Installation (equivalent)