feat(qtile): dynamically adjust monitor count

This commit is contained in:
Infinidoge 2021-09-26 22:05:02 -04:00
parent dabff5910a
commit c71c874ce1

View file

@ -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.