DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd May 2012
phyro phyro is offline
Port Guard
 
Join Date: Sep 2010
Posts: 27
Thanked 0 Times in 0 Posts
Default X Desktop config

Hi all,

I was trying to figure out if its possible to embed shell scripts into your desktop in Xwindows.

Ive set up fluxbox and basically want to find a way to make a totally transparent window to run a shell script (something like)

ps -arcwwwxo "command %cpu %mem" | grep -v grep | head -13

or an actual script such as
Code:
#! /bin/bash

myen0=`ifconfig en0 | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}'`

if [ "$myen0" != "" ]
then
    echo "Ethernet : $myen0"
else
    echo "Ethernet : INACTIVE"
fi

myen1=`ifconfig en1 | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}'`

if [ "myen1" != "" ]
then
    echo "AirPort  : $myen1"
else
    echo "Airport  : INACTIVE"
fi
that basically displays my network info and similar..

thanks
Reply With Quote
  #2   (View Single Post)  
Old 3rd May 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,831
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by phyro View Post
Ive set up fluxbox and basically want to find a way to make a totally transparent window to run a shell script...
You may want to look at sysutils/conky which allows you to configure system monitoring displayed on the desktop itself. Conky was originally developed on Linux, but has since been ported to OpenBSD. The project's Webpage:

http://conky.sourceforge.net/

...may give you additional ideas.
Reply With Quote
  #3   (View Single Post)  
Old 3rd May 2012
phyro phyro is offline
Port Guard
 
Join Date: Sep 2010
Posts: 27
Thanked 0 Times in 0 Posts
Default

Thanks, That's a nice app.

I actually found a good example of how to .. kind of do it .. by modifying the app file in flux box config. I think its just a matter of setting things up now.. Im going to hack my desktop and see what I can come up with.. If theres any intrest I can post the "how to" make a custom desktop ..

Thanks tho, Cheers
Reply With Quote
Reply

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
Problem config mpd5? congavangkiev FreeBSD Ports and Packages 0 16th June 2011 03:27 AM
hotspot config...suggestion please Stellar General software and network 0 27th April 2010 07:14 PM
How to re-run make config? FreeBee FreeBSD Ports and Packages 5 11th January 2010 10:56 AM
Xorg config There0 OpenBSD General 16 10th January 2010 02:45 PM
pf config error Stellar OpenBSD Security 5 3rd September 2009 01:01 PM


All times are GMT. The time now is 07:15 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