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,17 @@
{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.helper.mkBacklight "ddcci13") // {output = "DP-3";})
(cfg.template // (cfg.helper.mkBacklight "nvidia_0") // {output = "eDP-1";})
];
wluma.extraSettings = {
output = {
backlight = [
@ -12,7 +22,7 @@ in {
}
{
name = "DP-3";
path = "/sys/class/backlight/ddcci15";
path = "/sys/class/backlight/ddcci13";
capturer = "wayland";
}
];