From 548bdd2668040bb7925cca1fa2a72fb5eef43302 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Thu, 23 Feb 2023 14:24:41 +0100 Subject: [PATCH] Updates --- qtile/__pycache__/config.cpython-310.pyc | Bin 5691 -> 5683 bytes qtile/config.py | 56 +++++++++++++++++++++-- 2 files changed, 52 insertions(+), 4 deletions(-) diff --git a/qtile/__pycache__/config.cpython-310.pyc b/qtile/__pycache__/config.cpython-310.pyc index c16ddc3babcb5b2bb090a082c797f48750051cf9..42265075d94afdf9e12280ef9d503bb5f43e2e90 100644 GIT binary patch delta 52 zcmdn3vss5XpO=@50SNxbd`~_wkyn;cY@_y1mdRSI`iy*=qgaFa89O$w6Om?QVquzm HRx}R)mZc8> delta 57 zcmdn2vs;HZpO=@50SJyA|DL>WBCjl?%tq~>EKCbzCo8ZTGxBc^VGZVI?Ap9SM4FL> Mjgf_M@=?(|0Oy4d<^TWy diff --git a/qtile/config.py b/qtile/config.py index e829205..9bf2178 100644 --- a/qtile/config.py +++ b/qtile/config.py @@ -53,25 +53,36 @@ from libqtile.dgroups import simple_key_binder mod = "mod4" +# -------------------------------------------------------- +# Check for VirtualBox +# -------------------------------------------------------- + if (os.path.isfile("/usr/bin/VBoxService")): terminal = "terminator" else: terminal = "alacritty" +# -------------------------------------------------------- +# Set default apps +# -------------------------------------------------------- + terminal = guess_terminal(terminal) browser = "chromium" -wp = "/home/raabe/wallpaper/" +# -------------------------------------------------------- # KEYBINDINGS +# -------------------------------------------------------- keys = [ - + + # Focus Key([mod], "Left", lazy.layout.left(), desc="Move focus to left"), Key([mod], "Right", lazy.layout.right(), desc="Move focus to right"), Key([mod], "Down", lazy.layout.down(), desc="Move focus down"), Key([mod], "Up", lazy.layout.up(), desc="Move focus up"), Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"), - + + # Move Key([mod, "shift"], "Left", lazy.layout.shuffle_left(), desc="Move window to the left"), Key([mod, "shift"], "Right", lazy.layout.shuffle_right(), desc="Move window to the right"), Key([mod, "shift"], "Down", lazy.layout.shuffle_down(), desc="Move window down"), @@ -116,7 +127,9 @@ keys = [ # Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"), ] -# GROUPS +# -------------------------------------------------------- +# Groups +# -------------------------------------------------------- groups = [Group("1", layout='monadtall'), Group("2", layout='monadtall'), @@ -127,7 +140,10 @@ groups = [Group("1", layout='monadtall'), dgroups_key_binder = simple_key_binder(mod) +# -------------------------------------------------------- # Pywal Colors +# -------------------------------------------------------- + colors = os.path.expanduser('~/.cache/wal/colors.json') colordict = json.load(open(colors)) ColorZ=(colordict['colors']['color0']) @@ -141,12 +157,20 @@ ColorG=(colordict['colors']['color7']) ColorH=(colordict['colors']['color8']) ColorI=(colordict['colors']['color9']) +# -------------------------------------------------------- +# Setup Layout Theme +# -------------------------------------------------------- + layout_theme = { "border_width": 2, "margin": 15, "border_focus": ColorC, "border_normal": ColorG } +# -------------------------------------------------------- +# Layouts +# -------------------------------------------------------- + layouts = [ # layout.Columns(), # layout.Max(), @@ -164,6 +188,10 @@ layouts = [ # layout.Floating(**layout_theme) ] +# -------------------------------------------------------- +# Setup Widget Defaults +# -------------------------------------------------------- + widget_defaults = dict( font="Fira Sans SemiBold", fontsize=14, @@ -171,6 +199,10 @@ widget_defaults = dict( ) extension_defaults = widget_defaults.copy() +# -------------------------------------------------------- +# Screens and Widgets +# -------------------------------------------------------- + screens = [ Screen( top=bar.Bar( @@ -253,13 +285,20 @@ screens = [ ), ] +# -------------------------------------------------------- # Drag floating layouts. +# -------------------------------------------------------- + mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], "Button2", lazy.window.bring_to_front()), ] +# -------------------------------------------------------- +# General Setup +# -------------------------------------------------------- + dgroups_app_rules = [] # type: list follow_mouse_focus = True bring_front_click = False @@ -295,8 +334,17 @@ wl_input_rules = None # # We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in # java that happens to be on java's whitelist. + +# -------------------------------------------------------- +# Windows Manager Name +# -------------------------------------------------------- + wmname = "QTILE" +# -------------------------------------------------------- +# Hooks +# -------------------------------------------------------- + # HOOK startup @hook.subscribe.startup_once def autostart():