10
README.md
10
README.md
@@ -3,6 +3,8 @@
|
|||||||
This small Python script and .desktop file add a quick toggle to the desktop
|
This small Python script and .desktop file add a quick toggle to the desktop
|
||||||
environment's system tray.
|
environment's system tray.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
1. **NextDNS CLI**: The script controls the nextdns service. If you haven't installed it yet:
|
1. **NextDNS CLI**: The script controls the nextdns service. If you haven't installed it yet:
|
||||||
@@ -11,7 +13,7 @@ environment's system tray.
|
|||||||
sh -c 'curl -sL https://nextdns.io/install | sh'
|
sh -c 'curl -sL https://nextdns.io/install | sh'
|
||||||
```
|
```
|
||||||
|
|
||||||
1. **Python 3 & PyQt6**: The interface is built using Python 3 and the Qt6
|
2. **Python 3 & PyQt6**: The interface is built using Python 3 and the Qt6
|
||||||
toolkit. (This is installed by default on (K)ubuntu.)
|
toolkit. (This is installed by default on (K)ubuntu.)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -19,7 +21,7 @@ sudo apt update
|
|||||||
sudo apt install python3 python3-pyqt6
|
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.
|
3. **Polkit Agent**: The script uses pkexec to handle start/stop commands safely. Most desktop environments (KDE, GNOME, XFCE) come with this pre-installed.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -34,13 +36,13 @@ cp home/.local/share/applications/nextdns-tray.desktop ~/.local/share/applicatio
|
|||||||
cp home/.local/share/icons/nextdns.png ~/.local/share/icons/
|
cp home/.local/share/icons/nextdns.png ~/.local/share/icons/
|
||||||
```
|
```
|
||||||
|
|
||||||
1. **Make the script executable**
|
2. **Make the script executable**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
chmod +x ~/.local/bin/nextdns-tray
|
chmod +x ~/.local/bin/nextdns-tray
|
||||||
```
|
```
|
||||||
|
|
||||||
1. **(Optional) Add to Autostart**: If you want the tray to start automatically when you log in:
|
3. **(Optional) Add to Autostart**: If you want the tray to start automatically when you log in:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir -p ~/.config/autostart
|
mkdir -p ~/.config/autostart
|
||||||
|
|||||||
BIN
nextdns_tray_demo.png
Normal file
BIN
nextdns_tray_demo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
Reference in New Issue
Block a user