Initial commit

This commit is contained in:
Artyom Belousov 2026-01-13 15:34:28 +03:00 committed by Артём Белоусов
commit b79d352847
37 changed files with 2191 additions and 0 deletions

86
home/waybar/default.nix Normal file
View file

@ -0,0 +1,86 @@
{
pkgs,
lib,
config,
...
}:
{
options = {
custom.waybar.enable = lib.mkEnableOption "Enable waybar config";
};
config = lib.mkIf config.custom.waybar.enable {
xdg.configFile = {
waybarColorscheme = {
text = "";
target = "waybar/colorscheme.css";
};
};
catppuccin.waybar.mode = "createLink";
programs.waybar = {
enable = true;
style = ./style.css;
settings = {
mainBar = {
margin-top = 14;
margin-left = 14;
margin-right = 14;
layer = "top";
modules-left = [
"custom/logo"
"hyprland/workspaces"
];
modules-center = [ "hyprland/window" ];
modules-right = [
"hyprland/language"
"wireplumber"
"backlight"
"battery"
"clock"
"tray"
];
clock = {
format = " {:%d.%m.%Y %H:%M}";
};
backlight = {
format = " {percent}%";
};
"hyprland/language" = {
format = " {}";
format-en = "EN";
format-ru = "RU";
};
wireplumber = {
format = "{icon} {volume}%";
format-icons = [
""
""
""
];
format-muted = " {volume}%";
};
"custom/logo" = {
format = "";
};
tray = {
spacing = 10;
};
"hyprland/window" = {
max-length = 50;
};
battery = {
format = "{icon} {capacity}% {time}";
format-icons = [
""
""
""
""
""
];
format-time = "{H}:{m}";
format-charging = "󱐋 {capacity}% {time}";
};
};
};
};
};
}