Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nwgbar: Better Shorcuts #194

Open
Figuera opened this issue Oct 31, 2021 · 1 comment
Open

nwgbar: Better Shorcuts #194

Figuera opened this issue Oct 31, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Figuera
Copy link

Figuera commented Oct 31, 2021

The current way of setting shortcuts in nwgbar is somewhat limited. You can only use the Alt key as the modifier and the other key has to be present in the name.

Can't we just add another option to the JSON file in other to more freely define shortcuts, how about:

[
  {
    "name": "Lock screen",
    "exec": "swaylock -f -c 000000",
    "icon": "system-lock-screen",
    "cmd": "Mod1+l"
  },
  {
    "name": "Logout",
    "exec": "swaymsg exit",
    "icon": "system-log-out",
    "cmd": "Mod1+l"
  },
  {
    "name": "Reboot",
    "exec": "systemctl reboot",
    "icon": "system-reboot",
    "cmd": "Mod1+r"
  },
  {
    "name": "Shutdown",
    "exec": "systemctl -i poweroff",
    "icon": "system-shutdown",
    "cmd": "Mod1+s"
  }
]

Maybe enabling multiple modifiers is more work than it is worth since using another option instead of the "_" will solve must of my issues.

@Siborgium Siborgium added the enhancement New feature or request label Nov 1, 2021
@Siborgium
Copy link
Collaborator

I'm not sure it can be done using standard Gtk methods. I'll check what can be done after #195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants