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/alsa/alsamixerwindow.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/ui/alsa/alsamixerwindow.h') diff --git a/src/ui/alsa/alsamixerwindow.h b/src/ui/alsa/alsamixerwindow.h index 8d8ef4f..c11bec9 100644 --- a/src/ui/alsa/alsamixerwindow.h +++ b/src/ui/alsa/alsamixerwindow.h @@ -12,6 +12,7 @@ class TQComboBox; class TQTabWidget; class TQHBoxLayout; class TQWidget; +class TDEGlobalAccel; class AlsaMixerWindow : public TDEMainWindow { @@ -37,12 +38,17 @@ private slots: void onDeviceAdded( AlsaDevice *dev ); void showPreferences(); void showAbout(); + void slotVolumeUp(); + void slotVolumeDown(); + void slotToggleMute(); + void slotConfigureGlobalShortcuts(); private: void rebuildTabs( int cardIndex ); - AlsaModel *m_model; - AlsaTray *m_tray; + AlsaModel *m_model; + AlsaTray *m_tray; + TDEGlobalAccel *m_globalAccel; bool m_posRestored; TQComboBox *m_cardCombo; TQTabWidget *m_tabs; -- cgit v1.2.3