system/pkgs/wm/waybar/waybar.nix

58 lines
1.7 KiB
Nix
Raw Normal View History

2024-10-14 17:28:31 -04:00
{ pkgs, config, ... }:
{
programs.waybar = {
enable= true;
settings = {
mainBar = {
stylesheet = "${config.home.homeDirectory}/.config/waybar/style.css";
layer = "top";
position = "top";
height = 58;
2024-11-01 12:04:24 -04:00
spacing = 0;
2024-10-14 17:28:31 -04:00
fixed-center = true;
margin-left = 8;
2024-11-01 12:04:24 -04:00
margin-right = 25;
padding-right = 25;
2024-10-14 17:28:31 -04:00
output = [
2024-11-01 12:04:24 -04:00
"DP-5"
2024-10-14 17:28:31 -04:00
];
2024-11-01 12:04:24 -04:00
include = "~/system/pkgs/wm/waybar/default.json";
2024-10-14 17:28:31 -04:00
modules-left = [ "custom/os_button" "hyprland/workspaces#roman" ];
2024-11-01 12:04:24 -04:00
modules-center = [ "hyprland/window" "wlr/taskbar" ]; # replace wlr/taskbar
2024-10-14 17:28:31 -04:00
modules-right = [ "cpu" "temperature" "disk" "tray" "clock" "custom/exit" ];
"custom/os_button" = {
"format" = "";
"on-click" = "rofi -show drun -modi drun,filebrowser,run,window,ssh";
"tooltip" = false;
};
};
leftBar = {
stylesheet = "${config.home.homeDirectory}/.config/waybar/style.css";
layer = "top";
position = "bottom";
height = 39;
output = "DP-3";
2024-11-01 12:04:24 -04:00
spacing = 0;
2024-10-14 17:28:31 -04:00
fixed-center = true;
margin-left = 8;
margin-right = 8;
2024-11-01 12:04:24 -04:00
include = "~/system/pkgs/wm/waybar/default.json";
2024-10-14 17:28:31 -04:00
modules-left = [ "memory" "hyprland/workspaces#roman" ];
modules-center = [ "wlr/taskbar" ];
modules-right = [ ];
};
rightBar = {
layer = "top";
position = "bottom";
height = 47;
2024-11-01 12:04:24 -04:00
output = "DP-6";
include = "~/system/pkgs/wm/waybar/default.json";
2024-10-14 17:28:31 -04:00
modules-left = [ ];
modules-center = [ "wlr/taskbar" ];
modules-right = [ "hyprland/workspaces#roman" "network" ];
};
};
};
}