unified laptop and desktop qtile bar

This commit is contained in:
paul-loedige
2024-01-09 12:09:28 +01:00
parent 659dd5ad60
commit 6b6d6ec4f3
5 changed files with 56 additions and 124 deletions
+3 -8
View File
@@ -4,15 +4,10 @@ import numpy as np
from libqtile.config import Screen
from Bars import top_bar, left_bar, main_bar,laptop_bar, secondary_bar
from Bars import top_bar, left_bar, main_bar, secondary_bar
from defines import main_screen_res, top_screen_res
screens = [
# Screen(bottom=top_bar),
# Screen(top=left_bar),
# Screen(top=main_bar),
# Screen(top=laptop_bar)
]
screens = []
cmd = ['xrandr']
@@ -32,7 +27,7 @@ for width, height in screen_resolutions:
elif width < height:
screens.append(Screen(top=left_bar))
elif width == max_width and not defined_main_window:
screens.append(Screen(top=laptop_bar))
screens.append(Screen(top=main_bar))
defined_main_window = True
else:
screens.append(Screen(top=secondary_bar))