You are not logged in.
Pages: 1
Topic closed
I have successfully set up alsaequal from AUR for use with MPD, however, I'm awful at this kind of stuff, and I was just wondering if there were any presets, like in the pulse audio equalizer plugin?
Offline
No
Personally, I'd rather be back in Hobbiton.
Offline
I have creeps of the word pulseaudio ...
A good website design is user friendly and focused towards companies' overall direction like Web Design London and provides search engine friendly strucure such as SEO London
Offline
I've made my own script to change presets with dmenu:
#!/bin/bash
seteq(){
amixer -D equal -q set '01. 31 Hz' $1
amixer -D equal -q set '02. 63 Hz' $2
amixer -D equal -q set '03. 125 Hz' $3
amixer -D equal -q set '04. 250 Hz' $4
amixer -D equal -q set '05. 500 Hz' $5
amixer -D equal -q set '06. 1 kHz' $6
amixer -D equal -q set '07. 2 kHz' $7
amixer -D equal -q set '08. 4 kHz' $8
amixer -D equal -q set '09. 8 kHz' $9
amixer -D equal -q set '10. 16 kHz' ${10}
}
Speakers() { seteq 80 70 65 60 60 60 60 80 80 80 }
Notebook() { seteq 00 75 75 70 50 50 60 70 85 85 }
Disable() { seteq 66 66 66 66 66 66 66 66 66 66 }
$(echo -e "Speakers\nNotebook\nDisable" | dmenu -p 'Equal')Offline
That looks like exactly what I'm looking for! (Xmonad with Dmenu set up) But it errors with:
./equal: line 21: syntax error: unexpected end of file![]()
Offline
You must have typed the command in wrong. That script doesn't even have 21 lines, but I didn't test it.
Personally, I'd rather be back in Hobbiton.
Offline
You must have typed the command in wrong.
http://paste.xinu.at/cjj
Really?
-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
Offline
Sarry, I read that script wrong. I thought the last line was a command....
Anyways I can't test it because I don't have dmenu....
Personally, I'd rather be back in Hobbiton.
Offline
I took the idea and made a zsh functions.
arst
Offline
I took the idea and made a zsh functions.
Care to share/explain? ^_^
Offline
Add the following lines in your ~/.zshrc
seteq(){
amixer -D equal -q set '01. 31 Hz' $1
amixer -D equal -q set '02. 63 Hz' $2
amixer -D equal -q set '03. 125 Hz' $3
amixer -D equal -q set '04. 250 Hz' $4
amixer -D equal -q set '05. 500 Hz' $5
amixer -D equal -q set '06. 1 kHz' $6
amixer -D equal -q set '07. 2 kHz' $7
amixer -D equal -q set '08. 4 kHz' $8
amixer -D equal -q set '09. 8 kHz' $9
amixer -D equal -q set '10. 16 kHz' ${10}
}
Speakers() { seteq 80 70 65 60 60 60 60 80 80 80 }
Notebook() { seteq 00 75 75 70 50 50 60 70 85 85 }
Disable() { seteq 66 66 66 66 66 66 66 66 66 66 }(Maybe you wanna customize your own presets)
Then just type "Speakers", or "Notebook", or "Disable" as a command, But I think is more "classy" using dmenu or a script in a key binding...
Don't know how to make it work on bash if that's the shell you are using.
Last edited by teh (2011-01-22 07:07:02)
arst
Offline
I think I'd rather get it working in dmenu like above... But I can't tell what's wrong at all >.<
Offline
Bump... Can anyone help me fix this bash script?
Offline
hopefully im not violating any rule here by commenting on an old post...but i got the script working by changing the 3 functions at the botom to:
Speakers() { seteq 80 70 65 60 60 60 60 80 80 80; }
Notebook() { seteq 00 75 75 70 50 50 60 70 85 85; }
Disable() { seteq 66 66 66 66 66 66 66 66 66 66; }'I skate to where the puck is going to be, not where it has been.'
--Wayne Gretzky--
Offline
I'm cray, for future reference:
_seteq(){
amixer -D equal -q set '01. 31 Hz' $1
amixer -D equal -q set '02. 63 Hz' $2
amixer -D equal -q set '03. 125 Hz' $3
amixer -D equal -q set '04. 250 Hz' $4
amixer -D equal -q set '05. 500 Hz' $5
amixer -D equal -q set '06. 1 kHz' $6
amixer -D equal -q set '07. 2 kHz' $7
amixer -D equal -q set '08. 4 kHz' $8
amixer -D equal -q set '09. 8 kHz' $9
amixer -D equal -q set '10. 16 kHz' ${10}
}
seteq(){
case $1 in
speakers) _seteq 80 70 65 60 60 60 60 80 80 80;;
notebook) _seteq 00 75 75 70 50 50 60 70 85 85;;
headphones) _seteq 66 66 66 66 55 30 53 15 80 85;;
*) _seteq 66 66 66 66 66 66 66 66 66 66;;
esac
}$ seteq headphonesOffline
vohof, there's no need to bump this thread for that. Closing. https://wiki.archlinux.org/index.php/Fo … Bumping.22
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Pages: 1
Topic closed