miracle-wm-org / miracle-wm

Miracle is a Wayland tiling window manager built on Mir
https://miracle-wm.org
GNU General Public License v3.0
406 stars 13 forks source link

When you hold down "super" for an extended period of time, we should show a little cheatsheet containing all of the currently mapped keybinds #165

Open mattkae opened 4 months ago

mattkae commented 4 months ago

This would be very much akin to CS2's "crosshair guides" that come on when you left click for a long period of time

Requirements

mecattaf commented 2 months ago

If you want to make this an integral part of miracle-wm I have a few thoughts: 1) For custom actions the description of the action associated to the specific shortcut should be a separate field in the config, for example:

custom_actions:           # Set meta + D to open wofi
  - command: wofi --show=drun
    action: down
    modifiers:
      - primary
    key: KEY_D
 > description: drun menu <

2) Ability to search would be HUGE 3) I have a ton of shortcuts, and I really doubt it would all fit on one page. How would you handle this? Scrolling? Multiple pages? 4) Either way it would be nice to be able to set the size that this cheatsheet occupies on the screen (either as % of screen or absolute pixel size for x/y coordinates. Bonus points if we can set the blur amount for the section outside of the cheatsheet


Here are some ways I have seen nice cheat sheets in the past for inspiration:

I would recommend that you make the cheatsheet function an external project. But in the end it's up to you :)

However if you do end up writing a custom tool for this I would like to be able to use it to also display shortcuts that are not a part of miracle-wm.

Finally some aesthetic inspiration: nvchad cheat sheet nvchad-cheatsheet-v0-59pmxg6dumua1

awesomewm built-in cheat sheet: kwmwkdi8rcnw32qqafhb