I would like to use the appostrophe character as a group, but I can't get
it to work properly.
This is what I try:
# Regular key assignment
group_str = "hneio" # Apostrophe is right next to o character and would be
super convenient to use
# Yes, my keyboard layout is a bit unusual
groups = [Group(i) for i in group_str]
for i in groups:
# mod1 + letter of group = switch to group
keys.append(
Key([mod], i.name, lazy.group[i.name].toscreen())
)
# mod1 + shift + letter of group = switch to & move focused window to
group
keys.append(
Key([mod, "shift"], i.name, lazy.window.togroup(i.name))
)
# Append special ' key group outside for loop
a = Group("Q") # Name shouldn't be an issue
keys.append(
Key([mod], 'apostrophe', lazy.group[a.name].toscreen())
)
keys.append(
Key([mod, "shift"], 'apostrophe', lazy.window.togroup(a.name))
)
Using MOD+' and MOD+SHIFT+' actually activates the lazy.group commands, but
it gives an error and the output is
2015-04-02 10:28:01,394 qtile handle_KeyPress:855 KB command error
toscreen: No object group['Q'] in path 'group['Q']'
2015-04-02 10:28:03,433 qtile _xpoll:656 Handling: KeyPress
2015-04-02 10:28:03,433 qtile handle_KeyPress:855 KB command error
toscreen: No object group['Q'] in path 'group['Q']'
2015-04-02 10:28:04,213 qtile _xpoll:656 Handling: KeyPress
2015-04-02 10:28:04,214 qtile call:91 Command: togroup(('Q',), {})
2015-04-02 10:28:04,214 qtile handle_KeyPress:855 KB command error
togroup: No such group: Q
2015-04-02 10:28:05,056 qtile _xpoll:656 Handling: KeyPress
2015-04-02 10:28:05,056 qtile call:91 Command: togroup(('Q',), {})
2015-04-02 10:28:05,057 qtile handle_KeyPress:855 KB command error
togroup: No such group: Q
Any idea of what is going wrong here? If I test the code, everything works
but there is no Q group in the GroupBox widget and the command gives a
non-critical error. Even if I don't use approstrophe, I cannot assign a
group outside the for i in groups: for loop. Why not?
I don't know how I would assign the apostrophe inside the for loop. I have
tried:
groups = [Group(i) for i in "hneio'"]
groups = [Group(i) for i in "hneio\'"]
with no success.
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.