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
+1 -1
View File
@@ -4,7 +4,7 @@ mode=0
bgcolor=#000000 bgcolor=#000000
[xin_1] [xin_1]
file=/home/dt/wallpapers/0103.jpg file=/home/dt/wallpapers/0094.jpg
mode=0 mode=0
bgcolor=#000000 bgcolor=#000000
+2 -2
View File
@@ -1,7 +1,7 @@
[geometry] [geometry]
posx=1936 posx=3856
posy=40 posy=40
sizex=1884 sizex=932
sizey=1020 sizey=1020
[nitrogen] [nitrogen]
+40 -54
View File
@@ -64,7 +64,8 @@ from libqtile.config import Click, Drag, Group, KeyChord, Key, Match, Screen
from libqtile.command import lazy from libqtile.command import lazy
from libqtile import layout, bar, widget, hook from libqtile import layout, bar, widget, hook
from libqtile.lazy import lazy 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 #+END_SRC
* Variables * Variables
@@ -309,22 +310,21 @@ keys = [
Groups are really workspaces. Groups are really workspaces.
#+BEGIN_SRC python #+BEGIN_SRC python
group_names = [("WWW", {'layout': 'monadtall'}), groups = [Group("WWW", {'layout': 'monadtall'}),
("DEV", {'layout': 'monadtall'}), Group("DEV", {'layout': 'monadtall'}),
("SYS", {'layout': 'monadtall'}), Group("SYS", {'layout': 'monadtall'}),
("DOC", {'layout': 'monadtall'}), Group("DOC", {'layout': 'monadtall'}),
("VBOX", {'layout': 'monadtall'}), Group("VBOX", {'layout': 'monadtall'}),
("CHAT", {'layout': 'monadtall'}), Group("CHAT", {'layout': 'monadtall'}),
("MUS", {'layout': 'monadtall'}), Group("MUS", {'layout': 'monadtall'}),
("VID", {'layout': 'monadtall'}), Group("VID", {'layout': 'monadtall'}),
("GFX", {'layout': 'floating'})] Group("GFX", {'layout': 'floating'})]
# Allow MODKEY+[0 through 9] to bind to groups, see https://docs.qtile.org/en/stable/manual/config/groups.html # 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 + index Number : Switch to Group[index]
# MOD4 + shift + index Number : Send active window to another Group # MOD4 + shift + index Number : Send active window to another Group
from libqtile.dgroups import simple_key_binder from libqtile.dgroups import simple_key_binder
dgroups_key_binder = simple_key_binder("mod4") dgroups_key_binder = simple_key_binder("mod4")
#+END_SRC #+END_SRC
* Settings For Some Layouts * Settings For Some Layouts
@@ -489,7 +489,7 @@ def init_widgets_list():
widget.TextBox( widget.TextBox(
text = '', text = '',
background = colors[0], background = colors[0],
foreground = colors[4], foreground = colors[5],
padding = 0, padding = 0,
fontsize = 37 fontsize = 37
), ),
@@ -497,33 +497,33 @@ def init_widgets_list():
interface = "enp6s0", interface = "enp6s0",
format = '{down} ↓↑ {up}', format = '{down} ↓↑ {up}',
foreground = colors[2], foreground = colors[2],
background = colors[4], background = colors[5],
padding = 5 padding = 5
), ),
widget.TextBox( widget.TextBox(
text = '', text = '',
background = colors[4], background = colors[5],
foreground = colors[5], foreground = colors[4],
padding = 0, padding = 0,
fontsize = 37 fontsize = 37
), ),
widget.TextBox( widget.TextBox(
text = " 🌡 TEMP NOT SHOWN ", text = " 🌡",
padding = 2, padding = 2,
foreground = colors[2], foreground = colors[2],
background = colors[5], background = colors[4],
fontsize = 11 fontsize = 11
), ),
# widget.ThermalSensor( widget.ThermalSensor(
# foreground = colors[2], foreground = colors[2],
# background = colors[5], background = colors[4],
# threshold = 90, threshold = 90,
# padding = 5 padding = 5
# ), ),
widget.TextBox( widget.TextBox(
text='', text='',
background = colors[5], background = colors[4],
foreground = colors[4], foreground = colors[5],
padding = 0, padding = 0,
fontsize = 37 fontsize = 37
), ),
@@ -531,7 +531,7 @@ def init_widgets_list():
text = "", text = "",
padding = 2, padding = 2,
foreground = colors[2], foreground = colors[2],
background = colors[4], background = colors[5],
fontsize = 14 fontsize = 14
), ),
widget.CheckUpdates( widget.CheckUpdates(
@@ -540,45 +540,26 @@ def init_widgets_list():
display_format = "{updates} Updates", display_format = "{updates} Updates",
foreground = colors[2], foreground = colors[2],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')}, mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')},
background = colors[4] background = colors[5]
), ),
widget.TextBox( widget.TextBox(
text = '', 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], background = colors[5],
foreground = colors[4], foreground = colors[4],
padding = 0, padding = 0,
fontsize = 37 fontsize = 37
), ),
widget.TextBox( widget.TextBox(
text = " ", text = " 🖬",
foreground = colors[2],
background = colors[4],
padding = 0, padding = 0,
foreground = colors[2], fontsize = 14
background = colors[4],
fontsize = 12
), ),
widget.BitcoinTicker( widget.Memory(
foreground = colors[2], foreground = colors[2],
background = colors[4], background = colors[4],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
padding = 5 padding = 5
), ),
widget.TextBox( widget.TextBox(
@@ -703,7 +684,6 @@ mouse = [
] ]
dgroups_app_rules = [] # type: List dgroups_app_rules = [] # type: List
main = None
follow_mouse_focus = True follow_mouse_focus = True
bring_front_click = False bring_front_click = False
cursor_warp = False cursor_warp = False
@@ -725,6 +705,12 @@ floating_layout = layout.Floating(float_rules=[
]) ])
auto_fullscreen = True auto_fullscreen = True
focus_on_window_activation = "smart" 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 #+END_SRC
* Startup applications * Startup applications
+8 -1
View File
@@ -3,8 +3,15 @@
festival --tts $HOME/.config/qtile/welcome_msg & festival --tts $HOME/.config/qtile/welcome_msg &
lxsession & lxsession &
picom & picom &
nitrogen --restore &
/usr/bin/emacs --daemon & /usr/bin/emacs --daemon &
conky -c $HOME/.config/conky/doomone-qtile.conkyrc conky -c $HOME/.config/conky/doomone-qtile.conkyrc
volumeicon & volumeicon &
nm-applet & nm-applet &
### UNCOMMENT ONLY ONE OF THE FOLLOWING THREE OPTIONS! ###
# 1. Uncomment to restore last saved wallpaper
xargs xwallpaper --stretch < ~/.xwallpaper &
# 2. Uncomment to set a random wallpaper on login
# find /usr/share/backgrounds/dtos-backgrounds/ -type f | shuf -n 1 | xargs xwallpaper --stretch &
# 3. Uncomment to set wallpaper with nitrogen
# nitrogen --restore &
+44 -59
View File
@@ -8,7 +8,8 @@ from libqtile.config import Click, Drag, Group, KeyChord, Key, Match, Screen
from libqtile.command import lazy from libqtile.command import lazy
from libqtile import layout, bar, widget, hook from libqtile import layout, bar, widget, hook
from libqtile.lazy import lazy 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
mod = "mod4" # Sets mod key to SUPER/WINDOWS mod = "mod4" # Sets mod key to SUPER/WINDOWS
myTerm = "alacritty" # My terminal of choice myTerm = "alacritty" # My terminal of choice
@@ -214,21 +215,21 @@ keys = [
]) ])
] ]
group_names = [("WWW", {'layout': 'monadtall'}), groups = [Group("WWW", {'layout': 'monadtall'}),
("DEV", {'layout': 'monadtall'}), Group("DEV", {'layout': 'monadtall'}),
("SYS", {'layout': 'monadtall'}), Group("SYS", {'layout': 'monadtall'}),
("DOC", {'layout': 'monadtall'}), Group("DOC", {'layout': 'monadtall'}),
("VBOX", {'layout': 'monadtall'}), Group("VBOX", {'layout': 'monadtall'}),
("CHAT", {'layout': 'monadtall'}), Group("CHAT", {'layout': 'monadtall'}),
("MUS", {'layout': 'monadtall'}), Group("MUS", {'layout': 'monadtall'}),
("VID", {'layout': 'monadtall'}), Group("VID", {'layout': 'monadtall'}),
("GFX", {'layout': 'floating'})] Group("GFX", {'layout': 'floating'})]
groups = [Group(name, **kwargs) for name, kwargs in group_names] # 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]
for i, (name, kwargs) in enumerate(group_names, 1): # MOD4 + shift + index Number : Send active window to another Group
keys.append(Key([mod], str(i), lazy.group[name].toscreen())) # Switch to another group from libqtile.dgroups import simple_key_binder
keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name))) # Send current window to another group dgroups_key_binder = simple_key_binder("mod4")
layout_theme = {"border_width": 2, layout_theme = {"border_width": 2,
"margin": 8, "margin": 8,
@@ -363,7 +364,7 @@ def init_widgets_list():
widget.TextBox( widget.TextBox(
text = '', text = '',
background = colors[0], background = colors[0],
foreground = colors[4], foreground = colors[5],
padding = 0, padding = 0,
fontsize = 37 fontsize = 37
), ),
@@ -371,33 +372,33 @@ def init_widgets_list():
interface = "enp6s0", interface = "enp6s0",
format = '{down} ↓↑ {up}', format = '{down} ↓↑ {up}',
foreground = colors[2], foreground = colors[2],
background = colors[4], background = colors[5],
padding = 5 padding = 5
), ),
widget.TextBox( widget.TextBox(
text = '', text = '',
background = colors[4], background = colors[5],
foreground = colors[5], foreground = colors[4],
padding = 0, padding = 0,
fontsize = 37 fontsize = 37
), ),
widget.TextBox( widget.TextBox(
text = " 🌡 TEMP NOT SHOWN ", text = " 🌡",
padding = 2, padding = 2,
foreground = colors[2], foreground = colors[2],
background = colors[5], background = colors[4],
fontsize = 11 fontsize = 11
), ),
# widget.ThermalSensor( widget.ThermalSensor(
# foreground = colors[2], foreground = colors[2],
# background = colors[5], background = colors[4],
# threshold = 90, threshold = 90,
# padding = 5 padding = 5
# ), ),
widget.TextBox( widget.TextBox(
text='', text='',
background = colors[5], background = colors[4],
foreground = colors[4], foreground = colors[5],
padding = 0, padding = 0,
fontsize = 37 fontsize = 37
), ),
@@ -405,7 +406,7 @@ def init_widgets_list():
text = "", text = "",
padding = 2, padding = 2,
foreground = colors[2], foreground = colors[2],
background = colors[4], background = colors[5],
fontsize = 14 fontsize = 14
), ),
widget.CheckUpdates( widget.CheckUpdates(
@@ -414,45 +415,26 @@ def init_widgets_list():
display_format = "{updates} Updates", display_format = "{updates} Updates",
foreground = colors[2], foreground = colors[2],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')}, mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')},
background = colors[4] background = colors[5]
), ),
widget.TextBox( widget.TextBox(
text = '', 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], background = colors[5],
foreground = colors[4], foreground = colors[4],
padding = 0, padding = 0,
fontsize = 37 fontsize = 37
), ),
widget.TextBox( widget.TextBox(
text = " ", text = " 🖬",
foreground = colors[2],
background = colors[4],
padding = 0, padding = 0,
foreground = colors[2], fontsize = 14
background = colors[4],
fontsize = 12
), ),
widget.BitcoinTicker( widget.Memory(
foreground = colors[2], foreground = colors[2],
background = colors[4], background = colors[4],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
padding = 5 padding = 5
), ),
widget.TextBox( widget.TextBox(
@@ -562,9 +544,7 @@ mouse = [
Click([mod], "Button2", lazy.window.bring_to_front()) Click([mod], "Button2", lazy.window.bring_to_front())
] ]
dgroups_key_binder = None
dgroups_app_rules = [] # type: List dgroups_app_rules = [] # type: List
main = None
follow_mouse_focus = True follow_mouse_focus = True
bring_front_click = False bring_front_click = False
cursor_warp = False cursor_warp = False
@@ -581,6 +561,11 @@ floating_layout = layout.Floating(float_rules=[
]) ])
auto_fullscreen = True auto_fullscreen = True
focus_on_window_activation = "smart" 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
@hook.subscribe.startup_once @hook.subscribe.startup_once
def start_once(): def start_once():
+1 -1
View File
@@ -2,7 +2,6 @@
#+PROPERTY: header-args :tangle xmonad.hs #+PROPERTY: header-args :tangle xmonad.hs
#+STARTUP: showeverything #+STARTUP: showeverything
#+AUTHOR: Derek Taylor #+AUTHOR: Derek Taylor
#+DATE: 06-16-2021
* Table Of Contents :toc: * Table Of Contents :toc:
- [[#about-this-config][About This Config]] - [[#about-this-config][About This Config]]
@@ -24,6 +23,7 @@
Xmonad is a dynamically tiling X11 window manager that is written and configured in Haskell. Xmonad is a dynamically tiling X11 window manager that is written and configured in Haskell.
- XMonad Official Website: [[https://xmonad.org][https://xmonad.org]] - XMonad Official Website: [[https://xmonad.org][https://xmonad.org]]
- Haskell Official Website: https://haskell.org
This is the xmonad configuration of Derek Taylor (DistroTube) This is the xmonad configuration of Derek Taylor (DistroTube)
- My YouTube: [[http://www.youtube.com/c/DistroTube][http://www.youtube.com/c/DistroTube]] - My YouTube: [[http://www.youtube.com/c/DistroTube][http://www.youtube.com/c/DistroTube]]