change modules around

This commit is contained in:
twoneis 2024-07-26 17:59:05 +02:00
parent 4d55a5fde4
commit c211993e8b
2 changed files with 25 additions and 41 deletions

View file

@ -3,36 +3,44 @@
layer = "top"; layer = "top";
position = "top"; position = "top";
modules-left = [ modules-left = [
"memory" "backlight"
"cpu" "wireplumber"
"temperature"
]; ];
modules-center = [ modules-center = [
"clock" "clock"
]; ];
modules-right = [ modules-right = [
"network" "network"
"wireplumber"
"battery" "battery"
]; ];
"cpu" = {
interval = 10; "backlight" = {
format = "{usage}%"; format = "{icon}";
}; format-alt = "{percent}%";
"temperature" = { format-icons = [ "" "" "" "" "" "" "" "" "" "" "" "" "" ];
hwmon-path = config.hwmonPath;
format = "{temperatureC}°C ";
interval = 10;
tooltip = false; tooltip = false;
}; };
"memory" = { "wireplumber" = {
interval = 30; format = "{icon}";
format = "{percentage}% "; format-alt = "{volume}%";
format-muted = "";
format-icons = ["" "" ""];
tooltip = false;
}; };
"clock" = { "clock" = {
format = "{:%H:%M}"; format = "{:%H:%M}";
format-alt = "{:%a, %Y-%m-%d}"; format-alt = "{:%a, %Y-%m-%d}";
}; };
"network" = {
format-wifi = "{icon}";
format-alt = "{essid}";
format-ethernet = "󰈁";
format-disconnected = "󰤭";
format-icons = ["󰤯" "󰤟" "󰤢" "󰤥" "󰤨"];
tooltip = false;
};
"battery" = { "battery" = {
states = { states = {
good = 80; good = 80;
@ -44,20 +52,5 @@
format-icons = ["󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ]; format-icons = ["󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ];
tooltip = false; tooltip = false;
}; };
"network" = {
format-wifi = "{icon}";
format-alt = "{essid}";
format-ethernet = "󰈁";
format-disconnected = "󰤭";
format-icons = ["󰤯" "󰤟" "󰤢" "󰤥" "󰤨"];
tooltip = false;
};
"wireplumber" = {
format = "{icon}";
format-alt = "{volume}%";
format-muted = "";
format-icons = ["" "" ""];
tooltip = false;
};
}; };
} }

View file

@ -32,19 +32,14 @@ in {
background-color: ${background}; background-color: ${background};
} }
#clock, #backlight,
#battery, #battery,
#memory, #clock,
#network, #network,
#temperature,
#wireplumber { #wireplumber {
padding: 0 15px; padding: 0 15px;
} }
#cpu {
padding: 0 0 0 15px;
}
/*-----Indicators----*/ /*-----Indicators----*/
#battery.charging { #battery.charging {
color: ${charging}; color: ${charging};
@ -55,9 +50,5 @@ in {
#battery.critical:not(.charging) { #battery.critical:not(.charging) {
color: ${critical}; color: ${critical};
} }
#temperature.critical {
color: ${critical};
}
''; '';
} }