gonzaarcr / Fildem

Fildem global menu
GNU General Public License v3.0
805 stars 86 forks source link

How to change the HUD shortcut: Alt + Space #142

Open drnxloc opened 2 years ago

drnxloc commented 2 years ago

I can't find a way to change the keyboard shortcut: Alt + Space

PromethiumL commented 2 years ago

My workaround:

  1. find the egg file that fildem is using, e.g. locate fildem | grep .egg$
  2. extract the egg file (just unzip it) that fildem is using.
  3. replace the hard-coded <Alt>space in line 22 in fildem/keybinder.py with something else.
    21  if not is_wayland():
    22      Keybinder.bind('<Ctrl><Alt>H', callback, dbus_menu)
    23  # GLib.timeout_add_seconds(1, callback)
    24  try:
    25      GLib.MainLoop().run()
    26  except KeyboardInterrupt:
    27      GLib.MainLoop().quit()
  4. re-zip the file. and replace the original egg file with the modified one (without changing its name).

You may have to log out to make the current HUD binding disappear.