Commit 46609155 authored by minus's avatar minus

Add Firefox volume control

parent 0d118523
......@@ -9,7 +9,7 @@ alsa = dependency('alsa')
glib = dependency('glib-2.0')
executable('panelcontrol',
['panelcontrol.c', 'alsa.c', 'pa.c', 'pa_siso_watch_list.c'],
['panelcontrol.c', 'alsa.c', 'pa.c', 'pa_siso_watch_list.c', 'volume.c'],
dependencies : [pa, alsa, glib],
install : true)
......
......@@ -132,6 +132,19 @@ int main(int argc, char *argv[]) {
encoder_callback_add(ENC2, encoder_volume, mpv);
struct siso_watch *ff = siso_add_name(&sink_inputs, "AudioStream");
ff->userdata = &(struct show_mute_and_speakers_config){
.sp = &sp,
.button_mute = TOP3,
.button_speakers = BOTTOM3,
};
ff->volume_changed = show_mute_and_speakers;
button_callback_add(TOP3, button_mute, ff);
button_callback_add(BOTTOM3, button_sink, ff);
encoder_callback_add(ENC3, encoder_volume, ff);
gchar *args[] = {"stewdio-textcmd", "https://radio.stew.moe/api/", "minus", NULL};
int child_stdout, child_stdin;
g_autoptr(GError) error = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment