split waybar into multiple files

This commit is contained in:
Lucy Hochkamp 2025-10-06 21:29:04 +02:00
parent 53c7532351
commit 7cff7f09c3
No known key found for this signature in database
29 changed files with 953 additions and 617 deletions

View file

@ -0,0 +1,35 @@
{
pkgs,
config,
lib,
...
}:
with lib;
mkIf (config.xyno.hardware.kmonad.enable) {
xyno.desktop.waybar.config = {
"custom/kmonad" = {
exec =
(pkgs.writeShellApplication {
name = "kmonad-layer-watcher";
runtimeInputs = [ pkgs.inotify-tools ];
text = ''
cat /tmp/kmonad-layer;
while inotifywait -qq -e modify /tmp/kmonad-layer; do
cat /tmp/kmonad-layer;
done
'';
})
+ "/bin/kmonad-layer-watcher";
restart-interval = 5;
};
modules-left = mkBefore [ "custom/kmonad" ];
};
xyno.desktop.waybar.style = ''
#custom-kmonad {
color: #84929D;
margin-left: 4px;
border-bottom: 3px solid #fbf1c7;
}
'';
}