1
0
mirror of https://github.com/Andrey0189/nixos-config-reborn.git synced 2025-09-15 10:06:00 +03:00

add waybar configuration

This commit is contained in:
andrey_varnavskiy
2024-11-26 06:15:19 +05:00
parent 8a12a98612
commit 927d48de14
4 changed files with 95 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
{
imports = [
./main.nix
# ./styles.nix
];
}

View File

@@ -0,0 +1,87 @@
{
programs.waybar = {
enable = true;
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;
all-outputs = false;
format = "{icon}";
format-icons = {
"1" = "";
"2" = "";
"3" = "";
"4" = "";
"5" = "";
"6" = "";
"7" = "";
"8" = "";
"9" = "";
};
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";
};
};
};
};
}