feat(qtile): add laptop-specific features

This commit is contained in:
Infinidoge 2021-09-26 22:28:43 -04:00
parent 3c7aee7d9a
commit 6a00183557

View file

@ -513,6 +513,17 @@ def init_widget_list(main=True):
padding=5, padding=5,
), ),
], ],
*(
[
widget.Battery(
format="{char} {percent:2.1%} {hour:d}h:{min:02d}m",
update_interval=30,
padding=5,
),
]
if laptop
else []
),
] ]
if main if main
else [] else []
@ -548,7 +559,11 @@ def init_widget_list(main=True):
screens = [ screens = [
Screen( Screen(
bottom=bar.Bar(init_widget_list(main=(i == 0)), size=20, opacity=1.0), # width bottom=bar.Bar(
init_widget_list(main=(i == 0), laptop=os.getenv("LAPTOP", False)),
size=20,
opacity=1.0,
),
wallpaper="~/Pictures/BotanBackground.jpg", wallpaper="~/Pictures/BotanBackground.jpg",
wallpaper_mode="fill", wallpaper_mode="fill",
) )