qtile: Fix battery/cpu widget

This commit is contained in:
Joseph Ferano 2024-06-06 11:03:50 +07:00
parent 7271263df1
commit b162a5dfa0

View File

@ -24,6 +24,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import os
import socket
import subprocess
import re
import random
@ -201,7 +202,7 @@ window_name = widget.WindowName()
window_name2 = widget.WindowName()
chord = widget.Chord(chords_colors={"launch": ("#ff0000", "#ffffff"),}, name_transform=lambda name: name.upper())
systray = widget.Systray()
battery = widget.Battery()
battery = widget.Battery() if socket.gethostname() != "puter" else widget.CPU()
clock = widget.Clock(format="%Y-%m-%d %a %I:%M %p")
volume = widget.Volume()