Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] amixer output problem

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: [SOLVED] amixer output problem

#16 Post by pawRoot »

Thanks to you both, HOAS method works aswell.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: [SOLVED] amixer output problem

#17 Post by Head_on_a_Stick »

If you plan to use the command in conky then it's best to use as few commands and pipes as possible so as to save on memory usage and processor cycles — conky can use up a significant proportion of your CPU capability if you make it run enough commands every clock tick.
deadbang

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: [SOLVED] amixer output problem

#18 Post by pawRoot »

Here is my config

Code: Select all

out_to_x no
out_to_console yes
update_interval 1

TEXT
  ${mem} / ${memmax}    \
  ${downspeedf enp2s0} / ${upspeedf enp2s0}KiB    \
  ${apcupsd_charge}    \
  ${fs_used} / ${fs_size}    \
  ${exec dpkg --list | wc --lines}    \
  ${time}    \
  ${exec amixer get Master | awk -F'[' '/Left:/{gsub("]","");print $2}'}

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: [SOLVED] amixer output problem

#19 Post by Head_on_a_Stick »

pawRoot wrote:

Code: Select all

${exec dpkg --list | wc --lines}
The output of `dpkg --list` includes some lines not related to installed packages, this will give the correct figure:

Code: Select all

${exec dpkg --list | grep -c ^i}
^ grep can count :)
deadbang

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: [SOLVED] amixer output problem

#20 Post by pawRoot »

^ Thanks 8)

Post Reply