|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
|
Thread Tools | Display Modes |
|
|||
dwm status bar won't display apm output
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 |
|
|||
no one?
|
|
|||
thanks for the info, Carpetsmoker. I'll read up on xsession and xinitrc a little bit more and see if I can figure this out.
|
|
|||
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. |
|
||||
Quote:
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
strange dmesg output | gosha | OpenBSD General | 4 | 11th March 2009 01:10 PM |
Digital sound output | Zodox | FreeBSD General | 5 | 12th November 2008 02:21 PM |
Odd font display | TerryP | Feedback and Suggestions | 4 | 2nd November 2008 11: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 |