Skip to content

Instantly share code, notes, and snippets.

@tych0
Created March 22, 2012 22:22
Show Gist options
  • Save tych0/2165083 to your computer and use it in GitHub Desktop.
Save tych0/2165083 to your computer and use it in GitHub Desktop.
Qtile TODO
new windows don't steal focus from prompt widget
* make new windows stealing focus configurable
default config in /etc/qtile/config.py
@tych0
Copy link
Author

tych0 commented Mar 27, 2012

Feel free to look yourself:
git remote add freedesktop git://anongit.freedesktop.org/xcb/xpyb
git diff master freedesktop/master

@AeroNotix
Copy link

Do you recommend a diff against your branch?

@AeroNotix
Copy link

libqtile/manager.py/cmd_function, btw ;)

@tych0
Copy link
Author

tych0 commented Mar 27, 2012

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.

@AeroNotix
Copy link

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!

@AeroNotix
Copy link

Evidentally, I'm a github markdown noob,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment