added waybar config

This commit is contained in:
Gabriella Bere 2024-08-22 12:04:09 +01:00
parent 1a95061a21
commit 2dca4bf209

View file

@ -106,30 +106,31 @@
)
10)
);
exec-once = waybar
# exec-once = waybar;
};
programs.waybar = {
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 30;
output = [
"eDP-1"
"HDMI-A-1"
];
modules-left = [ "hyprland/workspaces" "hyprland/mode" "wlr/taskbar" ];
modules-center = [ "hyprland/window" "custom/hello-from-waybar" ];
modules-right = [ "mpd" "custom/mymodule#with-css-id" "temperature" ];
layer = "top";
position = "top";
height = 30;
output = [
"eDP-1"
"HDMI-A-1"
];
modules-left = [ "hyprland/workspaces" "hyprland/mode" "wlr/taskbar" ];
modules-center = [ "hyprland/window" "custom/hello-from-waybar" ];
modules-right = [ "mpd" "custom/mymodule#with-css-id" "temperature" ];
"custom/hello-from-waybar" = {
format = "hello {}";
max-length = 40;
interval = "once";
exec = pkgs.writeShellScript "hello-from-waybar" ''
echo "from within waybar"
'';
"custom/hello-from-waybar" = {
format = "hello {}";
max-length = 40;
interval = "once";
exec = pkgs.writeShellScript "hello-from-waybar" ''
echo "from within waybar"
'';
};
};
};
};
@ -149,6 +150,6 @@
chars = "\\u000c";
}
];
}
};
};
}