1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 23:12:32 +01:00

added openvpn module

This commit is contained in:
eoli3n 2020-01-05 19:07:37 +01:00
parent 428385393a
commit ae18957b70
2 changed files with 11 additions and 2 deletions

@ -4,7 +4,7 @@
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": [],
"modules-right": ["tray", "custom/spotify", "custom/storageslash", "custom/storagehome", "pulseaudio", "backlight", "network", "battery", "clock"],
"modules-right": ["tray", "custom/spotify", "custom/storageslash", "custom/storagehome", "pulseaudio", "backlight", "network", "vpn", "battery", "clock"],
"sway/mode": {
"format": " {}"
},
@ -69,6 +69,11 @@
"interval": 60,
"exec": "~/.config/waybar/modules/storage.sh /home"
},
"custom/vpn": {
"format": "<span foreground='#929292'> vpn</span> {}%",
"interval": 5,
"exec" : "pgrep openvpn"
},
"backlight": {
"format": "{icon}",
"format-alt": "{percent}% {icon}",

@ -54,7 +54,7 @@ window {
color: @alert;
}
#mode, #battery, #cpu, #memory, #network, #pulseaudio, #backlight, #custom-storageslash, #custom-storagehome, #custom-spotify, #custom-weather {
#mode, #battery, #cpu, #memory, #network, #pulseaudio, #backlight, #custom-storageslash, #custom-storagehome, #custom-spotify, #custom-weather #vpn {
margin: 0px 6px 0px 10px;
}
@ -75,6 +75,10 @@ window {
border-bottom: 2px solid @yellow;
}
#vpn {
border-bottom: 2px solid @blue;
}
#battery.warning {
color: rgba(255, 210, 4, 1);
}