1

(2 replies, posted in Tips, Tricks & Scripts)

Thanks benj1, works like a charm!

2

(2 replies, posted in Tips, Tricks & Scripts)

I'm usually running foobar with a "countdown-to-kill-playback" component when I go to bed (love mah soft tunes! smile ), but I'm in the middle of moving, so I'm stuck with my laptop for now. I still want to do the whole timed playback killing though, so I thought I'd just do this:

#!/bin/sh
sleep 90m
killall exaile &

I'm sure it's not the cleanest way to do it, but it gets the job done. The problem is I'd also like to have it echo the remaining time. Anyone have a smooth way of doing this?

Edit:
If all else fails, I'll (sort of) happily settle for having it echo a static countdown, but I'm guessing that'll be just as tricky, since if I'm not mistaken "sleep" will halt all activity in the script until the set time runs out, no?

Edit2:
I just thought of something; if I place a 90m countdown first in the script, will it actually wait the allotted time before executing the following line(s)? If so, wouldn't that make using "sleep" unnecessary?

^ Thanks for the suggestion, I'll check it out right away!

And on a side note, I've abandoned Pidgin in favor of emesene smile

Actually, computers today are generally powerful enough by far to let you "waste" a bit of RAM, but still ^^

I've got my main sitting on DVI-0 at 1440x900, and a 1024x768 next to it on DVI-1.
No apparent problems present themselves when I run

xrandr --output DVI-1 --mode 1024x768 --right-of DVI-0

I know it does expand (checked with VNC from another computer), but there's a slight annoyance; the other monitor won't start/wake up/come out of power saving/whatever. Has anyone successfully dealt with this type of thing?

Edit:
Somehow I get a feeling this might have something to do with it (though I can't say why tongue)

Section "Screen"
        Identifier      "Default Screen"
        Device          "Radeon HD3870"
        Monitor         "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1440x900" "1024x768"
                Virtual         2464 1668
        EndSubSection
EndSection

SOLVED:
I've no idea why really (since 1024x768 is native for it), but the monitor's up and running perfectly through

xrandr --output DVI-1 --auto --right-of DVI-0

6

(264 replies, posted in Artwork & Screenshots)

Decided to start from scratch yesterday night. I'm finding conky way too boring, but I've got no imagination atm it seems big_smile
http://a.imagehost.org/t/0727/2009-11-04-1257311275_1440x900_scrot.jpg

I like Pidgin. It's the second best IM client I've ever tried. Still; I want my WLM. I simply find the combination of WLM, msg plus and a-patch to so perfectly fit my needs, that I've just begun running VirtualBox in seamless mode for the sole purpose of using WLM. Granted, I wouldn't have had to if my laptop hadn't been stolen a few days ago, but still.

Now; are any of you doing something completely wasteful/unnecessary like that? big_smile Let em rip!

Edit:
Btw, if anyone hears anything about wine suddenly sailing smooth with WLM9, please do tell.

8

(1,839 replies, posted in Tips, Tricks & Scripts)

jpope wrote:

^ Try something like...

${alignr 10}

Replace the '10' with however many pixels you need to push it back to the left.

That did the trick, thanks! Though I'd still like to know why the hell it didn't handle the align properly tongue


pvsage wrote:

You could also pad the output of clients.sh with a space, but the alignr tweak looks more elegant.

Yeah, I thought so too ^^

9

(1,839 replies, posted in Tips, Tricks & Scripts)

Check out the vnc section. Notice how most of the number 0 is missing. Can anyone shed some light on this? $align-anything-but-damn-r works fine hmm

http://h.imagehost.org/t/0092/trouble.jpg

relevant conkyrc section:

Clients conn$alignr${execi 2 ~/scripts/conky/clients.sh}

clients.sh (just in case)

#!/bin/sh
x11vnc -query client_count 2> /dev/null | sed 's/aro=client_count://'

A basic install for me (subject to change, of course);

Openbox
Nautilus (never did like pcmanfm)
Nitrogen
Firefox (adblock, stylish, gmail notifier)
foobar2000 (on that note, is there a viable non-wine alternative that can handle showing me my library by folder path instead of tags?)
PS CS4 (the gimp's competent, but I've used PS since 5.0)
Pidgin (latest WLM doesn't run in Wine yet (I love my messenger plus))
SMplayer (at least for me handles subs better than vlc)
xterm (gets the job done)
Deluge (locally)
rtorrent (remotely)
xfburn (has the features I need)
Conky (is there anyone who doesn't love it?)

anonymous wrote:

Maybe try obmixer? Supposedly it works with PulseAudio.

Edit:
Up and running, thanks anonymous! Now, however, I've got another issue, albeit of less annoying character. Edited my original post.

This is what I see.
http://a.imagehost.org/t/0690/VW.jpg

I thought there might be a clue in its config (~.config/volwheel), but it shows nothing the GUI doesn't

Master
gnome-volume-control
3
simple-blue
/usr/share/volwheel/icons/volwheel.png
0


Edit:

I'll add that after looking through some other posts, I also tried another way; setting VolWheel's def. mixer to "xterm -e 'alsamixer -c 1'", with the def. channel "Analog Front", with no luck. CLI says it's unable to find the control. I haven't been able to tell whether it accepts what I tried with the mixer, though.

I'd intended to use XF86 keybinds to let my vol +/- and mute buttons control obmixer, but I just realized I don't have a clue in hell as to what commands to invoke in rc.xml for that! Anyone knowledgeable around? smile

Edit2:
Screw it, I'll just do this instead. It's a bit of a pain, but I prefer having media keys only over obmixer only smile

<keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>amixer -c 2 set 'Analog Front' 2dB- unmute</command>

iggykoopa wrote:

after a little bit of testing it still seems to be working pretty well with the new notifications...I'm pretty sure it doesn't honor the time you give it though.

I concur.

I'm sure most, or at least many, of you know of it already, but I still thought I'd share it.
4chan.org has a board specifically for wallpapers; http://orz.4chan.org/wg/imgboard.html
Now, in case you see a wall here (or anywhere) you want to find, say, without icons or whatever someone's scroted it with; http://suigintou.desudesudesu.org/4scrape/
It scrapes 4chan for image data, and it's searchable, either by tags, or by simply pointing it to the url of a picture. It goes on to identify and present you with clean versions as best it can.

Now this I've got to try as soon as I have time!
And for an improvement, how 'bout rethinking it so it can be added into the obmenu? You'll have to put it there initially, ofc, but then it'll only ever be a menu away smile

Work in progress etc etc
Just realised I'm very lazy. So I'm trusting you with my external IP, folks! big_smile

http://omploader.org/tMXBoNQ

i'll have to read up on it then. seems like it could be real useful.
thanks again, marking thread solved!

resolved. again, thanks for the help!

gotta ask though, /dev/null is the "black hole" of unwanted output/errors, right? and 0, 1, 2 are in, out, error respectively unless i'm mistaken. so, is that simply telling it that any output below 2 from the command preceding it, will be /dev/null'd?

to the letter.
thought so too, but it didn't help. but i'm pretty sure i'll survive it not working smile

Edit:
thought i'd at least have the count run in terminator, with a pause when it's done;
terminator --command="x11vnc -query client_count & read -p 'Press any key when done'" works. sort of. know of a remedy for the awkward read message?

>>> sending remote command: "qry=client_count" via X11VNC_REMOTE X property.
Press any key when donearo=client_count:0

yup

script master indeed smile thanks alot for all the help!
one last thing (sorry, man wink)

${alignr}${execi 1.2 ~/./scripts/vncc.sh} works fine
${alignr}${execi 1.2 ~/./scripts/cvnc.sh} does not. any idea why?

Edit:
vncc being active/inactive check and cvnc the client count

now it's down to
>>> sending remote command: "qry=client_count" via X11VNC_REMOTE X property.
1

ps aux | grep x11vnc | grep -v grep didn't change it. Still shows the process. Pipe menu's a good idea, I'll have to look in to that.
-query clients doesn't want to play nice, but -query client_count does big_smile It also adds some stuff I'd want to have omitted though, I just want the number:

x11vnc -query client_count

>>> sending remote command: "qry=client_count" via X11VNC_REMOTE X property.
aro=client_count:1

ps aux | grep x11vnc | grep -v grep | grep -v terminator works fine when it's not running. It still outputs when it is running, though

robin     9946  0.0  0.5  23908  7828 ?        S    17:06   0:00 x11vnc -usepw -forever

Obviously the process itself. Getting very close now!  And your obmenu solution was flawless btw!