add wattage to polybar

This commit is contained in:
Kopatz
2024-11-18 22:57:33 +01:00
parent 34c3537d68
commit 9ec7ed0e4a
4 changed files with 20 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ in {
modules-left = "i3 xwindow";
modules-center = "";
modules-right =
"music network memory cpu cpu-temp gpu pulseaudio date tray";
"music network memory cpu cpu-wattage cpu-temp gpu pulseaudio date tray";
cursor-click = "pointer";
cursor-scroll = "ns-resize";
enable-ipc = true;
@@ -177,6 +177,11 @@ in {
format-prefix-foreground = config.stylix.base16Scheme.base0D;
label = "%percentage:2%%";
};
"module/cpu-wattage" = {
type = "custom/script";
exec = "~/.config/polybar/cpu-wattage.sh";
interval = 3;
};
"module/cpu-temp" = {
type = "custom/script";
exec = "~/.config/polybar/temperature.sh";