workspace hopping

27 views
Skip to first unread message

Luc Serre

unread,
Oct 19, 2021, 8:39:06 AM10/19/21
to qtile-dev
Am I right that there is no current method of avoiding the following situation?

If for example I'm on a group "1" and move to group "2" and then I hit mod+2 while still on group "'2", it toggles back to group "1" instead of staying on group "2".

Thanks,
-Luc

Gibranlp

unread,
Oct 19, 2021, 9:32:40 AM10/19/21
to qtile-dev
yo can use toggle=false in your group keys like this

for i in groups:
keys.append(Key([mod], i.name, lazy.group[i.name].toscreen(toggle=False)))
keys.append(Key([mod, 'shift'], i.name, lazy.window.togroup(i.name)))
return keys

This way, you will not toggle between the last group

Luc Serre

unread,
Oct 19, 2021, 12:15:48 PM10/19/21
to qtile-dev
Thanks!!  Now that you mentioned it... I looked it up in the code and see why/how that works. Thanks for your help.
-Luc
Reply all
Reply to author
Forward
0 new messages