mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-04 23:02:48 +00:00
feat: integrate system config
This commit is contained in:
43
home/desktops/hyprland/waybar.nix
Normal file
43
home/desktops/hyprland/waybar.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
enable = true;
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 48;
|
||||
output = "HDMI-A-1";
|
||||
modules-left = ["wlr/workspaces"];
|
||||
modules-center = ["wlr/taskbar"];
|
||||
modules-right = ["custom/weather" "clock"];
|
||||
|
||||
"wlr/taskbar" = {
|
||||
all-outputs = true;
|
||||
format = "{icon}";
|
||||
icon-size = 32;
|
||||
on-click = "activate";
|
||||
};
|
||||
|
||||
"custom/weather" = {
|
||||
format = "{}";
|
||||
tooltip = true;
|
||||
interval = 3600;
|
||||
exec = "wttrbar --location Berlin";
|
||||
return-type = "json";
|
||||
};
|
||||
|
||||
"wlr/workspaces" = {
|
||||
all-outputs = true;
|
||||
format = "<sub>{icon}</sub>\n{windows}";
|
||||
format-window-separator = "\n";
|
||||
window-rewrite = {
|
||||
"(.*) — Mozilla Firefox" = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
style = ''
|
||||
window#waybar {
|
||||
background: black;
|
||||
}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user