split waybar into multiple files
This commit is contained in:
parent
53c7532351
commit
7cff7f09c3
29 changed files with 953 additions and 617 deletions
35
modules/desktop/waybar/kmonad.nix
Normal file
35
modules/desktop/waybar/kmonad.nix
Normal 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;
|
||||
}
|
||||
'';
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue