Skip to content

A Simple BASH Script Designed to Integrate NordVPN Functionality Directly into Polybar.

License

Notifications You must be signed in to change notification settings

WDoyle123/nordvpn-polybar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NordVPN-polybar

Overview

NordVPN-polybar is a simple BASH script designed to integrate NordVPN functionality directly into Polybar. This utility allows users to manage their VPN connection easily through Polybar, including displaying connection status and controlling the NordVPN settings.

example.png

Features

  • Display current VPN status, including connection location and data transfer rates.
  • Easy control of NordVPN connection directly from Polybar.
  • Toggle Kill Switch function to enhance security.
  • Customisable Polybar module for NordVPN.

Installation Instructions

  1. Download the Script: Clone or download the nordvpn_polybar.sh script from this repository.
git clone https://github.com/wdoyle123/nordvpn_polybar.git
  1. Script Placement: Place the script in a directory of your choice, commonly ~/scripts/.
cd nordvpn_polybar
mv nordvpn_polybar ~/scripts/
  1. Make the Script Executable:
chmod +x nordvpn_polybar.sh
  1. Install NordVPN: Make sure you have NordVPN installed on your system. You can install it from NordVPN's official website or your distribution's package manager.

  2. Configure Polybar Module: Edit your Polybar configuration file to include the nordvpn module. Example configuration:

[module/nordvpn]
type = custom/script
exec = ~/scripts/nordvpn_polybar.sh
interval = 1
format-underline = #2196f3
label = %output%
click-left = nordvpn connect France
click-middle = ~/scripts/nordvpn_polybar.sh toggle
click-right = nordvpn disconnect

Usage

  • Display VPN Status: The script will display your current VPN status on your Polybar.
  • Connect/Disconnect VPN: Left-click on the Polybar module to connect to NordVPN (e.g., to France) and right-click to disconnect.
  • Toggle Kill Switch: Middle-click on the Polybar module to toggle the Kill Switch on or off.

Script Details

  • display_status: Function to display the current status of the VPN connection.
  • toggle_killswitch: Function to toggle the NordVPN Kill Switch.
  • The script uses the case statement to handle different actions based on user input.

Dependencies

  • NordVPN: The script requires NordVPN to be installed on your system.
  • Polybar: Designed for use with Polybar on Linux systems.
  • Bash: This script is written for Bash shell.

License

see the LICENSE file for details.

About

A Simple BASH Script Designed to Integrate NordVPN Functionality Directly into Polybar.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages