You are not logged in.

#1 2023-09-12 08:48:30

tuxtips
Member
Registered: 2021-06-26
Posts: 4

[SOLVED] Qtile scratchpad toggle not working

Hi,

I have a problem with scratchpads in Qtile and haven't been able to find a solution so far.

In my config.py I have:

groups.append(
    ScratchPad("sp", [DropDown("term", "alacritty")]),
)

and my keybinding:

Key([mod], "p", lazy.group['sp'].dropdown_toggle('term')),

When i hit mod+p, alacritty opens on a separate group, and when I hit mod+p again, nothing happens. Afaik, it should toggle the window on the current group.
I guess I have all the needed imports:

import os
import subprocess
from libqtile.config import Click, Drag, Group, Key, KeyChord, Match, Rule, Screen, ScratchPad, DropDown
from libqtile.command import lazy
from libqtile import bar, hook, layout, qtile, widget
from libqtile.utils import guess_terminal

What else should I do to make it work as expected?
Thanks in advance.

Last edited by tuxtips (2023-09-13 11:44:35)

Offline

#2 2023-09-13 11:41:50

tuxtips
Member
Registered: 2021-06-26
Posts: 4

Re: [SOLVED] Qtile scratchpad toggle not working

Solved. I had a strange hook defined at the end of the config file. That was probably causing the mess.

Offline

Board footer

Powered by FluxBB