LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-22-2010, 05:43 AM   #1
djeikyb
Member
 
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Rep: Reputation: 33
Alsamixer transparency (how I did it)


I wanted alsamixer to support transparency. Took a bit of googling and a wee bit of hacking, but nothing too hard. This guide probably relevant only to alsa-utils 1.0.21+.

Know your system
Make sure libncurses (development version with headers etc) is installed.

Run cat /proc/asound/version. This will tell you your alsa-utils version.

The dirty work
Download the source for your version of alsa-utils. Ubuntu users can find their source code at Launchpad: https://launchpad.net/ubuntu/+source/alsa-utils

Extract it, go into alsa-utils*/alsamixer/. Edit colors.c. Look for the section void init_colors(int use_color). For each line that starts with init_pair( and has COLOR_BLACK as the second colour, change COLOR_BLACK to -1. Eg:
Code:
init_pair(1, COLOR_CYAN, COLOR_BLACK);
becomes
Code:
init_pair(1, COLOR_CYAN, -1);
Save colors.c. Run make. Copy the resulting alsamixer to /usr/local/bin.

Sources
https://www.prof-maad.org/blog/2009/...ent-alsamixer/
https://bbs.archlinux.org/viewtopic.php?id=92518

Last edited by djeikyb; 12-22-2010 at 05:44 AM.
 
Old 12-23-2010, 08:57 PM   #2
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 75
Excellent post... Thanks for sharing. Should be made a 'sticky' somewhere.
 
  


Reply

Tags
alsa-utils, alsamixer, transparency



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
Alsamixer puskas Linux - Hardware 11 08-06-2009 03:46 AM
alsamixer rcmayfld Linux - Software 1 03-21-2006 01:41 PM
alsamixer evensen Linux - Software 6 11-22-2004 08:34 PM
Alsamixer... Camasii Linux - General 1 12-03-2003 10:09 PM
alsamixer bobr Linux - General 2 07-30-2003 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01: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