liminalOS/users/youwen/linux/waybar/laptop/default.nix

141 lines
3.4 KiB
Nix
Raw Normal View History

{
2024-08-26 03:39:41 -07:00
# home.file.".config/waybar/config".source = ./config.jsonc;
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;
modules-left = ["hyprland/workspaces" "hyprland/window"];
modules-right = [
"tray"
"idle_inhibitor"
"backlight"
"wireplumber"
"network"
"battery"
"disk"
"memory"
"cpu"
"temperature"
"clock"
];
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}%";
on-scroll-up = "brightnessctl set +4";
on-scroll-down = "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";
on-scroll-up = "pamixer set 5%+";
on-scroll-down = "pamixer set 5%-";
format-icons = ["" "" "" "" ""];
};
battery = {
interval = 10;
format = "{icon} {capacity}%";
format-icons = ["󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"];
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
"hyprland/workspaces" = {
show-special = true;
persistent-workspaces = {
"*" = [1 2 3 4 5 6 7 8 9 10];
};
format = "{icon}";
format-icons = {
active = "";
empty = "";
default = "";
urgent = "";
special = "󰠱";
2024-08-07 07:19:01 -07:00
};
};
2024-08-26 03:39:41 -07:00
"hyprland/window" = {
icon = true;
icon-size = 20;
max-length = 50;
rewrite = {
"(.*) LibreWolf" = "$1";
"^$" = "👾";
};
2024-08-07 07:19:01 -07:00
};
};
};
};
}