feat(qtile): add laptop-specific features
This commit is contained in:
parent
3c7aee7d9a
commit
6a00183557
1 changed files with 16 additions and 1 deletions
|
@ -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",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue