You are not logged in.

#1 2013-11-11 21:58:02

Dyamon
Member
Registered: 2013-08-26
Posts: 16

WMFS2 and the status_surface feature!

I searched several times for an answer but seems the WMFS Official Thread isn't so "active"! If anyone of you knows something about this wm, join this topic!

When I try to use the "status_surface" feature with my wmfs2 I can only get a black window with nothing in it...I tryied to change colors (background and font color) but seem that it can't display anything properly. This is my script that should print something in my bottom bar...

## !/bin/bash ##

  TIMING=1

### Colors ###

  default="#222222"
  green="#4E9A06"
  lightgreen="#6DDD00"
  grey="#7D7D7D"
  dark="#1A1A1A"
  dblue="#1874cd"
  blue="#63b8ff"
  red="#CC0000"
  orange="#FFB000"
  purple="#8E00FF"

### Separator ###

  sep="^R[right;2;10;$default]"


### Power ###

  pwr(){...}

### Volume ###

  vol(){...}

### Date / Time ###

  clock(){

    hour="$(date +"%H")"
    min="$(date +"%M")"
    sec="$(date +"%S")"

    echo "^s[1295;12;$grey;$hour : $min : $sec]"
  }

  day(){

    day="$(date +"%d")"
    month="$(date +"%b")"
    year="$(date +"%Y")"
    calendar="$(conky -c ~/.config/wmfs/conkyrc_calendar)"

    echo "^s[1295;24;$grey;$day $month $year](1;status_surface;100,100,100,100,#ff0000 ^s[10;10;$grey; $calendar])"
  }

##### MAIN #####

  statustext(){

      wmfs -c status "botbar $(pwr) $(vol) $(day) $(clock)"
        
  }

  while true;
  do
      statustext
      sleep $TIMING
  done

The only think I'm able to get is a little windows with blu, white and black buggy stripes.
What's wrong with my code???

Thanks in advance!!!

Offline

Board footer

Powered by FluxBB