2024-09-18 02:13:19 -07:00
|
|
|
{ pkgs, ... }:
|
2024-08-07 06:05:42 -07:00
|
|
|
{
|
2024-11-03 23:44:41 -08:00
|
|
|
imports = [ ./swaync.nix ];
|
2024-08-07 07:19:01 -07:00
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
2024-08-26 03:39:41 -07:00
|
|
|
style = ./style.css;
|
|
|
|
systemd.enable = true;
|
2024-08-07 07:19:01 -07:00
|
|
|
settings = {
|
|
|
|
mainBar = {
|
2024-08-26 03:39:41 -07:00
|
|
|
name = "bar0";
|
|
|
|
|
2024-08-07 07:19:01 -07:00
|
|
|
layer = "top";
|
|
|
|
position = "top";
|
2024-08-26 03:39:41 -07:00
|
|
|
|
|
|
|
height = 28;
|
|
|
|
# "width" = 1920;
|
|
|
|
|
|
|
|
"margin" = "5px 10px 0px 10px";
|
|
|
|
"spacing" = 10;
|
|
|
|
|
|
|
|
"mode" = "top";
|
|
|
|
# "exclusive" = true;
|
|
|
|
|
|
|
|
# "output" = "eDP-1";
|
|
|
|
|
|
|
|
reload_style_on_change = true;
|
|
|
|
|
2024-09-02 18:16:22 -07:00
|
|
|
modules-left = [
|
|
|
|
"hyprland/workspaces"
|
|
|
|
"hyprland/window"
|
|
|
|
];
|
2024-08-26 03:39:41 -07:00
|
|
|
modules-right = [
|
|
|
|
"tray"
|
|
|
|
"idle_inhibitor"
|
|
|
|
"backlight"
|
|
|
|
"wireplumber"
|
|
|
|
"network"
|
|
|
|
"battery"
|
|
|
|
"disk"
|
|
|
|
"memory"
|
|
|
|
"cpu"
|
|
|
|
"temperature"
|
|
|
|
"clock"
|
2024-11-03 23:44:41 -08:00
|
|
|
"custom/notification"
|
2024-08-26 03:39:41 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
idle_inhibitor = {
|
2024-08-07 07:19:01 -07:00
|
|
|
format = "{icon}";
|
2024-08-26 03:39:41 -07:00
|
|
|
format-icons = {
|
|
|
|
activated = " ";
|
|
|
|
deactivated = " ";
|
2024-08-07 07:19:01 -07:00
|
|
|
};
|
|
|
|
};
|
2024-08-26 03:39:41 -07:00
|
|
|
|
|
|
|
network = {
|
|
|
|
format = "{ifname}";
|
|
|
|
format-wifi = "{icon}{essid}";
|
|
|
|
format-ethernet = " {essid}";
|
|
|
|
format-disconnected = " Disconnected";
|
|
|
|
format-icons = [
|
|
|
|
" "
|
|
|
|
" "
|
|
|
|
" "
|
|
|
|
];
|
|
|
|
tooltip-format = " {bandwidthUpBits} | {bandwidthDownBits}";
|
|
|
|
tooltip-format-wifi = " {bandwidthUpBits} | {bandwidthDownBits} | {signalStrength}";
|
2024-08-07 07:19:01 -07:00
|
|
|
};
|
2024-08-26 03:39:41 -07:00
|
|
|
|
|
|
|
backlight = {
|
|
|
|
interval = 2;
|
|
|
|
format = " {percent}%";
|
2024-09-18 02:13:19 -07:00
|
|
|
on-scroll-up = "${pkgs.brightnessctl}/bin/brightnessctl set +4";
|
|
|
|
on-scroll-down = "${pkgs.brightnessctl}/bin/brightnessctl set 4-";
|
2024-08-07 07:19:01 -07:00
|
|
|
};
|
2024-08-26 03:39:41 -07:00
|
|
|
|
|
|
|
wireplumber = {
|
|
|
|
format = "{icon} {volume}%";
|
|
|
|
format-muted = " ";
|
|
|
|
on-click = "pamixer -t";
|
2024-09-18 02:13:19 -07:00
|
|
|
on-scroll-up = "${pkgs.pamixer}/bin/pamixer set 5%+";
|
|
|
|
on-scroll-down = "${pkgs.pamixer}/bin/pamixer set 5%-";
|
2024-09-02 18:16:22 -07:00
|
|
|
format-icons = [
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
];
|
2024-08-26 03:39:41 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
battery = {
|
|
|
|
interval = 10;
|
|
|
|
format = "{icon} {capacity}%";
|
2024-09-02 18:16:22 -07:00
|
|
|
format-icons = [
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
""
|
|
|
|
];
|
2024-08-26 03:39:41 -07:00
|
|
|
tooltip = true;
|
|
|
|
tooltip-format = "{timeTo}";
|
|
|
|
};
|
|
|
|
|
|
|
|
disk = {
|
|
|
|
intervel = 30;
|
|
|
|
format = " {percentage_used}%";
|
|
|
|
tooltip-format = "{used} used out of {total} on \"{path}\" ({percentage_used}%)";
|
|
|
|
};
|
|
|
|
|
|
|
|
memory = {
|
2024-08-07 07:19:01 -07:00
|
|
|
interval = 10;
|
2024-08-26 03:39:41 -07:00
|
|
|
format = " {used}";
|
|
|
|
tooltip-format = "{used}GiB used of {total}GiB ({percentage}%)";
|
2024-08-07 07:19:01 -07:00
|
|
|
};
|
2024-08-26 03:39:41 -07:00
|
|
|
|
2024-08-07 07:19:01 -07:00
|
|
|
cpu = {
|
|
|
|
interval = 10;
|
2024-08-26 03:39:41 -07:00
|
|
|
format = " {usage}%";
|
2024-08-07 07:19:01 -07:00
|
|
|
};
|
2024-08-26 03:39:41 -07:00
|
|
|
|
|
|
|
temperature = {
|
2024-08-07 07:19:01 -07:00
|
|
|
interval = 10;
|
|
|
|
};
|
2024-08-26 03:39:41 -07:00
|
|
|
|
|
|
|
clock = {
|
|
|
|
interval = 1;
|
|
|
|
format = "{:%H:%M:%S}";
|
2024-08-07 07:19:01 -07:00
|
|
|
};
|
2024-08-26 03:39:41 -07:00
|
|
|
|
2024-11-03 23:44:41 -08:00
|
|
|
"custom/notification" = {
|
|
|
|
tooltip = false;
|
|
|
|
format = "{icon}";
|
|
|
|
format-icons = {
|
|
|
|
notification = "<span foreground='red'><small><sup>⬤</sup></small></span>";
|
|
|
|
none = " ";
|
|
|
|
dnd-notification = "<span foreground='red'><small><sup>⬤</sup></small></span>";
|
|
|
|
dnd-none = " ";
|
|
|
|
};
|
|
|
|
return-type = "json";
|
|
|
|
exec = "${pkgs.swaynotificationcenter}/bin/swaync-client -swb";
|
|
|
|
on-click = "sleep 0.1 && ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw";
|
|
|
|
on-click-right = "sleep 0.1 && ${pkgs.swaynotificationcenter}/bin/swaync-client -d -sw";
|
|
|
|
escape = true;
|
|
|
|
};
|
|
|
|
|
2024-08-26 03:39:41 -07:00
|
|
|
"hyprland/workspaces" = {
|
|
|
|
show-special = true;
|
|
|
|
persistent-workspaces = {
|
2024-09-02 18:16:22 -07:00
|
|
|
"*" = [
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
4
|
|
|
|
5
|
|
|
|
6
|
|
|
|
7
|
|
|
|
8
|
|
|
|
9
|
|
|
|
10
|
|
|
|
];
|
2024-08-26 03:39:41 -07:00
|
|
|
};
|
|
|
|
format = "{icon}";
|
|
|
|
format-icons = {
|
|
|
|
active = "";
|
|
|
|
empty = "";
|
|
|
|
default = "";
|
|
|
|
urgent = "";
|
|
|
|
special = "";
|
2024-08-07 07:19:01 -07:00
|
|
|
};
|
|
|
|
};
|
2024-11-03 23:44:41 -08:00
|
|
|
|
2024-08-26 03:39:41 -07:00
|
|
|
"hyprland/window" = {
|
|
|
|
icon = true;
|
|
|
|
icon-size = 20;
|
|
|
|
max-length = 50;
|
|
|
|
rewrite = {
|
|
|
|
"(.*) — LibreWolf" = "$1";
|
2024-08-26 17:30:05 -07:00
|
|
|
"(.*) — Zen Browser" = "$1";
|
2024-08-26 03:39:41 -07:00
|
|
|
"^$" = "👾";
|
|
|
|
};
|
2024-08-07 07:19:01 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-08-07 06:05:42 -07:00
|
|
|
}
|