LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2020, 06:24 PM   #1
binkyd
Member
 
Registered: Oct 2016
Distribution: Looking again
Posts: 429

Rep: Reputation: 40
Scripting Syntax question


Running this script to start the Pulseaudio Equalizer at startup and minimize it to the tray.
I need a switch to also turn it on, to lazily avoid doing it manually.
Code:
#!/bin/bash
#Equalizer-kdocker-tray
kdocker -d30 -i /usr/share/icons/Papirus-Dark/symbolic/apps/multimedia-equalizer-symbolic.svg /usr/bin/pulseaudio-equalizer-gtk
Couldn't find a man entry for this, and the plain pulseaudio switch of just
Code:
--start
doesn't work.

Any help for this? It's mostly just kinda neat to get it right, btw.
 
Old 06-23-2020, 06:48 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Your scripting syntax is not at question here. The documentation to check are the parameters for kdocker and pulseaudio. That, and to realize that you may be requesting behavior that was not what the maintainers had in mind.

Disclaimer: I do not use kdocker or puleaudio.
 
1 members found this post helpful.
Old 06-23-2020, 06:57 PM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Yup.
binkyd, have you reviewed the man pages? I don’t use either package, either. I did glance at dockers man page, where start doesn’t have hyphens. I note that there’s a man page for each function.
The pulse audio man page says—start “implies —daemon” which would suggest checking the daemon config documentation.

Last edited by scasey; 06-23-2020 at 07:03 PM.
 
Old 06-23-2020, 09:30 PM   #4
binkyd
Member
 
Registered: Oct 2016
Distribution: Looking again
Posts: 429

Original Poster
Rep: Reputation: 40
I looked for man pages for the equalizer and couldn't find any - as I said.
Beg pardon for mistakenly thinking I was dealing with a syntax problem - but I didn't know what else to call it. How would I better have described my issue?
I checked the pulseaudio stuff - it doesn't seem to apply to the pulseaudio equalizer.

I know there are many program families that have these start-up switches, for example all chromium browsers; I hoped someone would know of some general one for this.

Last edited by binkyd; 06-23-2020 at 09:31 PM.
 
Old 06-24-2020, 08:53 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
your problem description is incomplete. See for example: http://www.catb.org/~esr/faqs/smart-...html#beprecise

Quote:
Originally Posted by binkyd View Post
Running this script to start the Pulseaudio Equalizer at startup and minimize it to the tray.
running as which user, from where (shell/gui/cron/whatever), when, ....

Quote:
Originally Posted by binkyd View Post
I need a switch to also turn it on, to lazily avoid doing it manually.
I do not really understand where should this switch be applied at all? Would it be a gui element or an option to an app?

Quote:
Originally Posted by binkyd View Post
Couldn't find a man entry for this, and the plain pulseaudio switch of just
Code:
--start
doesn't work.
what do you mean by "for this"? How did you try that --start at all? What's happened? What does "switch doesn't work" really mean?
Quote:
Originally Posted by binkyd View Post
Any help for this? It's mostly just kinda neat to get it right, btw.
please give us more details and you may get better answer[s].
 
Old 06-24-2020, 10:29 AM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
There's no --start among common GTK+ options.

pulseaudio-equalizer-gtk is not the standard GUI 10-band equalizer frontend coming from the PulseAudio project (qpaeq), but the 15-band 3rd party frontend, now abandoned and unmaintained. It has an actively maintained fork though, pulse-audio-equalizer-ladspa. It doesn't seem to have any command line options. See here for how it can be started automatically. I guess you can also use pacmd list-sinks instead of pactl list sinks shown there.
 
Old 06-24-2020, 01:27 PM   #7
binkyd
Member
 
Registered: Oct 2016
Distribution: Looking again
Posts: 429

Original Poster
Rep: Reputation: 40
Thank you, shruggy.

I thought this would be a simple little thing....
I guess I'll sign up with Github and try to contact the maintainers.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Little scripting syntax question binkyd Linux - Newbie 5 02-29-2020 04:50 PM
Bash shell scripting basic question regarding the syntax BeingGokul Linux - General 2 09-23-2013 10:39 AM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
Syntax Question for scripting - if conditions jim.thornton Linux - Newbie 2 04-08-2008 09:51 PM
C++ syntax error before :: token HELP, i cant find the syntax error :( qwijibow Programming 2 12-14-2004 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration