qtile: Fix pinned screen, add trackball keybinding

This commit is contained in:
Joseph Ferano 2025-06-24 18:43:22 +07:00
parent 17a4592aa9
commit dd61440e6a

View File

@ -131,6 +131,7 @@ keys = [
Key([mod], "w", lazy.next_layout(), desc="Toggle between layouts"),
Key([mod, "control"], "w", lazy.function(get_current_window_info), desc="Get window info"),
Key([mod], "s", lazy.spawn("flameshot gui"), desc="Flameshot screenshot"),
Key([mod], "m", lazy.spawn("/home/joe/.local/scripts/trackball.sh", shell=True)),
# TODO: Figure out another binding for this
# Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),
@ -257,11 +258,10 @@ groups[0].label = '🎵'
# groups.insert(0, Group('1', screen_affinity=0, label='🎵'))
# This likely won't work when we only have 1 monitor
def go_to_group(name: str) -> Callable:
def _inner(qtile) -> None:
if num_monitors > 1:
if name == '1':
if name == '0':
qtile.focus_screen(0)
else:
qtile.focus_screen(1)