Open tuurep opened 9 months ago
Maybe I could make a folder like:
click-actions/
close
minimize
raise
and those "default" actions are just like:
close
#!/bin/sh
../main --close "$1"
Then the default bindings could be changed with these options:
config.toml
active_window_click_left = "minimize"
inactive_window_click_left = "raise"
active_window_click_right = "close"
inactive_window_click_right = "close"
active_window_click_middle = "none"
inactive_window_click_middle = "none"
active_window_scroll_up = "none"
inactive_window_scroll_down = "none"
More advanced ideas:
Window separators could be clickable, and give 2 arguments to sh script: previous window id and current window id. This would for example make it possible to manually sort windows such that clicking on the separator swaps places of the adjacent two windows.
Clicking on overflow string could give list of all window ids. Close all windows that aren't visible on the bar? Or something like that.
Clicking on empty_desktop_string could for example launch a terminal or whatever.
Above PR seems like a good solution for window names (only).
A couple questions:
sh
such as sh <path to script> <wid as argument>
?
#!/bin/sh
redundant since I run them with sh
?
chmod +x
)?Forces to use system shell, even though using something like python might make sense too.
User window name click actions now writable in any language as long as:
Hopefully the README explanation is clear.
Not closing yet since these ideas are still floating around:
More advanced ideas:
Window separators could be clickable, and give 2 arguments to sh script: previous window id and current window id. This would for example make it possible to manually sort windows such that clicking on the separator swaps places of the adjacent two windows.
Clicking on overflow string could give list of all window ids. Close all windows that aren't visible on the bar? Or something like that.
Clicking on empty_desktop_string could for example launch a terminal or whatever.
I want it to be possible for user to be able to freely choose which mouse button does which action.
Currently there are only 2 actions:
Middle click and scroll actions are currently unused. Polywins had neat functionality on them:
One thing that would be extremely neat: just add option to give a path to a script
wmctrl
,xdotool
andxdo
you can achieve literally anything.Ideas for click-action functionality welcome in comments.