![]() |
Re: Your Favorite Apps/Mods NOT In Repositories
Quote:
Amusingly, setting quickmix stations in the pianobar UI is easier than setting it up on the web page! At least IMHO. Andy |
Re: Your Favorite Apps/Mods NOT In Repositories
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' |
Re: Your Favorite Apps/Mods NOT In Repositories
Quote:
#!/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 |
Re: Your Favorite Apps/Mods NOT In Repositories
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. :) |
Re: Your Favorite Apps/Mods NOT In Repositories
2 Attachment(s)
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 |
Re: Your Favorite Apps/Mods NOT In Repositories
Does anyone know if there is already an app like this? ^
If so, I would like to try it out. :) |
Re: Your Favorite Apps/Mods NOT In Repositories
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. :) |
Re: Your Favorite Apps/Mods NOT In Repositories
Quote:
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 |
Re: Your Favorite Apps/Mods NOT In Repositories
So I enter that command before starting pybar?
|
Re: Your Favorite Apps/Mods NOT In Repositories
Quote:
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 |
All times are GMT. The time now is 19:11. |
vBulletin® Version 3.8.8