There is a package named orcsome that add some window manager hooks with python-xlib. keyszer has python-xlib dependency, it make sense to combine the functionality. Just too more hooks:
- focus change hook and add two more function to that hook:
- function to solve focus problem with window manager, ie. sometimes when focused window closes, the focus is not on the next top window, eg. focus go to the taskbar. In that case, we can make a function to move the focus back to application window.
- function to auto switch input method, eg. swith to terminal, disable non-english input method.
- new window or window size change hook and add the following function:
- function to save new window layout on window change, just like emacs winner-mode or eye-browse. I am using openbox, and I go to previous window with Alt-Tab. I need many key stroke or mouse click to get back to a certain window layout. For stacking winndow manager, there is a good start point here: https://github.com/nlfiasel/orcsome-desktop-snapshot
I am not familiar with python-xlib, it might be trivial to add these hooks in the event loop.
There is a package named orcsome that add some window manager hooks with python-xlib. keyszer has python-xlib dependency, it make sense to combine the functionality. Just too more hooks:
I am not familiar with python-xlib, it might be trivial to add these hooks in the event loop.