udiskie icon indicating copy to clipboard operation
udiskie copied to clipboard

Keyboard shortcuts?

Open yurkobb opened this issue 5 years ago • 6 comments
trafficstars

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?

yurkobb avatar Jul 10 '20 17:07 yurkobb

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

coldfix avatar Jul 11 '20 10:07 coldfix

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.

yurkobb avatar Jul 11 '20 10:07 yurkobb

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.

coldfix avatar Jul 11 '20 11:07 coldfix

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.

yurkobb avatar Jul 11 '20 12:07 yurkobb

There's this:

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

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

somini avatar Sep 20 '20 18:09 somini

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

somini avatar Sep 20 '20 18:09 somini