DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

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 03:14 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