From f929977083c64263c54de43554a6cb64814caa9c Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Fri, 29 May 2026 23:00:50 -0400 Subject: add global hotkeys for volume and mute across all backends MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements TDE Global hotkeys (volume up, volume down, mute, and mic mute for PulseAudio) like KMIX had Keys are unbound by default and configurable via Settings → Configure Global Shortcuts. OSS/ALSA target the user-configured preferred output device. Pusle is based on the current default device for mute/mic mute. Signed-off-by: Calvin Morrison --- src/ui/mixerwindow.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ui/mixerwindow.h') diff --git a/src/ui/mixerwindow.h b/src/ui/mixerwindow.h index 112fc47..170c4e8 100644 --- a/src/ui/mixerwindow.h +++ b/src/ui/mixerwindow.h @@ -13,6 +13,7 @@ class TQToolButton; class DevicesPage; class TQResizeEvent; class TQLabel; +class TDEGlobalAccel; class MixerWindow : public TDEMainWindow { @@ -52,6 +53,11 @@ private slots: void quit(); void onAppAboutToQuit(); void toggleDevices(); + void slotVolumeUp(); + void slotVolumeDown(); + void slotToggleMute(); + void slotToggleInputMute(); + void slotConfigureGlobalShortcuts(); private: Tab &tabForCategory( AudioDevice::Category cat ); @@ -60,6 +66,8 @@ private: void repositionDevicesBtn(); PulseModel *m_model; + AudioDevice *m_defaultDevice; + TDEGlobalAccel *m_globalAccel; KTabWidget *m_tabs; class PreferencesDlg *m_prefsDlg; TQWidgetStack *m_outerStack; -- cgit v1.2.3