Skip to content

Feature request: add some window manager event hooks #70

@QiangF

Description

@QiangF

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:
  1. 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.
  2. 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:
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrequestFeature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions