2026-03-13 00:06:32 +03:00
|
|
|
{ osConfig, config, pkgs, ... }: {
|
|
|
|
|
home.packages = with pkgs; [
|
2026-03-16 01:30:42 +03:00
|
|
|
font-awesome
|
2026-03-13 17:24:00 +03:00
|
|
|
nerd-fonts.symbols-only
|
2026-03-13 00:06:32 +03:00
|
|
|
playerctl
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
programs.waybar = {
|
|
|
|
|
enable = true;
|
2026-03-16 23:47:29 +03:00
|
|
|
systemd.enable = true;
|
2026-03-13 00:06:32 +03:00
|
|
|
|
|
|
|
|
settings.mainBar = {
|
|
|
|
|
spacing = 8;
|
|
|
|
|
|
|
|
|
|
modules-left = [
|
|
|
|
|
"hyprland/workspaces"
|
|
|
|
|
"hyprland/language"
|
|
|
|
|
"keyboard-state"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
modules-center = [
|
|
|
|
|
"mpris"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
modules-right = [
|
|
|
|
|
"tray"
|
|
|
|
|
"group/system"
|
|
|
|
|
"pulseaudio"
|
|
|
|
|
"battery"
|
|
|
|
|
"clock"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
clock = {
|
|
|
|
|
tooltip = false;
|
|
|
|
|
interval = 5;
|
|
|
|
|
format = "{:L%d %b - %H:%M %a}";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
pulseaudio = {
|
|
|
|
|
format = "{icon} {volume}%";
|
|
|
|
|
format-icons = {
|
|
|
|
|
headphone = "";
|
|
|
|
|
hands-free = "";
|
|
|
|
|
headset = "";
|
|
|
|
|
phone = "";
|
|
|
|
|
phone-muted = "";
|
|
|
|
|
portable = "";
|
|
|
|
|
car = "";
|
|
|
|
|
default = ["" ""];
|
|
|
|
|
};
|
|
|
|
|
on-click = "ghostty --title=pulsemixer -e pulsemixer";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
mpris = {
|
|
|
|
|
format = "{dynamic}";
|
|
|
|
|
dynamic-len = if osConfig.host.laptop then 32 else 64;
|
2026-03-16 01:30:42 +03:00
|
|
|
dynamic-order = [ "title" "artist" "album" ];
|
2026-03-13 00:06:32 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
battery = {
|
2026-03-13 17:24:00 +03:00
|
|
|
interval = 5;
|
2026-03-13 00:06:32 +03:00
|
|
|
states = {
|
|
|
|
|
warning = 30;
|
|
|
|
|
critical = 15;
|
|
|
|
|
};
|
2026-03-13 14:07:40 +03:00
|
|
|
format = "{icon} {capacity}%";
|
2026-03-13 17:24:00 +03:00
|
|
|
format-icons = {
|
|
|
|
|
default = ["" "" "" "" "" "" "" "" "" "" ""];
|
|
|
|
|
charging = ["" "" "" "" "" "" "" "" "" "" ""];
|
|
|
|
|
};
|
2026-03-13 00:06:32 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"keyboard-state" = {
|
|
|
|
|
capslock = true;
|
|
|
|
|
format = "{icon}";
|
|
|
|
|
format-icons = {
|
2026-03-13 14:07:40 +03:00
|
|
|
locked = "CAPS";
|
2026-03-13 00:06:32 +03:00
|
|
|
unlocked = "";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"hyprland/language" = {
|
2026-03-13 08:30:43 +03:00
|
|
|
format-en = "en";
|
|
|
|
|
format-ru = "ru";
|
2026-03-13 00:06:32 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"group/system" = {
|
|
|
|
|
orientation = "inherit";
|
|
|
|
|
drawer = {
|
|
|
|
|
transition-duration = 500;
|
|
|
|
|
transition-left-to-right = false;
|
|
|
|
|
};
|
|
|
|
|
modules = [
|
|
|
|
|
"network"
|
|
|
|
|
"custom/mem"
|
|
|
|
|
"cpu"
|
|
|
|
|
"temperature"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
network = {
|
|
|
|
|
format = "{ifname}";
|
2026-03-13 17:24:00 +03:00
|
|
|
format-wifi = " {essid} ({signalStrength}%)";
|
|
|
|
|
format-ethernet = "{ifname}";
|
2026-03-13 00:06:32 +03:00
|
|
|
format-disconnected = "";
|
2026-03-13 17:24:00 +03:00
|
|
|
tooltip-format = "{ipaddr}";
|
2026-03-13 00:06:32 +03:00
|
|
|
max-length = 50;
|
|
|
|
|
on-click = "ghostty --title=nmtui -e nmtui";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"custom/weather" = {
|
|
|
|
|
format = "{}";
|
|
|
|
|
tooltip = true;
|
|
|
|
|
interval = 1800;
|
|
|
|
|
exec = "python3 $HOME/.config/waybar/scripts/wttr.py";
|
|
|
|
|
return-type = "json";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"custom/mem" = {
|
|
|
|
|
format = "{} ";
|
|
|
|
|
interval = 3;
|
|
|
|
|
exec = "free -h | awk '/Mem:/{printf $3}'";
|
|
|
|
|
tooltip = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
cpu = {
|
|
|
|
|
interval = 2;
|
|
|
|
|
format = "{usage}% ";
|
|
|
|
|
min-length = 6;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
temperature = {
|
2026-03-13 14:07:40 +03:00
|
|
|
hwmon-path = "/sys/class/hwmon/hwmon5/temp1_input";
|
2026-03-13 00:06:32 +03:00
|
|
|
critical-threshold = 80;
|
|
|
|
|
format = "{temperatureC}°C {icon}";
|
|
|
|
|
format-icons = ["" "" "" "" ""];
|
|
|
|
|
tooltip = false;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|