DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 1st August 2009
asemisldkfj's Avatar
asemisldkfj asemisldkfj is offline
Fdisk Soldier
 
Join Date: Aug 2008
Posts: 50
Thanked 1 Time in 1 Post
Default 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")"
however, if I put the same command in my .xsession file, the apm output disappears and all I see is "battery: %".

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 can't figure out why the output of apm would disappear or be blank like that. maybe it has something to do with the environment that the .xsession script is run in or something. that's all I can think of. does anyone have any ideas?

I found this thread from the dwm mailing lists but it wasn't much help: http://www.mail-archive.com/dwm@suck.../msg02452.html
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 11:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick