Fixing broken qtile config

This commit is contained in:
Derek Taylor
2021-10-08 12:38:10 -05:00
parent 3dd78855a8
commit 6ea1e07f74
6 changed files with 96 additions and 118 deletions

View File

@@ -64,7 +64,8 @@ from libqtile.config import Click, Drag, Group, KeyChord, Key, Match, Screen
from libqtile.command import lazy
from libqtile import layout, bar, widget, hook
from libqtile.lazy import lazy
from typing import List # noqa: F401
from libqtile.utils import guess_terminal
from typing import List # noqa: F401from typing import List # noqa: F401
#+END_SRC
* Variables
@@ -309,22 +310,21 @@ keys = [
Groups are really workspaces.
#+BEGIN_SRC python
group_names = [("WWW", {'layout': 'monadtall'}),
("DEV", {'layout': 'monadtall'}),
("SYS", {'layout': 'monadtall'}),
("DOC", {'layout': 'monadtall'}),
("VBOX", {'layout': 'monadtall'}),
("CHAT", {'layout': 'monadtall'}),
("MUS", {'layout': 'monadtall'}),
("VID", {'layout': 'monadtall'}),
("GFX", {'layout': 'floating'})]
groups = [Group("WWW", {'layout': 'monadtall'}),
Group("DEV", {'layout': 'monadtall'}),
Group("SYS", {'layout': 'monadtall'}),
Group("DOC", {'layout': 'monadtall'}),
Group("VBOX", {'layout': 'monadtall'}),
Group("CHAT", {'layout': 'monadtall'}),
Group("MUS", {'layout': 'monadtall'}),
Group("VID", {'layout': 'monadtall'}),
Group("GFX", {'layout': 'floating'})]
# Allow MODKEY+[0 through 9] to bind to groups, see https://docs.qtile.org/en/stable/manual/config/groups.html
# MOD4 + index Number : Switch to Group[index]
# MOD4 + shift + index Number : Send active window to another Group
from libqtile.dgroups import simple_key_binder
dgroups_key_binder = simple_key_binder("mod4")
#+END_SRC
* Settings For Some Layouts
@@ -489,7 +489,7 @@ def init_widgets_list():
widget.TextBox(
text = '',
background = colors[0],
foreground = colors[4],
foreground = colors[5],
padding = 0,
fontsize = 37
),
@@ -497,33 +497,33 @@ def init_widgets_list():
interface = "enp6s0",
format = '{down} ↓↑ {up}',
foreground = colors[2],
background = colors[4],
background = colors[5],
padding = 5
),
widget.TextBox(
text = '',
background = colors[4],
foreground = colors[5],
background = colors[5],
foreground = colors[4],
padding = 0,
fontsize = 37
),
widget.TextBox(
text = " 🌡 TEMP NOT SHOWN ",
widget.TextBox(
text = " 🌡",
padding = 2,
foreground = colors[2],
background = colors[5],
background = colors[4],
fontsize = 11
),
# widget.ThermalSensor(
# foreground = colors[2],
# background = colors[5],
# threshold = 90,
# padding = 5
# ),
widget.ThermalSensor(
foreground = colors[2],
background = colors[4],
threshold = 90,
padding = 5
),
widget.TextBox(
text='',
background = colors[5],
foreground = colors[4],
background = colors[4],
foreground = colors[5],
padding = 0,
fontsize = 37
),
@@ -531,7 +531,7 @@ def init_widgets_list():
text = "",
padding = 2,
foreground = colors[2],
background = colors[4],
background = colors[5],
fontsize = 14
),
widget.CheckUpdates(
@@ -540,45 +540,26 @@ def init_widgets_list():
display_format = "{updates} Updates",
foreground = colors[2],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')},
background = colors[4]
background = colors[5]
),
widget.TextBox(
text = '',
background = colors[4],
foreground = colors[5],
padding = 0,
fontsize = 37
),
widget.TextBox(
text = " 🖬",
foreground = colors[2],
background = colors[5],
padding = 0,
fontsize = 14
),
widget.Memory(
foreground = colors[2],
background = colors[5],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
padding = 5
),
widget.TextBox(
text='',
background = colors[5],
foreground = colors[4],
padding = 0,
fontsize = 37
),
widget.TextBox(
text = " ",
text = " 🖬",
foreground = colors[2],
background = colors[4],
padding = 0,
foreground = colors[2],
background = colors[4],
fontsize = 12
fontsize = 14
),
widget.BitcoinTicker(
widget.Memory(
foreground = colors[2],
background = colors[4],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
padding = 5
),
widget.TextBox(
@@ -703,7 +684,6 @@ mouse = [
]
dgroups_app_rules = [] # type: List
main = None
follow_mouse_focus = True
bring_front_click = False
cursor_warp = False
@@ -725,6 +705,12 @@ floating_layout = layout.Floating(float_rules=[
])
auto_fullscreen = True
focus_on_window_activation = "smart"
reconfigure_screens = True
# If things like steam games want to auto-minimize themselves when losing
# focus, should we respect this or not?
auto_minimize = True
#+END_SRC
* Startup applications