all: add power-profiles-daemon Waybar module

This commit is contained in:
Aleksey Samoilov 2025-06-15 02:58:12 +04:00
parent 04a7d02192
commit c99490a19e
8 changed files with 93 additions and 21 deletions

View file

@ -13,6 +13,7 @@
"custom/clipboard",
"cpu",
"memory",
"power-profiles-daemon",
"battery",
"network",
"bluetooth",
@ -128,6 +129,18 @@
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
"battery": {
"format": "{icon} {capacity}%",
"format-icons": ["", "", "", "", ""]

View file

@ -81,6 +81,7 @@ window#waybar.hidden {
#cpu,
#language,
#memory,
#power-profiles-daemon,
#network,
#bluetooth,
#pulseaudio,
@ -144,11 +145,15 @@ window#waybar.hidden {
color: @teal;
}
#power-profiles-daemon {
color: @sky
}
#battery {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
color: @sky;
color: @sapphire;
}
#battery.warning {
@ -174,7 +179,7 @@ label:focus {
}
#network {
color: @sapphire;
color: @blue;
}
#network.disconnected {
@ -182,7 +187,7 @@ label:focus {
}
#bluetooth {
color: @blue;
color: @lavender;
}
#bluetooth.disabled {
@ -190,7 +195,7 @@ label:focus {
}
#pulseaudio {
color: @lavender;
color: @text;
}
#pulseaudio.muted {
@ -198,9 +203,9 @@ label:focus {
}
#clock {
color: @text;
color: @subtext1;
}
#custom-power {
color: @subtext1;
color: @subtext2;
}

View file

@ -14,6 +14,7 @@
"custom/clipboard",
"cpu",
"memory",
"power-profiles-daemon",
"battery",
"network",
"bluetooth",
@ -122,6 +123,18 @@
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
"battery": {
"format": "{icon} {capacity}%",
"format-icons": ["", "", "", "", ""]

View file

@ -67,6 +67,7 @@ window#waybar.empty #window {
#battery,
#cpu,
#memory,
#power-profiles-daemon,
#network,
#bluetooth,
#pulseaudio,
@ -131,11 +132,15 @@ window#waybar.empty #window {
color: @green;
}
#power-profiles-daemon {
color: @teal
}
#battery {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
color: @teal;
color: @sky;
}
#battery.warning {
@ -161,7 +166,7 @@ label:focus {
}
#network {
color: @sky;
color: @sapphire;
}
#network.disconnected {
@ -169,7 +174,7 @@ label:focus {
}
#bluetooth {
color: @sapphire;
color: @blue;
}
#bluetooth.disabled {
@ -177,7 +182,7 @@ label:focus {
}
#pulseaudio {
color: @blue;
color: @lavender;
}
#pulseaudio.muted {

View file

@ -14,6 +14,7 @@
"custom/clipboard",
"cpu",
"memory",
"power-profiles-daemon",
"battery",
"network",
"bluetooth",
@ -125,6 +126,18 @@
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
"battery": {
"format": "{icon} {capacity}%",
"format-icons": ["", "", "", "", ""]

View file

@ -86,6 +86,7 @@ window#waybar.hidden {
#battery,
#cpu,
#memory,
#power-profiles-daemon,
#network,
#bluetooth,
#pulseaudio,
@ -149,11 +150,15 @@ window#waybar.hidden {
color: @teal;
}
#power-profiles-daemon {
color: @sky
}
#battery {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
color: @sky;
color: @sapphire;
}
#battery.warning {
@ -179,7 +184,7 @@ label:focus {
}
#network {
color: @sapphire;
color: @blue;
}
#network.disconnected {
@ -187,7 +192,7 @@ label:focus {
}
#bluetooth {
color: @blue;
color: @lavender;
}
#bluetooth.disabled {
@ -195,7 +200,7 @@ label:focus {
}
#pulseaudio {
color: @lavender;
color: @text;
}
#pulseaudio.muted {
@ -203,5 +208,5 @@ label:focus {
}
#custom-power {
color: @text;
color: @subtext1;
}

View file

@ -15,6 +15,7 @@
"custom/clipboard",
"cpu",
"memory",
"power-profiles-daemon",
"battery",
"network",
"bluetooth",
@ -152,6 +153,18 @@
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
"battery": {
"format": "{icon} {capacity}%",
"format-icons": ["", "", "", "", ""]

View file

@ -81,6 +81,7 @@ window#waybar.hidden {
#cpu,
#language,
#memory,
#power-profiles-daemon,
#network,
#bluetooth,
#pulseaudio,
@ -144,11 +145,15 @@ window#waybar.hidden {
color: @teal;
}
#power-profiles-daemon {
color: @sky
}
#battery {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
color: @sky;
color: @sapphire;
}
#battery.warning {
@ -174,7 +179,7 @@ label:focus {
}
#network {
color: @sapphire;
color: @blue;
}
#network.disconnected {
@ -182,7 +187,7 @@ label:focus {
}
#bluetooth {
color: @blue;
color: @lavender;
}
#bluetooth.disabled {
@ -190,7 +195,7 @@ label:focus {
}
#pulseaudio {
color: @lavender;
color: @text;
}
#pulseaudio.muted {
@ -198,9 +203,9 @@ label:focus {
}
#clock {
color: @text;
color: @subtext1;
}
#custom-power {
color: @subtext1;
color: @subtext2;
}