summaryrefslogtreecommitdiff
path: root/src/ui/alsa/alsamixerwindow.h
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-05-29 23:00:50 -0400
committerCalvin Morrison <calvin@pobox.com>2026-05-29 23:01:37 -0400
commitf929977083c64263c54de43554a6cb64814caa9c (patch)
tree55c49d946ab05f7f60880076b89966b94d122de5 /src/ui/alsa/alsamixerwindow.h
parent4c9dd31005405aa0a32e36e4b500d773da9a1264 (diff)
add global hotkeys for volume and mute across all backends
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 <calvin@pobox.com>
Diffstat (limited to 'src/ui/alsa/alsamixerwindow.h')
-rw-r--r--src/ui/alsa/alsamixerwindow.h10
1 files changed, 8 insertions, 2 deletions
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;