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/oss/ossmixerwindow.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/ui/oss/ossmixerwindow.h') diff --git a/src/ui/oss/ossmixerwindow.h b/src/ui/oss/ossmixerwindow.h index 0b9f087..fec2bab 100644 --- a/src/ui/oss/ossmixerwindow.h +++ b/src/ui/oss/ossmixerwindow.h @@ -13,6 +13,7 @@ class TQHBoxLayout; class TQLabel; class TQWidgetStack; class TQWidget; +class TDEGlobalAccel; class OssMixerWindow : public TDEMainWindow { @@ -31,6 +32,12 @@ public slots: void showPreferences(); void showAbout(); +private slots: + void slotVolumeUp(); + void slotVolumeDown(); + void slotToggleMute(); + void slotConfigureGlobalShortcuts(); + protected: bool queryClose(); void showEvent( TQShowEvent *e ); @@ -42,8 +49,9 @@ private slots: private: void rebuildTabs( int cardIdx ); - OssModel *m_model; - OssTray *m_tray; + OssModel *m_model; + OssTray *m_tray; + TDEGlobalAccel *m_globalAccel; bool m_posRestored; TQWidgetStack *m_outerStack; TQLabel *m_errorLabel; -- cgit v1.2.3