module(waybar): Refactor waybar module

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 90a5b36616
commit 6c4546df9c
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
4 changed files with 181 additions and 129 deletions

View file

@ -1,7 +1,14 @@
{inputs, ...}: let
{
config,
inputs,
...
}: let
inherit (inputs.niri-flake.lib.kdl) node leaf flag;
in {
david.programs.niri = {
waybar.settings = let
cfg = config.david.programs.niri.waybar;
in [(cfg.template // (cfg.mkBacklight "intel_backlight") // {output = "eDP-1";})];
wluma.extraSettings = {
output = {
backlight = [