[SOLVED] amixer output problem

If none of the more specific forums is the right place to ask

Re: [SOLVED] amixer output problem

Postby pawRoot » 2018-03-12 21:18

Thanks to you both, HOAS method works aswell.
User avatar
pawRoot
 
Posts: 572
Joined: 2016-12-28 18:26
Location: Poland

Re: [SOLVED] amixer output problem

Postby Head_on_a_Stick » 2018-03-12 21:21

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.
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8321
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [SOLVED] amixer output problem

Postby pawRoot » 2018-03-12 21:22

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
pawRoot
 
Posts: 572
Joined: 2016-12-28 18:26
Location: Poland

Re: [SOLVED] amixer output problem

Postby Head_on_a_Stick » 2018-03-12 21:24

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 :)
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8321
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [SOLVED] amixer output problem

Postby pawRoot » 2018-03-12 21:27

^ Thanks 8)
User avatar
pawRoot
 
Posts: 572
Joined: 2016-12-28 18:26
Location: Poland

Previous

Return to General Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable