Skip to content

Conversation

szbmrk
Copy link
Contributor

@szbmrk szbmrk commented May 15, 2025

This PR implements multiple new features to improve the usage of the binding mode widget.

Cycling through modes

  • new callbacks next_binding_mode and prev_binding_mode, with these the user can cycle through workspaces in order that is given in the binding_modes_to_cycle_through option. Example for the binding_modes_to_cycle_through option: ['none', 'resize', 'pause']

Icons improvement

  • icons option enables user to specify an icon for each binding mode based on the name of the mode.
    • example {'pause' : '\uf28c'}
  • default_icon option is used for the modes where the user didn't specify an icon

CSS improvement

  • added class to handle offline labels
  • added classes for each of the different mode icons specified

@szbmrk szbmrk force-pushed the feat/glazewm-binding-mode branch from e84599c to c71680e Compare May 15, 2025 17:48
@amnweb
Copy link
Owner

amnweb commented May 20, 2025

Can you clean up the commit history before the merge?

@szbmrk
Copy link
Contributor Author

szbmrk commented May 20, 2025

Yep i will do that when i get to a computer, should i keep 2 commits only?

szbmrk added 2 commits May 20, 2025 22:41
…-offline` css class, better icon handling

This commit implements multiple improvements to the GlazeWM Binding Mode Widget.
@szbmrk szbmrk force-pushed the feat/glazewm-binding-mode branch from c71680e to a2c998f Compare May 20, 2025 20:41
@szbmrk
Copy link
Contributor Author

szbmrk commented May 20, 2025

I did the cleaning up :)

@amnweb amnweb merged commit 1816da8 into amnweb:main May 21, 2025
@szbmrk szbmrk deleted the feat/glazewm-binding-mode branch May 21, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants