blueman icon indicating copy to clipboard operation
blueman copied to clipboard

[Feature request] Add keyboard shortcuts to blueman

Open erdnaxe opened this issue 3 years ago • 7 comments

blueman: 2.1.4 BlueZ: 5.55 Distribution: NixOS 20.09 Desktop environment: i3+XFCE

Currently to close Blueman "Bluetooth Devices" window I need to input ALT+A then E. Would it be possible to bind at least some "exit" shortcuts such as ESC, CTRL-Q or CTRL-W?

This is also problematic with the "Plugins" and "Bluetooth Adapters" windows witch are impossible to close on i3.

erdnaxe avatar Apr 22 '21 12:04 erdnaxe

#1406 added support for CTRL-Q and CTRL-W. It's in master and will be part of 2.2.

cschramm avatar Apr 24 '21 17:04 cschramm

Oh I was not aware of #1406, this is nice. Does #1406 only apply to the main window, or also to "Plugins" and "Bluetooth Adapters" windows?

erdnaxe avatar Apr 24 '21 18:04 erdnaxe

Unfortunately not. It only applies to blueman-manager. The plugin dialog is part of blueman-applet and the adapters are blueman-adapters. It would be the same logic for blueman-adapters but blueman-applet is not a GtkApplication, so it does not have the same set_accels_for_action method.

cschramm avatar Apr 25 '21 05:04 cschramm

This is also problematic with the "Plugins" and "Bluetooth Adapters" windows witch are impossible to close on i3.

It is much less problematic as I don't open these windows everyday, but I believe it is still an issue. Feel free to change the title/close this issue if you think this should not be fixed.

erdnaxe avatar Apr 25 '21 09:04 erdnaxe

As I said, it's trivial for blueman-adapters, so I guess it's worth it. Regarding blueman-applet we'd have to switch it to GtkApplication to get the same. I'm not sure if @infirit had any specific reason not to use it in #1304.

cschramm avatar Apr 27 '21 11:04 cschramm

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 27 '21 00:06 github-actions[bot]

As I said, it's trivial for blueman-adapters, so I guess it's worth it. Regarding blueman-applet we'd have to switch it to GtkApplication to get the same. I'm not sure if @infirit had any specific reason not to use it in #1304.

Short answer, there was no need for what GtkApplication provides over GApplication. It should be trivial to make it GtkApplication though.

infirit avatar Nov 10 '21 21:11 infirit

Closing blueman-adapters with a shortcut/escape per #1946

infirit avatar Nov 24 '22 09:11 infirit

I have added closing the pluginwindow, blueman-adapters and blueman-services with Ctrl+w, Escape and Ctrl+q only when we actually quit in #1927. Are there other areas that need a shortcut for blueman 2.4?

infirit avatar Dec 10 '22 17:12 infirit