Ver 1.0
This commit is contained in:
parent
b6b87d5aed
commit
9c72a71585
3546 changed files with 18655 additions and 0 deletions
102
nixosVista/homeManager/waybar/config.nix
Normal file
102
nixosVista/homeManager/waybar/config.nix
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
nixosVista,
|
||||
...
|
||||
}: let
|
||||
root = nixosVista;
|
||||
cfg = root.waybar;
|
||||
|
||||
baseSettings = {
|
||||
layer = "bottom";
|
||||
spacing = 0;
|
||||
height = 0;
|
||||
|
||||
margin-top = 0;
|
||||
position = "bottom";
|
||||
margin-right = 50;
|
||||
margin-bottom = 8;
|
||||
margin-left = 50;
|
||||
|
||||
modules-left = [
|
||||
"custom/os_btn"
|
||||
"hyprland/workspaces"
|
||||
"wlr/taskbar"
|
||||
];
|
||||
|
||||
modules-center = [
|
||||
"clock"
|
||||
];
|
||||
|
||||
modules-right = [
|
||||
"tray"
|
||||
"network"
|
||||
"battery"
|
||||
"pulseaudio"
|
||||
];
|
||||
|
||||
"sway/workspaces" = {
|
||||
disable-scroll = true;
|
||||
all-outputs = true;
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
"wlr/taskbar" = {
|
||||
format = "{icon}";
|
||||
spacing = 3;
|
||||
icon-size = 28;
|
||||
on-click = "activate";
|
||||
tooltip-format = "{title}";
|
||||
};
|
||||
|
||||
tray = {
|
||||
spacing = 10;
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
clock = {
|
||||
format = "{:%H:%M - %a | %d %b %Y}";
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
network = {
|
||||
format-wifi = " {bandwidthDownBits}";
|
||||
format-ethernet = " {bandwidthDownBits}";
|
||||
format-disconnected = " No Network";
|
||||
interval = 5;
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
pulseaudio = {
|
||||
scroll-step = 5;
|
||||
max-volume = 150;
|
||||
format = "{icon} {volume}%";
|
||||
format-bluetooth = "{icon} {volume}%";
|
||||
format-icons = ["" "" " "];
|
||||
nospacing = 1;
|
||||
format-muted = " ";
|
||||
on-click = "pavucontrol";
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
battery = {
|
||||
format = "{icon} {capacity}%";
|
||||
interval = 5;
|
||||
|
||||
states = {
|
||||
warning = 20;
|
||||
critical = 10;
|
||||
};
|
||||
|
||||
format-icons = ["" "" "" "" ""];
|
||||
tooltip = false;
|
||||
};
|
||||
};
|
||||
|
||||
finalSettings = baseSettings // cfg.settings.extra;
|
||||
in {
|
||||
programs.waybar = lib.mkIf (cfg.enable && cfg.style.preset != "none") {
|
||||
enable = true;
|
||||
settings = [finalSettings];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue