start migrating waybar to modularity
This commit is contained in:
parent
b74558e35b
commit
1947c56886
7 changed files with 506 additions and 439 deletions
17
modules/waybar/workspaces.nix
Normal file
17
modules/waybar/workspaces.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
name = "hyprland/workspaces";
|
||||
in
|
||||
{
|
||||
options.modules.waybar.modules = import ./addname.nix lib name;
|
||||
options.modules.waybar.${name} = {
|
||||
enable = lib.mkEnableOption "enable ${name} waybar module";
|
||||
};
|
||||
config = lib.mkIf config.modules.waybar.${name}.enable {
|
||||
programs.waybar.settings.mainbar."${name}" = {
|
||||
format = "{name}";
|
||||
on-click = "activate";
|
||||
sort-by = "id";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue