chore: minor waybar changes

This commit is contained in:
Alexandre Cavalheiro 2024-03-25 22:34:02 -03:00
parent da04a29d2e
commit 557e604094
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -1,5 +1,4 @@
{ ... }: { ... }: {
{
programs.waybar = { programs.waybar = {
enable = true; enable = true;
@ -9,21 +8,10 @@
margin = "10px 10px 0"; margin = "10px 10px 0";
height = 30; height = 30;
modules-left = [ modules-left = [ "hyprland/workspaces" ];
"hyprland/workspaces" modules-center = [ "clock" ];
]; modules-right =
modules-center = [ [ "network" "memory" "cpu" "temperature" "battery" "tray" ];
"clock"
];
modules-right = [
"network"
"memory"
"cpu"
"temperature"
"battery"
"hyprland/language"
"tray"
];
"hyprland/workspaces" = { "hyprland/workspaces" = {
format = "{icon}"; format = "{icon}";
@ -97,13 +85,7 @@
critical-threshold = 90; critical-threshold = 90;
interval = 5; interval = 5;
format = "{icon} {temperatureC}°"; format = "{icon} {temperatureC}°";
format-icons = [ format-icons = [ "" "" "" "" "" ];
""
""
""
""
""
];
tooltip = false; tooltip = false;
}; };
@ -121,21 +103,7 @@
format-charging-full = " {capacity}%"; format-charging-full = " {capacity}%";
format-full = "{icon} {capacity}%"; format-full = "{icon} {capacity}%";
format-alt = "{icon} {power}W"; format-alt = "{icon} {power}W";
format-icons = [ format-icons = [ "" "" "" "" "" ];
""
""
""
""
""
];
tooltip = false;
};
"hyprland/language" = {
format = " {}";
format-en = "EN/US";
format-pt-br = "PT/BR";
#"on-click" = "hyprctl switchxkblayout www.hfd.cn-monsgeek-keyboard-1 next";
tooltip = false; tooltip = false;
}; };
@ -200,7 +168,7 @@
padding: 0 10px; padding: 0 10px;
} }
#network, #cpu, #memory, #language, #temperature { #network, #cpu, #memory, #temperature {
margin: 0 8px; margin: 0 8px;
} }