Active Topics

 


Reply
Thread Tools
Posts: 78 | Thanked: 109 times | Joined on Jan 2012 @ Washington State
#41
Originally Posted by Addison View Post
What does the q and Q letters mean on some of my stations?
I believe that's Pandora's "quickmix" feature. Stations marked with "q" are included in the quickmix. The "x" command should let you toggle which ones you wish included in the quickmix. I mostly like Pandora to play across all my stations, but have it leave off special case ones like my Christmas channel.

Amusingly, setting quickmix stations in the pianobar UI is easier than setting it up on the web page! At least IMHO.

Andy
 

The Following User Says Thank You to vandys For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#42
Thanks!

Hey, I'm terrible at scripting so how could I get all of these commands to execute with a simple launch file?

xmodmap /home/user/.Xmodmap_pan
PATH=$PATH:/usr/local/bin
llib pianobar
xte 'keydown rightparenth' 'keyup parenth' 'keydown rightparenth' 'keyup parenth' 'keydown rightparenth' 'keyup parenth' 'keydown rightparenth' 'keyup parenth' 'keydown rightparenth' 'keyup parenth' 'keydown rightparenth' 'keyup parenth'
 

The Following User Says Thank You to Addison For This Useful Post:
Posts: 78 | Thanked: 109 times | Joined on Jan 2012 @ Washington State
#43
Originally Posted by Addison View Post
Hey, I'm terrible at scripting so how could I get all of these commands to execute with a simple launch file?
'
Dunno, I'm only a CLI kind of guy! I'd just put'em in a file with
#!/bin/sh
at the top, chmod a+x <file> and then run it when I needed
to. I'm sure there's an easy way to invoke a shell script from
an icon, maybe somebody here can help?

Andy
 

The Following 2 Users Say Thank You to vandys For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#44
I asked because it needs to run inside Xterminal or Roxterm, yes?

Also I would like to raise the default volume level but a simple copy and paste from what I posted in Xterm doesn't work either.

I'm just a little confused on how to do this, that's all.

Oh, and Xmodmap is for some hardware key shortcuts in case you were wondering.
 

The Following User Says Thank You to Addison For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#45
My first ever script that I did on my own without any help.

So I've got 1 minute email notifications and a running SIP phone.

Since it takes me some time to fall asleep, I'll just run this script before I close my eyes.

If there are no new messages right away (default 15 minutes) it turns off the master and ringtone volume.

The other script brings back both sounds and stops the first one from fully executing if needed.



Goodnight
#! /bin/sh

dbus-send --print-reply --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Quiet mode in 15 minutes"
sleep 900
dbus-send --print-reply --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Goodnight...."
gconftool-2 -s "/apps/osso/sound/ringtone_volume" 0 -t INT
gconftool-2 -s "/apps/osso/sound/master_volume" 0 -t INT



Wakeup
#! /bin/sh

killall kill goodnight
dbus-send --print-reply --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Quiet mode terminated"
gconftool-2 -s "/apps/osso/sound/ringtone_volume" 100 -t INT
gconftool-2 -s "/apps/osso/sound/master_volume" 100 -t INT
Attached Files
File Type: zip goodnight.zip (357 Bytes, 66 views)
File Type: zip wakeup.zip (341 Bytes, 66 views)
 

The Following User Says Thank You to Addison For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#46
Does anyone know if there is already an app like this? ^

If so, I would like to try it out.
 

The Following User Says Thank You to Addison For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#47
Hey Andy, quick question for you.

In Xterm or any other terminal, do you know if there is a way to gag certain text output such as "|> " and "(i) Receiving new playlist... Ok."?

I know such a thing exists using Tinyfugue.

After I'm done listening on pybar, I tend to copy everything it played during that time and would like to remove some of that extra clutter when saving those list of songs.

Cheers.
 

The Following User Says Thank You to Addison For This Useful Post:
Posts: 78 | Thanked: 109 times | Joined on Jan 2012 @ Washington State
#48
Originally Posted by Addison View Post
In Xterm or any other terminal, do you know if there is a way to gag certain text output such as "|> " and "(i) Receiving new playlist... Ok."?
In terms of text filtering, "grep -v <pattern>" excludes lines
which match <pattern>. So:

command | grep -v "|>" > output.txt

would filter off lines with "|>" (as output by "command") and the result goes into output.txt file.

Andy
 

The Following 2 Users Say Thank You to vandys For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#49
So I enter that command before starting pybar?
 

The Following User Says Thank You to Addison For This Useful Post:
Posts: 78 | Thanked: 109 times | Joined on Jan 2012 @ Washington State
#50
Originally Posted by Addison View Post
So I enter that command before starting pybar?
Well, step one is to find out if pianobar gets upset because its standard output is not a TTY. So change "llib pianobar" to be "llib pianobar | grep -v "|>" and see if it still runs OK.

If it doesn't, then probably it would be better to modify pianobar to do the initial setup itself. Yes, that means modifying the app, but this sounds like a reasonable enhancement (setting initial volume).

FWIW, it might be easier to grep -v the cruft after you grab the song list. Then it won't interfere with the app's TTY access, and you don't have to hack C code either. :->

Andy
 

The Following User Says Thank You to vandys For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 18:07.