77 lines
1.9 KiB
Nix
77 lines
1.9 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
programs.waybar = {
|
|
enable = true;
|
|
systemd = {
|
|
enable = true;
|
|
};
|
|
style = ./waybarstyle.css;
|
|
settings = {
|
|
mainBar = {
|
|
layer = "top";
|
|
position = "top";
|
|
height = 30;
|
|
spacing = 20;
|
|
modules-left = [ "sway/workspaces" ];
|
|
modules-right = [ "disk" "pulseaudio" "cpu" "network#eth" "network#wireless" "battery" "temperature" "clock" "tray" ];
|
|
|
|
"tray" = {
|
|
spacing = 10;
|
|
icon-size = 20;
|
|
};
|
|
|
|
"pulseaudio" =
|
|
{
|
|
on-click = "wpctl set-mute @DEFAULT_SINK@ toggle";
|
|
format = "{volume}%";
|
|
format-muted = "muted";
|
|
};
|
|
|
|
"sway/workspaces" = {
|
|
all-outputs = true;
|
|
};
|
|
|
|
"clock" = {
|
|
interval = 1;
|
|
format = "{:%H:%M}";
|
|
format-alt = "{:%d.%m.%Y %H:%M:%S}";
|
|
};
|
|
|
|
"battery" = {
|
|
format = "BAT: {capacity}%";
|
|
bat = "BAT0";
|
|
full-at = "94";
|
|
};
|
|
|
|
"temperature" = {
|
|
thermal-zone = 0;
|
|
critical-threshold = 70;
|
|
format = "{temperatureC}°C";
|
|
interval = 2;
|
|
hwmon-path-abs = "/sys/devices/platform/coretemp.0/hwmon";
|
|
input-filename = "temp1_input";
|
|
};
|
|
|
|
"network#eth" = {
|
|
interval = 5;
|
|
interface = "enp12s0";
|
|
format = "{ipaddr}";
|
|
format-disconnected = "disconnected";
|
|
};
|
|
"network#wireless" = {
|
|
interval = 5;
|
|
interface = "wlp82s0";
|
|
format = "{ipaddr}@{essid} ({signalStrength}%)";
|
|
format-disconnected = "disconnected";
|
|
};
|
|
|
|
"disk" = {
|
|
interval = 30;
|
|
path = "/";
|
|
tooltip-format = "\"{path}\": {used}/{total} ({percentage_used}%)";
|
|
format = "\"{path}\": {percentage_used}%";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|