You are not logged in.

#1 2010-03-05 03:53:42

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Transparent alsamixer

I have always found the black background of alsamixer very annoying. So I applied this patch to fix it:

--- alsa-utils/alsamixer/colors.c    2010-03-04 22:45:12.917443868 -0500
+++ alsa-utils/alsamixer/colors.c    2010-03-04 22:46:44.990042751 -0500
@@ -51,12 +51,13 @@
 {
     if (!!has_colors() == !!use_color) {
         start_color();
+        use_default_colors();
 
-        init_pair(1, COLOR_CYAN, COLOR_BLACK);
-        init_pair(2, COLOR_YELLOW, COLOR_BLACK);
+        init_pair(1, COLOR_CYAN, -1);
+        init_pair(2, COLOR_YELLOW, -1);
         init_pair(3, COLOR_WHITE, COLOR_GREEN);
-        init_pair(4, COLOR_RED, COLOR_BLACK);
-        init_pair(5, COLOR_WHITE, COLOR_BLACK);
+        init_pair(4, COLOR_RED, -1);
+        init_pair(5, COLOR_WHITE, -1);
         init_pair(6, COLOR_WHITE, COLOR_BLUE);
         init_pair(7, COLOR_RED, COLOR_BLUE);
         init_pair(8, COLOR_GREEN, COLOR_GREEN);

Apply it to the alsa-utils package. I'll post a PKGBUILD later.

Offline

#2 2010-03-05 04:40:42

CountDuckula
Member
Registered: 2010-02-28
Posts: 151

Re: Transparent alsamixer

cool, cant wait...

Offline

#3 2010-03-05 05:30:12

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Transparent alsamixer

PKGBUILD can now be found here. Is this done correctly?
http://aur.archlinux.org/packages.php?ID=35220

Offline

#4 2010-03-15 09:30:49

xxuncensoredxx
Member
From: Grand Rapids,Mi
Registered: 2009-02-19
Posts: 11

Re: Transparent alsamixer

Works good, and looks great! Thanks alot! smile

thumb-Alsatransparent.png
http://i460.photobucket.com/albums/qq32 … parent.png

Offline

#5 2010-03-15 19:00:28

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Transparent alsamixer

Your welcome.

Offline

Board footer

Powered by FluxBB