Thanks benj1, works like a charm!
2 2009-11-09 20:38:06
Topic: [SOLVED] Script echo help (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!
), 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?
3 2009-11-09 19:08:11
Re: What are your favourite Linux applications? (147 replies, posted in Off Topic / General Chat)
^ Thanks for the suggestion, I'll check it out right away!
And on a side note, I've abandoned Pidgin in favor of emesene ![]()
4 2009-11-05 13:59:56
Re: Primeval longings and logically impaired, resource hogging workarounds (4 replies, posted in Off Topic / General Chat)
Actually, computers today are generally powerful enough by far to let you "waste" a bit of RAM, but still ^^
5 2009-11-04 09:18:05
Topic: [SOLVED] xrandr won't activate second monitor (0 replies, posted in Help & Support (Stable))
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
)
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-06 2009-11-04 05:10:38
Re: November 2009 Screenshot Thread (264 replies, posted in Artwork & Screenshots)
7 2009-11-04 02:29:55
Topic: Primeval longings and logically impaired, resource hogging workarounds (4 replies, posted in Off Topic / General Chat)
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?
Let em rip!
Edit:
Btw, if anyone hears anything about wine suddenly sailing smooth with WLM9, please do tell.
8 2009-11-04 01:29:30
Re: Conky Help (1,839 replies, posted in Tips, Tricks & Scripts)
^ 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 ![]()
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 2009-11-04 00:37:09
Re: Conky Help (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 ![]()
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://'10 2009-11-03 16:41:42
Re: What are your favourite Linux applications? (147 replies, posted in Off Topic / General Chat)
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?)
11 2009-11-03 07:09:02
Re: [ABANDONED IN FAVOR OF MEDIA KEYS] obmixer with XF86 keybinds (8 replies, posted in Help & Support (Stable))
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.
12 2009-11-02 18:29:19
Re: [ABANDONED IN FAVOR OF MEDIA KEYS] obmixer with XF86 keybinds (8 replies, posted in Help & Support (Stable))
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.
13 2009-11-02 16:15:42
Topic: [ABANDONED IN FAVOR OF MEDIA KEYS] obmixer with XF86 keybinds (8 replies, posted in Help & Support (Stable))
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? ![]()
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 ![]()
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer -c 2 set 'Analog Front' 2dB- unmute</command>
14 2009-05-21 17:00:54
Re: Bash at your fingertips: nifty notify-send (14 replies, posted in Tips, Tricks & Scripts)
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.
15 2009-05-21 16:59:36
Re: #! CrunchBang Linux Desktop Screenshots (1,110 replies, posted in Artwork & Screenshots)
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.
16 2009-05-20 18:54:06
Re: Bash at your fingertips: nifty notify-send (14 replies, posted in Tips, Tricks & Scripts)
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 ![]()
17 2009-05-20 18:29:22
Re: #! CrunchBang Linux Desktop Screenshots (1,110 replies, posted in Artwork & Screenshots)
18 2009-05-20 18:06:30
Re: [SOLVED] x11vnc status and conky entry question(s) (21 replies, posted in Help & Support (Stable))
i'll have to read up on it then. seems like it could be real useful.
thanks again, marking thread solved!
19 2009-05-20 18:01:59
Re: [SOLVED] x11vnc status and conky entry question(s) (21 replies, posted in Help & Support (Stable))
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?
20 2009-05-20 17:31:18
Re: [SOLVED] x11vnc status and conky entry question(s) (21 replies, posted in Help & Support (Stable))
to the letter.
thought so too, but it didn't help. but i'm pretty sure i'll survive it not working ![]()
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:021 2009-05-20 17:12:58
Re: [SOLVED] x11vnc status and conky entry question(s) (21 replies, posted in Help & Support (Stable))
yup
22 2009-05-20 16:58:10
Re: [SOLVED] x11vnc status and conky entry question(s) (21 replies, posted in Help & Support (Stable))
script master indeed
thanks alot for all the help!
one last thing (sorry, man
)
${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
23 2009-05-20 16:24:09
Re: [SOLVED] x11vnc status and conky entry question(s) (21 replies, posted in Help & Support (Stable))
now it's down to
>>> sending remote command: "qry=client_count" via X11VNC_REMOTE X property.
1
24 2009-05-20 16:12:07
Re: [SOLVED] x11vnc status and conky entry question(s) (21 replies, posted in Help & Support (Stable))
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
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:125 2009-05-20 15:18:20
Re: [SOLVED] x11vnc status and conky entry question(s) (21 replies, posted in Help & Support (Stable))
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 -foreverObviously the process itself. Getting very close now! And your obmenu solution was flawless btw!


