udiskie
udiskie copied to clipboard
Keyboard shortcuts?
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?
Hi, there are no global hotkeys currently. Should there be?
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.
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 mainudiskiecommand.
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.
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 mainudiskiecommand.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.
There's this:
https://github.com/fogine/udiskie-dmenu
Which is just a wrapper around udiskie-info -a and udiskie-mount/udiskie-umount.
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