home: wm: i3bar: add VPN blocks
This commit is contained in:
parent
33b94a7f9d
commit
3a2f02f001
2 changed files with 38 additions and 0 deletions
|
|
@ -59,6 +59,19 @@ in
|
|||
{
|
||||
block = "disk_space";
|
||||
}
|
||||
(lib.optionals cfg.vpn.enable
|
||||
(
|
||||
let
|
||||
defaults = {
|
||||
block = "service_status";
|
||||
active_state = "Good";
|
||||
inactive_format = "";
|
||||
inactive_state = "Idle";
|
||||
};
|
||||
in
|
||||
builtins.map (block: defaults // block) cfg.vpn.blockConfigs
|
||||
)
|
||||
)
|
||||
{
|
||||
block = "net";
|
||||
format = " $icon{| $ssid|} $ip{| $signal_strength|} ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue