From 0e103467a15f889ef182c16cc0a04b3a74564524 Mon Sep 17 00:00:00 2001 From: cerberus Date: Sun, 17 Aug 2025 12:52:21 +0200 Subject: [PATCH] added screens --- qtile/config.py | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/qtile/config.py b/qtile/config.py index 248258b..e1d650b 100644 --- a/qtile/config.py +++ b/qtile/config.py @@ -1,10 +1,12 @@ # Qtile configuration by cerberus -from libqtile import qtile +from libqtile import qtile, bar from libqtile.backend.wayland.inputs import InputConfig +from libqtile.config import Screen from modules.keys import keys, mouse from modules.groups import groups +from modules.widgets import widgets # Application definitions apps = { @@ -14,11 +16,48 @@ apps = { "cli-filebrowser": "yazi", "editor": "nvim", } + +# Screens +screens = [ + # Left screen + Screen( + top=bar.Bar( + widgets, + background="#000000", + opacity=0.75, + size=32, + margin=[3, 3, 0, 3], + ), + ), + # Center screen + Screen( + top=bar.Bar( + widgets, + background="#000000", + opacity=0.75, + size=32, + margin=[3, 3, 0, 3], + ), + ), + # Right screen + Screen( + top=bar.Bar( + widgets, + background="#000000", + opacity=0.75, + size=32, + margin=[3, 3, 0, 3], + ) + ), +] + +# Default definitions layout_defaults = dict( margin=3, border_width=0, grow_amount=2, ) + # Essentials keys = keys mouse = mouse