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

Keyboard shortcuts? #207

Open
yurkobb opened this issue Jul 10, 2020 · 6 comments
Open

Keyboard shortcuts? #207

yurkobb opened this issue Jul 10, 2020 · 6 comments

Comments

@yurkobb
Copy link

yurkobb commented Jul 10, 2020

Maybe I'm missing some info, but I can't find a way to open the tray menu using keyboard; is it possible? More generally, are there any keyboard shortcuts at all?

@coldfix
Copy link
Owner

coldfix commented Jul 11, 2020

Hi, there are no global hotkeys currently. Should there be?

@yurkobb
Copy link
Author

yurkobb commented Jul 11, 2020

For me keyboard shortcuts are a matter of convenience, but for some people (who might not be able to use the mouse at all due to a disability) that might be a question of being able to use udiskie at all.

At the moment if I'm able to open the systray menu, I can in theory navigate using only keyboard from there, although there might be other keyboard usability issues I haven't yet discovered.

Perhaps udiskie doesn't have to implement a keyboard shortcut system on its own - just providing a way to open the menu programmatically (say from command line) would allow configuring a desired keyboard shortcut in the desktop environment / window manager / etc.

Maybe a command like udiskie-show-ui, or an option on the main udiskie command.

@coldfix
Copy link
Owner

coldfix commented Jul 11, 2020

Perhaps udiskie doesn't have to implement a keyboard shortcut system on its own - just providing a way to open the menu programmatically (say from command line) would allow configuring a desired keyboard shortcut in the desktop environment / window manager / etc.

Sounds like providing a CLI based menu directly might be even preferrable here.

Do other applications have shortcuts to open their systray menus? I'm not aware of any.

Maybe a command like udiskie-show-ui, or an option on the main udiskie command.

For this, udiskie first needs some single-instance + message passing logic (which isn't too hard to do, but I don't have much time atm). After that is added, I think such an option would be a natural addition.

@yurkobb
Copy link
Author

yurkobb commented Jul 11, 2020

Do other applications have shortcuts to open their systray menus? I'm not aware of any.

Not exactly menus, but synapse has a configurable shortcut to open its GUI, keepassxc has a single-instance system where just launching the command opens the (hidden) window. So in fact it's less about menus per se, and more about opening the GUI, whatever that is.

Maybe a command like udiskie-show-ui, or an option on the main udiskie command.

For this, udiskie first needs some single-instance + message passing logic (which isn't too hard to do, but I don't have much time atm). After that is added, I think such an option would be a natural addition.

I see.

@somini
Copy link

somini commented Sep 20, 2020

There's this:

https://github.com/fogine/udiskie-dmenu

Which is just a wrapper around udiskie-info -a and udiskie-mount/udiskie-umount.

@somini
Copy link

somini commented Sep 20, 2020

For this, udiskie first needs some single-instance + message passing logic (which isn't too hard to do, but I don't have much time atm). After that is added, I think such an option would be a natural addition.

Just having udiskie-info output JSON with all the information is enough for further hacking, beyond the current output format. This is "solved" like this: https://github.com/fogine/udiskie-dmenu/blob/master/udiskie-dmenu#L18

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

No branches or pull requests

3 participants