StewOS
Source

programs.yasb

Declared in modules/home-manager/yasb.nix · 7 options

# programs.yasb.autostart

Start YASB at sign-in, through windows.startup.YASB -- the entry YASB's own autostart writes, which this replaces. Moot with service.enable.

Type
boolean
Default
true
Declared in

# programs.yasb.enable

Whether to enable YASB, a status bar.

Type
boolean
Default
false
Example
true
Declared in

# programs.yasb.executable

The path of yasb.exe, for the start-up entry: the MSI's location by default. yasbc.exe, which stops the service, is taken to be beside it.

Type
string
Default
"C:\\Program Files\\YASB\\yasb.exe"
Declared in

# programs.yasb.package

The package to install. winget's is an MSI, so it is machine scope and reaches the system configuration through winpkgs.homes. null installs nothing.

Type
null or package
Default
pkgs.winpkgs.fromWinget {
  id = "AmN.yasb";
  scope = "machine";
  programDir = ''%ProgramFiles%\YASB'';
  mainProgram = "yasb";
}
Declared in

# programs.yasb.service.enable

Whether to enable YASB as a user service instead of a Run entry: systemd.user.services.yasb, which a user service manager runs (steward's home module makes it a unit). Started with graphical-session.target unless the unit says otherwise -- after komorebi's service, when there is one -- restarted if it dies or its files change, and stopped with yasbc stop. The Run entry is removed, including one YASB wrote itself.

Type
boolean
Default
false
Example
true
Declared in

# programs.yasb.settings

YASB's config.yaml, written to ~/.config/yasb/config.yaml when not empty. Taken as given: YASB validates the file itself and rejects keys it does not know, so see its wiki for the schema. update_check = false suits a winget-managed install, which winpkgs keeps up to date.

Type
YAML 1.1 value
Default
{ }
Example
{
  update_check = false;
  bars.primary-bar = {
    screens = [ "*" ];
    alignment = { position = "top"; align = "center"; };
    dimensions = { width = "100%"; height = 32; };
    widgets = {
      left = [ "workspaces" ];
      right = [ "clock" ];
    };
  };
  widgets = {
    workspaces.type = "komorebi.workspaces.WorkspaceWidget";
    clock = {
      type = "yasb.clock.ClockWidget";
      options.label = "{%H:%M}";
    };
  };
}
Declared in

# programs.yasb.style

YASB's styles.css, as a file or as its text, written to ~/.config/yasb/styles.css. Qt style sheets, which YASB preprocesses: :root variables with var(), and @import relative to the file. null writes nothing.

Type
null or absolute path or strings concatenated with "\n"
Default
null
Example
''
  :root { --bg: #1e1e2e; }
  .yasb-bar { background-color: var(--bg); }
''
Declared in