Compare commits

..

2 commits

Author SHA1 Message Date
fleaz 8280be0705 update overlay 2024-06-25 19:57:50 +02:00
fleaz a12e4c5cf8 home/waybar: Add idle_inhibitor module 2024-06-25 19:57:00 +02:00
2 changed files with 108 additions and 100 deletions

View file

@ -1,104 +1,112 @@
{ {
programs.waybar = { programs.waybar = {
enable = true; enable = true;
settings = [{ settings = [{
layer = "top"; layer = "top";
position = "bottom"; position = "bottom";
height = 28; height = 28;
modules-left = [ modules-left = [
"sway/workspaces" "sway/workspaces"
]; ];
modules-center = [ modules-center = [
"clock" "clock"
]; "idle_inhibitor"
modules-right = [ ];
"disk" modules-right = [
"pulseaudio" "disk"
"network" "pulseaudio"
"memory" "network"
"cpu" "memory"
"temperature" "cpu"
"battery" "temperature"
"tray" "battery"
]; "tray"
modules = { ];
"battery" = { modules = {
states = { "battery" = {
warning = 20; states = {
critical = 10; warning = 20;
}; critical = 10;
format = " {capacity}%";
format-discharging = "{icon} {capacity}%";
format-icons = [
""
""
""
""
""
""
""
""
""
""
];
}; };
"cpu" = { format = " {capacity}%";
format = " {}"; format-discharging = "{icon} {capacity}%";
}; format-icons = [
"clock" = { ""
format = "{:%H:%M}"; ""
tooltip = false; ""
}; ""
"memory" = { ""
interval = 5; ""
format = " {}%"; ""
tooltip-format = "{used:0.1f}/{total:0.1f} GB"; ""
states = { ""
warning = 80; ""
critical = 90; ];
}; };
}; "cpu" = {
"network" = { format = " {}";
interface = "wl*"; };
format-wifi = " {essid}"; "clock" = {
format-icons = [ format = "{:%H:%M}";
"" tooltip = false;
]; };
tooltip-format-wifi = "{frequency} MHz, {signaldBm} dBm"; "memory" = {
}; interval = 5;
"pulseaudio" = { format = " {}%";
scroll-step = 1; tooltip-format = "{used:0.1f}/{total:0.1f} GB";
format = "{icon} {volume}%"; states = {
format-bluetooth = "{icon} {volume}% "; warning = 80;
format-muted = ""; critical = 90;
format-icons = {
headphones = "";
handsfree = "";
headset = "";
phone = "";
portable = "";
car = "";
default = [ "" "" ];
};
on-click = "pavucontrol";
};
"sway/workspaces" = {
all-outputs = false;
disable-scroll = false;
format = "{name}";
};
"temperature" = {
format = " {temperatureC}°C";
hwmon-path = "/sys/class/hwmon/hwmon3/temp1_input";
critical-threshold = 75;
};
"disk" = {
interval = 30;
format = "{free} free";
path = "/";
}; };
}; };
}]; "network" = {
style = builtins.readFile ./waybar.css; interface = "wl*";
}; format-wifi = " {essid}";
format-icons = [
""
];
tooltip-format-wifi = "{frequency} MHz, {signaldBm} dBm";
};
"pulseaudio" = {
scroll-step = 1;
format = "{icon} {volume}%";
format-bluetooth = "{icon} {volume}% ";
format-muted = "";
format-icons = {
headphones = "";
handsfree = "";
headset = "";
phone = "";
portable = "";
car = "";
default = [ "" "" ];
};
on-click = "pavucontrol";
};
"sway/workspaces" = {
all-outputs = false;
disable-scroll = false;
format = "{name}";
};
"temperature" = {
format = " {temperatureC}°C";
hwmon-path = "/sys/class/hwmon/hwmon3/temp1_input";
critical-threshold = 75;
};
"disk" = {
interval = 30;
format = "{free}";
path = "/";
};
"idle_inhibitor" = {
format = "{icon}";
format-icons = {
activated = "";
deactivated = "";
};
};
};
}];
style = builtins.readFile ./waybar.css;
};
} }

@ -1 +1 @@
Subproject commit 87e002697a0bb6883824f1ce8395a67638c6fb49 Subproject commit c598bf71e3f6dbdad34092b09df9551dec913770