Home-manager: Add waybar mullvad vpn module
This commit is contained in:
parent
46362ce186
commit
9d2bc8aa10
3 changed files with 203 additions and 1 deletions
|
|
@ -11,7 +11,8 @@
|
|||
modules-left = [
|
||||
"hyprland/workspaces"
|
||||
"niri/workspaces"
|
||||
"niri/window"
|
||||
# "niri/window"
|
||||
"custom/mullvad"
|
||||
];
|
||||
modules-center = [ "clock" ];
|
||||
modules-right = [
|
||||
|
|
@ -21,6 +22,22 @@
|
|||
"battery"
|
||||
];
|
||||
|
||||
"custom/mullvad" = {
|
||||
"format" = "{icon}";
|
||||
"exec" = "/home/zeph/nix/home-manager/modules/hypr/mullvad.sh";
|
||||
"interval" = 10;
|
||||
"return-type" = "json";
|
||||
"on-click" = "/home/zeph/nix/home-manager/modules/hypr/mullvad.sh toggle";
|
||||
"on-click-middle" = "mullvad-vpn";
|
||||
"on-click-right" = "/home/zeph/nix/home-manager/modules/hypr/mullvad.sh reconnect";
|
||||
"format-icons" = {
|
||||
"connected" = "";
|
||||
"connecting" = "";
|
||||
"disconnected" = "";
|
||||
};
|
||||
"tooltip" = true;
|
||||
};
|
||||
|
||||
"hyprland/workspaces" = {
|
||||
disable-scroll = true;
|
||||
all-outputs = true;
|
||||
|
|
@ -89,6 +106,25 @@
|
|||
@define-color purple #b16286;
|
||||
@define-color aqua #689d6a;
|
||||
@define-color orange #d65d0e;
|
||||
@define-color error #F96184;
|
||||
@define-color foreground #D3D9FF;
|
||||
@define-color success #01D38F;
|
||||
|
||||
#custom-mullvad {
|
||||
background-color: @bg1;
|
||||
min-width: 14px;
|
||||
margin: 3px 2px;
|
||||
padding: 2px 6px;
|
||||
border: 2px solid @orange;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
#custom-mullvad.connecting {
|
||||
color: @foreground;
|
||||
}
|
||||
#custom-mullvad.connected {
|
||||
color: @success;
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: "JetBrainsMono Nerd Font", monospace;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue