No description
This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2024-06-11 17:01:11 -06:00
debian update runner 2024-06-11 16:56:18 -06:00
pkg/nmvpn First cut at nmvpn plugin 2022-08-01 15:06:59 -04:00
.gitignore Ignore _build and quilt .pc dirs via .gitignore 2024-06-11 13:41:52 -06:00
.gitlab-ci.yml update runner 2024-06-11 17:01:11 -06:00
go.mod prep for debian packaging 2024-06-11 16:05:44 -06:00
go.sum prep for debian packaging 2024-06-11 16:05:44 -06:00
LICENSE Initial commit 2022-08-01 12:31:31 -04:00
main.go remove VPN text 2024-06-11 16:44:01 -06:00
README.md First cut at nmvpn plugin 2022-08-01 15:06:59 -04:00

waybar-nmvpn

Waybar plugin to display NetworkManager VPN status

Installation

go install github.com/lack/waybar-nmvpn@latest

Configuration

In $XDG_CONFIG_HOME/waybar/config

{
    // ... other waybar configuration
    "custom/nmvpn": {
        "format": "{} {icon}",
        "return-type": "json",
        "exec": "$GOPATH/bin/waybar-nmvpn",
        "format-icons": {
            "connected": "",
            "disconnected": "",
            "none": "",
            "error": "⚠"
        }
    }
}

In $XDG_CONFIG_HOME/waybar/style.css

#custom-nmvpn.connected {
    background-color: rgba(0x29, 0x80, 0xb9, 0.8);
    box-shadow: inset 0 -3px rgba(0x29, 0x80, 0xb9, 1.0);
}

#custom-nmvpn.disconnected {
    background-color: rgba(0xf5, 0x3c, 0x3c, 0.8);
    box-shadow: inset 0 -3px rgba(0xf5, 0x3c, 0x3c, 1.0);
}

#custom-nmvpn.error {
    background-color: rgba(0xeb, 0x4d, 0x4b, 0.8);
    box-shadow: inset 0 -3px rgba(0xeb, 0x4d, 0x4b, 1.0);
}