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

172 lines
3.8 KiB
Nix
Raw Normal View History

{
2024-08-26 02:50:31 -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 02:50:31 -07:00
style = ./style.css;
systemd.enable = true;
2024-08-07 07:19:01 -07:00
settings = {
mainBar = {
2024-08-26 02:50:31 -07:00
name = "bar0";
2024-08-07 07:19:01 -07:00
layer = "top";
position = "top";
2024-08-26 02:50:31 -07:00
2024-08-26 02:57:20 -07:00
height = 28;
2024-08-26 02:50:31 -07:00
# "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" ];
modules-center = [ "hyprland/window" ];
2024-08-26 02:50:31 -07:00
modules-right = [
"tray"
"idle_inhibitor"
"backlight"
"wireplumber"
2024-08-26 03:40:34 -07:00
"network"
2024-08-26 02:50:31 -07:00
"battery"
"disk"
"memory"
"cpu"
"temperature"
"clock"
];
idle_inhibitor = {
2024-08-07 07:19:01 -07:00
format = "{icon}";
2024-08-26 02:50:31 -07:00
format-icons = {
activated = "󰛊 ";
deactivated = "󰾫 ";
2024-08-07 07:19:01 -07:00
};
};
2024-08-26 02:50:31 -07:00
2024-08-26 03:40:34 -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-26 02:50:31 -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 02:50:31 -07:00
wireplumber = {
format = "{icon} {volume}%";
format-muted = "󰝟 ";
on-click = "pamixer -t";
on-scroll-up = "pamixer set 5%+";
on-scroll-down = "pamixer set 5%-";
2024-09-02 18:16:22 -07:00
format-icons = [
""
""
""
""
""
];
2024-08-07 07:19:01 -07:00
};
2024-08-26 02:50:31 -07:00
battery = {
interval = 10;
format = "{icon}{capacity}%";
2024-09-02 18:16:22 -07:00
format-icons = [
"󰂎"
"󰁺"
"󰁻"
"󰁼"
"󰁽"
"󰁾"
"󰁿"
"󰂀"
"󰂁"
"󰂂"
"󰁹"
];
2024-08-26 02:50:31 -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 02:50:31 -07:00
format = " {used}";
tooltip-format = "{used}GiB used of {total}GiB ({percentage}%)";
2024-08-07 07:19:01 -07:00
};
2024-08-26 02:50:31 -07:00
2024-08-07 07:19:01 -07:00
cpu = {
interval = 10;
2024-08-26 02:50:31 -07:00
format = " {usage}%";
2024-08-07 07:19:01 -07:00
};
2024-08-26 02:50:31 -07:00
temperature = {
2024-08-07 07:19:01 -07:00
interval = 10;
};
2024-08-26 02:50:31 -07:00
clock = {
interval = 1;
format = "{:%H:%M:%S}";
2024-08-07 07:19:01 -07:00
};
2024-08-26 02:50:31 -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 02:50:31 -07:00
};
format = "{icon}";
format-icons = {
active = "";
empty = "";
default = "";
urgent = "";
special = "󰠱";
2024-08-07 07:19:01 -07:00
};
};
2024-08-26 02:50:31 -07:00
"hyprland/window" = {
icon = true;
icon-size = 20;
max-length = 50;
rewrite = {
"(.*) Ablaze Floorp" = "$1";
2024-08-26 17:30:05 -07:00
"(.*) Zen Browser" = "$1";
2024-08-26 02:50:31 -07:00
"^$" = "👾";
};
2024-08-07 07:19:01 -07:00
};
};
};
};
}