2024-11-21 08:49:45 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
2024-12-19 17:59:03 +00:00
|
|
|
}: {
|
2024-11-21 08:49:45 +00:00
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
|
|
|
systemd.enable = true;
|
|
|
|
settings = {
|
2024-12-19 17:59:03 +00:00
|
|
|
mainBar = {
|
|
|
|
layer = "top";
|
|
|
|
position = "top";
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
modules-left = [
|
|
|
|
"hyprland/window"
|
|
|
|
"pulseaudio"
|
|
|
|
"cpu"
|
|
|
|
"memory"
|
|
|
|
"idle_inhibitor"
|
|
|
|
];
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
modules-center = ["hyprland/workspaces"];
|
|
|
|
modules-right = [
|
|
|
|
"custom/swaync"
|
|
|
|
"custom/power"
|
|
|
|
"network"
|
|
|
|
"battery"
|
|
|
|
"tray"
|
|
|
|
"clock"
|
|
|
|
];
|
2024-11-29 14:02:51 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
tray = {
|
|
|
|
icon-size = 16;
|
|
|
|
spacing = 12;
|
|
|
|
};
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
battery = {
|
|
|
|
interval = 10;
|
|
|
|
states = {
|
|
|
|
warning = 30;
|
|
|
|
critical = 15;
|
2024-11-21 08:49:45 +00:00
|
|
|
};
|
2024-12-19 17:59:03 +00:00
|
|
|
format = "{icon} {capacity}%";
|
|
|
|
format-charging = " {capacity}% - {time}";
|
|
|
|
format-full = " {capacity}% - Full";
|
|
|
|
format-icons = [
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
];
|
|
|
|
max-length = 25;
|
|
|
|
};
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
"pulseaudio" = {
|
|
|
|
format = "{icon} {volume}%";
|
|
|
|
format-bluetooth = "{icon} {volume}%";
|
2024-12-20 11:44:46 +00:00
|
|
|
format-muted = "";
|
2024-12-19 17:59:03 +00:00
|
|
|
format-icons = {
|
|
|
|
"alsa_output.pci-0000_00_1f.3.analog-stereo" = "";
|
|
|
|
"alsa_output.pci-0000_00_1f.3.analog-stereo-muted" = "";
|
|
|
|
headphone = "";
|
|
|
|
hands-free = "";
|
|
|
|
headset = "";
|
|
|
|
phone = "";
|
|
|
|
phone-muted = "";
|
|
|
|
portable = "";
|
|
|
|
car = "";
|
|
|
|
default = [
|
|
|
|
""
|
|
|
|
""
|
2024-11-21 08:49:45 +00:00
|
|
|
];
|
|
|
|
};
|
2024-12-19 17:59:03 +00:00
|
|
|
scroll-step = 1;
|
|
|
|
on-click = "pavucontrol";
|
|
|
|
ignored-sinks = [
|
|
|
|
"Easy Effects Sink"
|
|
|
|
];
|
|
|
|
};
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
"power-profiles-daemon" = {
|
|
|
|
format-icons = {
|
|
|
|
default = "";
|
|
|
|
performance = "";
|
|
|
|
balanced = "";
|
|
|
|
power-saver = "";
|
2024-11-21 08:49:45 +00:00
|
|
|
};
|
2024-12-19 17:59:03 +00:00
|
|
|
};
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
"custom/power" = {
|
|
|
|
format = "";
|
|
|
|
tooltip = false;
|
|
|
|
on-click = lib.getExe pkgs.wlogout;
|
|
|
|
};
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
"memory" = {
|
|
|
|
interval = 5;
|
2024-12-19 19:51:51 +00:00
|
|
|
format = " {}%";
|
2024-12-19 17:59:03 +00:00
|
|
|
tooltip = true;
|
|
|
|
};
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
"cpu" = {
|
|
|
|
interval = 5;
|
2024-12-19 19:51:51 +00:00
|
|
|
format = " {usage:2}%";
|
2024-12-19 17:59:03 +00:00
|
|
|
tooltip = true;
|
|
|
|
};
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
"idle_inhibitor" = {
|
|
|
|
format = "{icon}";
|
|
|
|
format-icons = {
|
|
|
|
activated = "";
|
|
|
|
deactivated = "";
|
2024-11-26 14:47:10 +00:00
|
|
|
};
|
2024-12-19 17:59:03 +00:00
|
|
|
tooltip = "true";
|
|
|
|
};
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
"clock" = {
|
|
|
|
format = " {:L%H:%M}";
|
|
|
|
tooltip = true;
|
|
|
|
tooltip-format = "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>";
|
|
|
|
};
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
"network" = {
|
|
|
|
format-icons = [
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
];
|
|
|
|
format-ethernet = " {bandwidthDownOctets}";
|
|
|
|
format-wifi = "{icon} {signalStrength}%";
|
|
|
|
format-disconnected = "";
|
|
|
|
tooltip = false;
|
2024-12-20 13:14:50 +00:00
|
|
|
on-click = "XDG_CURRENT_DESKTOP=gnome gnome-control-center";
|
2024-12-19 17:59:03 +00:00
|
|
|
};
|
2024-11-21 08:49:45 +00:00
|
|
|
|
2024-12-19 17:59:03 +00:00
|
|
|
"hyprland/window" = {
|
|
|
|
max-length = 22;
|
|
|
|
separate-outputs = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
"hyprland/workspaces" = {
|
|
|
|
format = "{name}";
|
|
|
|
format-icons = {
|
|
|
|
default = " ";
|
|
|
|
active = " ";
|
|
|
|
urgent = " ";
|
2024-11-26 14:47:10 +00:00
|
|
|
};
|
2024-12-19 17:59:03 +00:00
|
|
|
on-scroll-up = "hyprctl dispatch workspace e+1";
|
|
|
|
on-scroll-down = "hyprctl dispatch workspace e-1";
|
|
|
|
};
|
|
|
|
|
|
|
|
"custom/swaync" = {
|
|
|
|
tooltip = false;
|
|
|
|
format = "<big>{icon}</big>";
|
|
|
|
format-icons = {
|
2024-12-20 11:44:46 +00:00
|
|
|
none = "";
|
2024-12-19 17:59:03 +00:00
|
|
|
notification = "<span foreground='red'><sup></sup></span>";
|
|
|
|
dnd-notification = "<span foreground='red'><sup></sup></span>";
|
|
|
|
dnd-none = "";
|
|
|
|
inhibited-notification = "<span foreground='red'><sup></sup></span>";
|
|
|
|
inhibited-none = "";
|
|
|
|
dnd-inhibited-notification = "<span foreground='red'><sup></sup></span>";
|
|
|
|
dnd-inhibited-none = "";
|
2024-11-26 14:47:10 +00:00
|
|
|
};
|
2024-12-19 17:59:03 +00:00
|
|
|
return-type = "json";
|
|
|
|
escape = true;
|
|
|
|
exec-if = "which ${pkgs.swaynotificationcenter}/bin/swaync-client";
|
|
|
|
exec = "${pkgs.swaynotificationcenter}/bin/swaync-client --subscribe-waybar";
|
|
|
|
on-click = "${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-panel --skip-wait";
|
|
|
|
on-click-middle = "${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-dnd --skip-wait";
|
|
|
|
};
|
|
|
|
};
|
2024-11-21 08:49:45 +00:00
|
|
|
};
|
|
|
|
};
|
2024-12-27 10:47:48 +00:00
|
|
|
|
|
|
|
systemd.user.services.waybar = {
|
|
|
|
Unit.After = lib.mkForce "graphical-session.target";
|
|
|
|
Service.Slice = "app-graphical.slice";
|
|
|
|
};
|
|
|
|
|
2024-11-21 08:49:45 +00:00
|
|
|
home.packages = [
|
|
|
|
pkgs.pavucontrol
|
|
|
|
];
|
|
|
|
}
|