1
0
mirror of https://github.com/Andrey0189/nixos-config-reborn.git synced 2025-09-15 10:06:00 +03:00
Files
nixos-config-reborn/home-manager/modules/waybar/main.nix
andrey_varnavskiy c8f3602eae magic
2024-11-26 06:43:02 +05:00

92 lines
2.2 KiB
Nix

{
programs.waybar = {
enable = true;
style = ./style.css;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 30;
modules-left = ["hyprland/workspaces"];
modules-center = ["hyprland/window"];
modules-right = ["hyprland/language" "custom/weather" "pulseaudio" "battery" "clock" "tray"];
"hyprland/workspaces" = {
disable-scroll = true;
show-special = true;
special-visible-only = true;
all-outputs = false;
format = "{icon}";
format-icons = {
"1" = "";
"2" = "";
"3" = "";
"4" = "";
"5" = "";
"6" = "";
"7" = "";
"8" = "";
"9" = "";
"magic" = "";
};
persistent-workspaces = {
"*" = 9;
};
};
"hyprland/language" = {
format-en = "🇺🇸";
format-ru = "🇷🇺";
min-length = 5;
tooltip = false;
};
"custom/weather" = {
format = " {} ";
exec = "curl -s 'wttr.in/Tashkent?format=%c%t'";
interval = 300;
class = "weather";
};
"battery" = {
states = {
warning = 30;
critical = 1;
};
format = "{icon} {capacity}%";
format-charging = " {capacity}%";
format-alt = "{time} {icon}";
format-icons = ["" "" "" "" ""];
};
"tray" = {
icon-size = 14;
spacing = 1;
};
"clock" = {
format = "{:%d.%m.%Y - %H:%M}";
format-alt = "{:%A, %B %d at %R}";
};
"pulseaudio" = {
format = "{icon} {volume}%";
format-bluetooth = "{icon} {volume}% ";
format-muted = "";
format-icons = {
"headphones" = "";
"handsfree" = "";
"headset" = "";
"phone" = "";
"portable" = "";
"car" = "";
"default" = ["" ""];
};
on-click = "pavucontrol";
};
};
};
};
}