summaryrefslogtreecommitdiff
path: root/src/ui/mixerwindow.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/mixerwindow.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/mixerwindow.h')
-rw-r--r--src/ui/mixerwindow.h8
1 files changed, 8 insertions, 0 deletions
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;