Update config due to changes in API

This commit is contained in:
Emma Nora Theuer 2024-09-22 13:03:17 +02:00
parent 8dbb40a23e
commit 666520447a
2 changed files with 5 additions and 2 deletions

View file

@ -21,12 +21,15 @@ import os
import re import re
import subprocess import subprocess
from libqtile.config import KeyChord, Key, Screen, Group, Drag, Click from libqtile.config import KeyChord, Key, Screen, Group, Drag, Click
from libqtile.command import lazy from libqtile.lazy 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 typing import List # noqa: F401
#+END_SRC #+END_SRC
#+RESULTS:
: None
** Variables ** Variables
Variables in a Programming language can contain a string or a number. While configuring a Window Manager, this is useful, if you want to repeat the same string a lot of times. Variables in a Programming language can contain a string or a number. While configuring a Window Manager, this is useful, if you want to repeat the same string a lot of times.
If, for example, I used my terminal a lot of times in the config and I were to change my default terminal, I would have to replace every occurence of the Terminal name in the config. In this case, where I only have to change that string once, that is when defining the string. If, for example, I used my terminal a lot of times in the config and I were to change my default terminal, I would have to replace every occurence of the Terminal name in the config. In this case, where I only have to change that string once, that is when defining the string.

View file

@ -6,7 +6,7 @@ import os
import re import re
import subprocess import subprocess
from libqtile.config import KeyChord, Key, Screen, Group, Drag, Click from libqtile.config import KeyChord, Key, Screen, Group, Drag, Click
from libqtile.command import lazy from libqtile.lazy 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 typing import List # noqa: F401