-
-
Save tych0/2165083 to your computer and use it in GitHub Desktop.
new windows don't steal focus from prompt widget | |
* make new windows stealing focus configurable | |
default config in /etc/qtile/config.py |
libqtile/manager.py/cmd_function, btw ;)
Ah, cool. Looks exactly like what I had :-). And yeah, I think my branch is the only one with 1.3.1 merged into it.
Right, I ran a diff last night with your master v freedesktop/master and I poured over it a lil' and it seems there are quite a few changes here and there.
I'd like to test that cmd_function a bit more and also, maybe look into creating a decorator to apply to functions?
Something like:
@keycommand(Key([alt], "f"))
def super_awesome_function(qtile):
qtile.groupMap['group1'].windows
# do awesome cool stuffs
return 1
Thoughts on that? Lazy has a reference to Qtile therefore a reference to the commands. Could work with some minor modifications to manager.Key.
Finally, me and Cjbarnes had a pretty boss idea of having app specific key maps using the Qtile.keyMap dictionary and mutating it on python client_new
and python focus_change
hooks. Thoughts on that? Could even hook layout_change to modally change the keyMap because there are some commands that become rundundant in people's configs in certain layout modes.
Just a thought, the keyMap mechanism is very interesting!
Evidentally, I'm a github markdown noob,
Do you recommend a diff against your branch?