![]() |
|
|||||||
| General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
||||
|
this works fine running it from an xterm with dwm already running. mixerctl, apm, and date output all show up as expected.
Code:
xsetroot -name "volume: $(mixerctl -n outputs.master | sed 's/^[0-9]*,//g') | battery: $(apm -l)% | $(date "+%A, %B %e, %Y %r")" Code:
while true do xsetroot -name "volume: $(mixerctl -n outputs.master | sed 's/^[0-9]*,//g') | battery: $(apm -l)% | $(date "+%A, %B %e, %Y %r")" done & xbindkeys & dwm I found this thread from the dwm mailing lists but it wasn't much help: http://www.mail-archive.com/dwm@suck.../msg02452.html |
|
||||
|
I couldn't sleep and I looked at your problem a bit.
The issue is that apm lives in /usr/sbin/, by default this isn't in the PATH with xsession. Using a full path solves the issue. *Waits for asem to slap his forehead and shout do'h* ![]() Guess you can also use set/export but I keep forgetting how to use that (Die hard csh user).As a sidenote, I had some problems while testing with 10 different while loopsrunning in the background, so if you CTRL-ALT-BS or something like that remember to manually kill the sh instance running in the background. Isn't there a better way do this with dwm?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
|
thanks for the solution, Carpetsmoker
. I ran whereis on mixerctl and the other stuff in the status bar, and at least one other thing was in /usr/bin, so I figured /usr/sbin would be in PATH if /urs/bin was. it's always those stupid assumptions that get me! also, I guess my initial suspicion was right in that it has to do with the environment that xsession runs in, because /usr/sbin is indeed in my user's and root's PATHs. must be whatever user xsession or xdm runs as.you can do meta+shift+q to quit dwm, IIRC.
__________________
chat.taucher.net #bsd |
|
||||
|
Quote:
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| strange dmesg output | gosha | OpenBSD General | 4 | 11th March 2009 12:10 PM |
| Digital sound output | Zodox | FreeBSD General | 5 | 12th November 2008 01:21 PM |
| Odd font display | TerryP | Feedback and Suggestions | 4 | 2nd November 2008 10:22 AM |
| C and file input/output | 18Googol2 | Programming | 3 | 20th August 2008 04:02 PM |
| strange security run output | deadeyes | FreeBSD Security | 5 | 2nd July 2008 04:51 PM |