refactor(waybar): shorten registry name
This commit is contained in:
@@ -106,7 +106,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
registry.waybar-module.${config.networking.hostName}."custom/idle-lock" = {
|
registry.waybar.${config.networking.hostName}."custom/idle-lock" = {
|
||||||
order = 20;
|
order = 20;
|
||||||
settings = {
|
settings = {
|
||||||
return-type = "json";
|
return-type = "json";
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
registry.waybar-module.${config.networking.hostName}."custom/dnd" = {
|
registry.waybar.${config.networking.hostName}."custom/dnd" = {
|
||||||
order = 80;
|
order = 80;
|
||||||
settings = {
|
settings = {
|
||||||
return-type = "json";
|
return-type = "json";
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ let
|
|||||||
}
|
}
|
||||||
) hostWaybarModules;
|
) hostWaybarModules;
|
||||||
|
|
||||||
hostWaybarModules = lib.attrByPath [ config.networking.hostName ] { } config.registry.waybar-module;
|
hostWaybarModules = lib.attrByPath [ config.networking.hostName ] { } config.registry.waybar;
|
||||||
|
|
||||||
# A Nerd Font Private-Use-Area codepoint as a literal character, decoded
|
# A Nerd Font Private-Use-Area codepoint as a literal character, decoded
|
||||||
# through JSON so the glyph survives as bytes rather than an editor paste.
|
# through JSON so the glyph survives as bytes rather than an editor paste.
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
registry.waybar-module.${config.networking.hostName}."custom/recording" = {
|
registry.waybar.${config.networking.hostName}."custom/recording" = {
|
||||||
order = 10;
|
order = 10;
|
||||||
settings = {
|
settings = {
|
||||||
return-type = "json";
|
return-type = "json";
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ in
|
|||||||
vpn-off = "sudo systemctl stop 'wireguard-${cfg.interface}*.service' wireguard-${cfg.interface}.target";
|
vpn-off = "sudo systemctl stop 'wireguard-${cfg.interface}*.service' wireguard-${cfg.interface}.target";
|
||||||
};
|
};
|
||||||
|
|
||||||
registry.waybar-module.${config.networking.hostName}."custom/vpn" = {
|
registry.waybar.${config.networking.hostName}."custom/vpn" = {
|
||||||
order = 50;
|
order = 50;
|
||||||
settings = {
|
settings = {
|
||||||
return-type = "json";
|
return-type = "json";
|
||||||
|
|||||||
Reference in New Issue
Block a user