nix-conf/home/config/waybar/config.nix
2025-08-09 22:22:19 +08:00

173 lines
2.9 KiB
Nix

{
terminal,
osConfig,
wallRand,
rofiWall,
pkgs,
lib,
}:
let
modulesConfig = import ./modules.nix {
inherit
terminal
osConfig
wallRand
rofiWall
pkgs
lib
;
};
in
map (dev: dev // modulesConfig) [
# Monitor 1
{
output = "DP-5";
layer = "top";
exclusive = true;
passthrough = false;
position = "top";
fixed-center = true;
ipc = true;
margin-top = 0;
margin-left = 0;
margin-right = 0;
margin-bottom = 0;
modules-left = [
"custom/os"
"hyprland/workspaces"
"clock"
"custom/cava"
"mpris"
];
modules-center = [
"hyprland/window"
];
modules-right = (
[
"wlr/taskbar"
]
++ (
if osConfig.programs.gamemode.enable then
[
"custom/gamemode"
]
else
[ ]
)
++ [
"custom/airplay"
"custom/wallRand"
"custom/wireguard"
"idle_inhibitor"
"network"
"cpu"
"memory"
"pulseaudio"
"custom/swaync"
]
);
}
# Monitor 2
{
output = "DP-6";
layer = "top";
exclusive = true;
height = 54;
passthrough = false;
position = "top";
fixed-center = true;
ipc = true;
margin-top = 0;
margin-left = 0;
margin-right = 0;
margin-bottom = 0;
modules-left = [
"clock"
"mpris"
];
modules-center = [
"hyprland/window"
];
modules-right = [
"wlr/taskbar"
"temperature"
"cpu"
"memory"
"pulseaudio"
];
}
# Lap
{
output = "eDP-1";
layer = "top";
exclusive = true;
passthrough = false;
position = "top";
fixed-center = true;
ipc = true;
margin-top = 0;
margin-left = 0;
margin-right = 0;
margin-bottom = 0;
modules-left = [
"custom/os"
"hyprland/workspaces"
"clock"
"mpris"
];
modules-center = [
"hyprland/window"
];
modules-right = [
"wlr/taskbar"
"temperature"
"custom/wallRand"
"custom/wireguard"
"idle_inhibitor"
"network"
"pulseaudio"
"battery"
"custom/swaync"
];
}
# Other
{
output = [
"!eDP-1"
"!DP-1"
"!DP-3"
];
layer = "top";
exclusive = true;
passthrough = false;
position = "top";
fixed-center = true;
ipc = true;
margin-top = 0;
margin-left = 0;
margin-right = 0;
margin-bottom = 0;
modules-left = [
"custom/os"
"hyprland/workspaces"
"clock"
"mpris"
"custom/cava"
];
modules-center = [
"hyprland/window"
];
modules-right = [
"wlr/taskbar"
"temperature"
"custom/wireguard"
"idle_inhibitor"
"network"
"cpu"
"memory"
"pulseaudio"
"battery"
"custom/swaync"
];
}
]