feat(qtile): dynamically adjust monitor count
This commit is contained in:
parent
dabff5910a
commit
c71c874ce1
1 changed files with 9 additions and 12 deletions
|
@ -548,20 +548,17 @@ def init_widget_list(main=True):
|
||||||
|
|
||||||
screens = [
|
screens = [
|
||||||
Screen(
|
Screen(
|
||||||
bottom=bar.Bar(init_widget_list(main=True), size=20, opacity=1.0), # width
|
bottom=bar.Bar(init_widget_list(main=(i == 0)), size=20, opacity=1.0), # width
|
||||||
wallpaper="~/Pictures/BotanBackground.jpg",
|
wallpaper="~/Pictures/BotanBackground.jpg",
|
||||||
wallpaper_mode="fill",
|
wallpaper_mode="fill",
|
||||||
),
|
)
|
||||||
Screen(
|
for i in range(
|
||||||
bottom=bar.Bar(init_widget_list(main=False), size=20, opacity=1.0), # width
|
int(
|
||||||
wallpaper="~/Pictures/BotanBackground.jpg",
|
os.popen(
|
||||||
wallpaper_mode="fill",
|
"xrandr --listmonitors | grep 'Monitors:' | awk {'print $2'}"
|
||||||
),
|
).read()
|
||||||
Screen(
|
)
|
||||||
bottom=bar.Bar(init_widget_list(main=False), size=20, opacity=1.0), # width
|
)
|
||||||
wallpaper="~/Pictures/BotanBackground.jpg",
|
|
||||||
wallpaper_mode="fill",
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Drag floating layouts.
|
# Drag floating layouts.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue