2022-06-12 15:39:15 +00:00
|
|
|
{pkgs, ...}: {
|
2022-01-18 15:55:32 +00:00
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
2022-01-19 16:47:09 +00:00
|
|
|
settings = {
|
2022-01-19 16:50:13 +00:00
|
|
|
main_bar = {
|
|
|
|
spacing = 4;
|
|
|
|
modules-left = [
|
|
|
|
"sway/workspaces"
|
|
|
|
"sway/mode"
|
|
|
|
];
|
|
|
|
modules-center = [
|
|
|
|
"sway/window"
|
|
|
|
];
|
|
|
|
modules-right = [
|
|
|
|
"mpd"
|
|
|
|
"idle_inhibitor"
|
|
|
|
"pulseaudio"
|
|
|
|
"network"
|
|
|
|
"cpu"
|
|
|
|
"memory"
|
|
|
|
"temperature"
|
|
|
|
"backlight"
|
|
|
|
"keyboard-state"
|
2022-01-20 07:10:35 +00:00
|
|
|
# "sway/language"
|
2022-01-19 16:50:13 +00:00
|
|
|
"battery"
|
|
|
|
"battery#bat2"
|
|
|
|
"clock"
|
|
|
|
"tray"
|
|
|
|
];
|
|
|
|
keyboard-state = {
|
|
|
|
numlock = true;
|
|
|
|
capslock = true;
|
|
|
|
format = "{name} {icon}";
|
2022-01-19 16:47:09 +00:00
|
|
|
};
|
2022-01-19 16:50:13 +00:00
|
|
|
"sway/mode" = {
|
|
|
|
format = "<span style=\"italic\">{}<span>";
|
2022-01-19 16:47:09 +00:00
|
|
|
};
|
2022-01-19 16:50:13 +00:00
|
|
|
mpd = {
|
|
|
|
format = "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ";
|
|
|
|
format-disconnected = "Disconnected ";
|
|
|
|
format-stopped = "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ";
|
|
|
|
unknown-tag = "N/A";
|
|
|
|
interval = 2;
|
|
|
|
consume-icons = {
|
|
|
|
on = " ";
|
|
|
|
};
|
|
|
|
random-icons = {
|
|
|
|
off = "<span color=\"#f53c3c\"></span> ";
|
|
|
|
on = " ";
|
|
|
|
};
|
|
|
|
repeat-icons = {
|
|
|
|
on = " ";
|
|
|
|
};
|
|
|
|
single-icons = {
|
|
|
|
on = "1 ";
|
|
|
|
};
|
|
|
|
state-icons = {
|
|
|
|
paused = "";
|
|
|
|
playing = "";
|
|
|
|
};
|
|
|
|
tooltip-format = "MPD (connected)";
|
|
|
|
tooltip-format-disconnected = "MPD (disconnected)";
|
2022-01-19 16:47:09 +00:00
|
|
|
};
|
2022-01-19 16:50:13 +00:00
|
|
|
idle_inhibitor = {
|
|
|
|
format = "{icon}";
|
|
|
|
format-icons = {
|
|
|
|
activated = "";
|
|
|
|
deactivated = "";
|
|
|
|
};
|
2022-01-19 16:47:09 +00:00
|
|
|
};
|
2022-01-19 16:50:13 +00:00
|
|
|
tray = {
|
|
|
|
spacing = 10;
|
2022-01-19 16:47:09 +00:00
|
|
|
};
|
2022-01-19 16:50:13 +00:00
|
|
|
clock = {
|
|
|
|
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
|
|
|
format = "{:%Y-%m-%dT%H:%M:%S+01:00}";
|
2022-01-19 16:47:09 +00:00
|
|
|
};
|
2022-01-19 16:50:13 +00:00
|
|
|
cpu = {
|
|
|
|
format = "{usage}% ";
|
|
|
|
tooltip = false;
|
2022-01-19 16:47:09 +00:00
|
|
|
};
|
2022-01-19 16:50:13 +00:00
|
|
|
memory = {
|
|
|
|
format = "{}% ";
|
|
|
|
};
|
|
|
|
temperature = {
|
|
|
|
critical-threshold = 80;
|
|
|
|
format = "{temperatureC}℃ {icon}";
|
2022-06-12 15:39:15 +00:00
|
|
|
format-icons = ["" "" ""];
|
2022-01-19 16:50:13 +00:00
|
|
|
};
|
|
|
|
backlight = {
|
|
|
|
format = "{percent}% {icon}";
|
2022-06-12 15:39:15 +00:00
|
|
|
format-icons = ["" ""];
|
2022-01-19 16:50:13 +00:00
|
|
|
};
|
|
|
|
battery = {
|
|
|
|
states = {
|
|
|
|
warning = 30;
|
|
|
|
critical = 15;
|
|
|
|
};
|
|
|
|
format = "{capacity}% {icon}";
|
|
|
|
format-charging = "{capacity}% ";
|
|
|
|
format-plugged = "{capacity}% ";
|
|
|
|
format-alt = "{time} {icon}";
|
2022-06-12 15:39:15 +00:00
|
|
|
format-icons = ["" "" "" "" ""];
|
2022-01-19 16:50:13 +00:00
|
|
|
};
|
|
|
|
"battery#bat2" = {
|
|
|
|
bat = "BAT2";
|
|
|
|
};
|
|
|
|
network = {
|
|
|
|
format-wifi = "{essid} ({signalStrength}%) ";
|
|
|
|
format-ethernet = "{ipaddr}/{cidr} ";
|
|
|
|
tooltip-format = "{ifname} via {gwaddr} ";
|
|
|
|
format-linked = "{ifname} (No IP) ";
|
|
|
|
format-disconnected = "Disconnected ⚠";
|
|
|
|
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
|
|
|
};
|
|
|
|
pulseaudio = {
|
|
|
|
format = "{volume}% {icon} {format_source}";
|
|
|
|
format-bluetooth = "{volume}% {icon} {format_source}";
|
|
|
|
format-bluetooth-muted = " {icon} {format_source}";
|
|
|
|
format-muted = " {format_source}";
|
|
|
|
format-source = "{volume}% ";
|
|
|
|
format-source-muted = "";
|
|
|
|
format-icons = {
|
|
|
|
headphone = "";
|
|
|
|
hands-free = "";
|
|
|
|
headset = "";
|
|
|
|
phone = "";
|
|
|
|
portable = "";
|
|
|
|
car = "";
|
2022-06-12 15:39:15 +00:00
|
|
|
default = ["" "" ""];
|
2022-01-19 16:50:13 +00:00
|
|
|
};
|
|
|
|
on-click = "${pkgs.pavucontrol}/bin/pavucontrol";
|
2022-01-19 16:47:09 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-01-18 15:55:32 +00:00
|
|
|
};
|
|
|
|
}
|