Skip to content

Commit

Permalink
Fix keyboardlayout widget for variants with hyphens
Browse files Browse the repository at this point in the history
Same fix as #4228 but for variants.
  • Loading branch information
M7S authored and tych0 committed Mar 24, 2024
1 parent 73024e1 commit f46b2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libqtile/widget/keyboardlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def set_keyboard(self, layout: str, options: str | None) -> None:

class _X11LayoutBackend(_BaseLayoutBackend):
kb_layout_regex = re.compile(r"layout:\s+(?P<layout>[\w-]+)")
kb_variant_regex = re.compile(r"variant:\s+(?P<variant>\w+)")
kb_variant_regex = re.compile(r"variant:\s+(?P<variant>[\w-]+)")

def get_keyboard(self) -> str:
try:
Expand Down

0 comments on commit f46b2e1

Please sign in to comment.