Skip to content

How this theme works with Qtile

dollplayer2501 edited this page Sep 22, 2023 · 4 revisions

In my case, I use Qtile on EndeavourOS, so this is the premise.
For your reference, EndeavourOS-Community-Editions/qtile: setup for Qtile EOS-CE

1. Add this theme's startup script to Qtile's startup script.

My Qtile's startup script is ~/.config/qtile/autostart.sh.
And this theme is assumed to be deployed to ~/.config/conky/angle_minus_five_degrees.

~/.config/conky/angle_minus_five_degrees/start.sh & disown

2. Add a screen that does't dare to do anything to Qtile's virtual screen.

In my case, ~/.config/qtile/modules/groups.py.
See Group 9 at the code below.

groups = [
  Group('1', position = 1, init = True, persist = True, label = '1.Terminal', layout = 'tile', matches = [Match(wm_class = ['Alacritty'])],),
  Group('2', position = 2, init = False, persist = False, label = '2.Code', layout = 'max', matches = [Match(wm_class = ['code-oss'])],),
    :
  Group('9', position = 9, init = True, persist = True, label = '9.Null', layout = 'max', ),
]

With this above, you can jump to a virtual screen for the purpose of not display any application with Mod + 9.
And I don't dare to use Qtile's libqtile.widget.Clock().

3. Applications that are always used perform transparent processing with the configuration of the applications or Picom.

I do not set tranparency settings in each application, but set them in Picom. Below is my Picon's transparency settings, ~/.config/picom.conf.

opacity-rule = [
  # xprop | grep WM_CLASS
  # I dont catch it and understand 'Qtile'...
  # then Qtile is own control.

  "90:class_g = 'Alacritty' && focused",
  "70:class_g = 'Alacritty' && !focused",
  "90:class_g = 'code-oss' && focused",
  "70:class_g = 'code-oss' && !focused",
  :
];

4. For the above...

The terminal and text editor that I mainly use always show the current time transparently (or I look directory at a wall clock or wristwatch), and if I want to know other information, I can get various information with Mod + 9.

The image below is Mod + 9.

The image below is Mod + 1, terminal, Alacritty.

The image below is Mod + 2, editor, Code OSS(VS Code).