65 lines
1.7 KiB
Text
65 lines
1.7 KiB
Text
Source: waybar-nmvpn
|
|
Section: golang
|
|
Priority: optional
|
|
Maintainer: Penelope Gwen <support@pogmom.me>
|
|
Uploaders: Penelope Gwen <support@pogmom.me>
|
|
Rules-Requires-Root: no
|
|
Build-Depends: debhelper-compat (= 13),
|
|
dh-sequence-golang,
|
|
golang-any
|
|
Testsuite: autopkgtest-pkg-go
|
|
Standards-Version: 4.6.2
|
|
Homepage: https://git.pogmom.me/pogmommy/waybar-nmvpn
|
|
XS-Go-Import-Path: github.com/lack/waybar-nmvpn
|
|
|
|
Package: waybar-nmvpn
|
|
Section: x11
|
|
Architecture: any
|
|
Depends: ${misc:Depends},
|
|
${shlibs:Depends}
|
|
Built-Using: ${misc:Built-Using}
|
|
Description: Waybar plugin to display NetworkManager VPN status
|
|
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);
|
|
}
|
|
|