configuration.nix/home/wm/addon/waybar/default.nix

80 lines
2.3 KiB
Nix
Raw Normal View History

2023-06-10 14:07:42 +05:30
{pkgs, ...}: {
2023-04-07 21:01:48 +05:30
programs.waybar = {
enable = true;
2023-08-27 12:49:39 +05:30
package = pkgs.waybar.override {
hyprlandSupport = true;
swaySupport = false;
};
2023-04-07 21:01:48 +05:30
systemd.enable = true;
style = ./style.css;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 28;
modules-left = ["hyprland/workspaces" "hyprland/window" "hyprland/submap"];
2023-05-18 16:11:26 +05:30
modules-center = [];
2023-10-19 19:53:51 +05:30
modules-right = ["tray" "idle_inhibitor" "network" "bluetooth" "wireplumber" "backlight" "battery" "clock"];
2023-09-09 22:17:45 +05:30
idle_inhibitor = {
format = "{icon}";
format-icons = {
activated = "󰈈";
deactivated = "󰈉";
2023-04-07 21:01:48 +05:30
};
2023-09-09 22:17:45 +05:30
tooltip = false;
2023-04-07 21:01:48 +05:30
};
2023-09-09 22:17:45 +05:30
clock = {
tooltip = false;
interval = 1;
format = "{:%H:%M}";
format-alt = "{:%d %B %Y, %A}";
2023-04-07 21:01:48 +05:30
};
2023-09-09 22:17:45 +05:30
backlight = {
format = "{icon}";
format-icons = ["󰃚" "󰃛" "󰃜" "󰃝" "󰃞" "󰃟" "󰃠"];
2023-09-28 21:03:52 +05:30
tooltip = false;
2023-04-07 21:01:48 +05:30
};
2023-09-09 22:17:45 +05:30
battery = {
states = {
good = 90;
warning = 20;
critical = 10;
2023-04-07 21:01:48 +05:30
};
2023-09-09 22:17:45 +05:30
format = "{icon}";
format-alt = "{icon} {capacity}% ({time})";
format-charging = "󰂄 {capacity}%";
format-plugged = "󰚥 {capacity}%";
format-icons = ["󰂃" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"];
tooltip = false;
2023-04-07 21:01:48 +05:30
};
2023-09-09 22:17:45 +05:30
network = {
format-wifi = "󰖩";
format-ethernet = "󰈀";
format-linked = "󰌷";
format-disconnected = "󰖪";
format-alt = "{ifname}: {ipaddr}/{cidr}";
tooltip = false;
2023-04-07 21:01:48 +05:30
};
2023-10-19 19:53:51 +05:30
wireplumber = {
format = "{icon}";
format-muted = "󰝟";
2023-09-09 22:17:45 +05:30
on-click = "${pkgs.pavucontrol}/bin/pavucontrol";
2023-10-28 03:55:43 +05:30
format-icons = ["󰕿" "󰖀" "󰕾"];
2023-10-19 22:37:16 +05:30
tooltip = false;
2023-04-07 21:01:48 +05:30
};
2023-09-09 22:17:45 +05:30
bluetooth = {
format = "󰂯";
format-connected = "󰂱";
format-disabled = "󰂲";
format-off = "󰂲";
format-connected-battery = "󰂱 {device_battery_percentage}%";
on-click = "${pkgs.blueman}/bin/blueman-manager";
2023-04-07 21:01:48 +05:30
};
2023-09-09 22:17:45 +05:30
tray = {
spacing = 4;
2023-03-15 22:11:59 +05:30
};
};
};
};
}