103 lines
3.2 KiB
Nix
103 lines
3.2 KiB
Nix
{pkgs, ...}: {
|
||
programs.waybar = {
|
||
enable = true;
|
||
package =
|
||
(pkgs.waybar.overrideAttrs (oldAttrs: rec {
|
||
version = "ed0f7453c986a80cdee59c436288084fcc444277";
|
||
src = pkgs.fetchFromGitHub {
|
||
owner = "Alexays";
|
||
repo = "Waybar";
|
||
rev = version;
|
||
hash = "sha256-aVWWfAzf38bDBkFDQoYzB7si9yd2pjVGDeSF4PX8KmM=";
|
||
};
|
||
}))
|
||
.override {
|
||
hyprlandSupport = true;
|
||
swaySupport = false;
|
||
};
|
||
systemd.enable = true;
|
||
style = ./style.css;
|
||
settings = {
|
||
mainBar = {
|
||
layer = "top";
|
||
position = "top";
|
||
height = 28;
|
||
modules-left = ["wlr/workspaces" "hyprland/window" "hyprland/submap"];
|
||
modules-center = [];
|
||
modules-right = ["tray" "idle_inhibitor" "network" "bluetooth" "pulseaudio" "backlight" "battery" "clock"];
|
||
"sway/mode" = {
|
||
"format" = "{}";
|
||
};
|
||
"sway/window" = {
|
||
"tooltip" = false;
|
||
};
|
||
"idle_inhibitor" = {
|
||
"format" = "{icon}";
|
||
"format-icons" = {
|
||
"activated" = "";
|
||
"deactivated" = "";
|
||
};
|
||
"tooltip" = false;
|
||
};
|
||
"clock" = {
|
||
"tooltip" = false;
|
||
"interval" = 1;
|
||
"format" = "{:%H:%M}";
|
||
"format-alt" = "{:%d %B %Y, %A}";
|
||
};
|
||
"backlight" = {
|
||
"format" = "{icon}";
|
||
"format-icons" = ["" "" "" "" "" "" ""];
|
||
};
|
||
"battery" = {
|
||
"states" = {
|
||
"good" = 90;
|
||
"warning" = 20;
|
||
"critical" = 10;
|
||
};
|
||
"format" = "{icon}";
|
||
"format-alt" = "{icon} {capacity}% ({time})";
|
||
"format-charging" = " {capacity}%";
|
||
"format-plugged" = " {capacity}%";
|
||
"format-icons" = ["" "" "" "" "" "" "" "" "" "" ""];
|
||
"tooltip" = false;
|
||
};
|
||
"network" = {
|
||
"format-wifi" = "";
|
||
"format-ethernet" = "";
|
||
"format-linked" = "";
|
||
"format-disconnected" = "";
|
||
"format-alt" = "{ifname}: {ipaddr}/{cidr}";
|
||
"tooltip" = false;
|
||
};
|
||
"pulseaudio" = {
|
||
"tooltip" = false;
|
||
"format" = "{icon} {format_source}";
|
||
"format-muted" = " {format_source}";
|
||
"format-bluetooth" = " {icon} {format_source}";
|
||
"format-bluetooth-muted" = " {format_source}";
|
||
"format-source" = "";
|
||
"format-source-muted" = "";
|
||
"format-icons" = {
|
||
"headphones" = "";
|
||
"headset" = "";
|
||
"car" = "";
|
||
"default" = ["" "" ""];
|
||
};
|
||
"on-click" = "${pkgs.pavucontrol}/bin/pavucontrol";
|
||
};
|
||
"bluetooth" = {
|
||
"format" = "";
|
||
"format-connected" = "";
|
||
"format-disabled" = "";
|
||
"format-off" = "";
|
||
"format-connected-battery" = " {device_battery_percentage}%";
|
||
"on-click" = "${pkgs.blueman}/bin/blueman-manager";
|
||
};
|
||
"tray" = {
|
||
"spacing" = 4;
|
||
};
|
||
};
|
||
};
|
||
};
|
||
}
|