#__________________________ENLIGHTENMENT_CONFIG_FILE___________________________
# Enlightenment config file for WINDOWSTYLES
# Sample config... testing purposes

# in many ways this config has grown to be more than a config file, but even
# a scripting languge in itself, especially with the use of the % macros.
# most of it should be self explanatory seeing its all close to english text

# this is a universal macro starting with the % symbol....
# this sets the root window black....
% black

# the beginning of a section....
begin text
# this section defines the text styles to use.
  fontface      helvetica
# the style modifier, currently: bold and italic
  style         bold
#  style         italic
# appearance. can be: plain, outline, or shadow
  appearance    outline
# justification: left, center or right
  justification center
  foreground    255 255 255
  background    0 0 0
end

# status section. if you use any % status macros you MUST define this BEFORE
# you use any of them otherwise enlightenment will barf at you.....
#
# when u use the % status macros, you will only get the icons displayed if you
# define the text section before you use any % status macros...
begin status
  icons background  64 64  512 64 pixmaps/icons_bg.ppm  shapemode off 0 0 0 
  icons box         8  8   496 48 pixmaps/icons_box.ppm shapemode off 0 0 0
  text  background  64 196 512 30 pixmaps/text_bg.ppm   shapemode off 0 0 0 
  text  box         4  4   504 22 pixmaps/text_box.ppm  shapemode off 0 0 0
end

% status pixmaps/stat_2.ppm shapemode on 255 0 255 Enlightenment Thebes 1.0
% sleep 3
% status pixmaps/stat_2.ppm shapemode on 255 0 255 By The Rasterman
% sleep 2
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Starting up.
% sleep 1
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Starting up..
% sleep 1
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Starting up...
% sleep 1

begin root
# this selects the background image.. note the first two arguments are the
# width and height to scale the image to (in pixels). If either is 0, the
# image will appear in its original size (as defined in the files) in that
# direction, if -1, the image will be scaled to fit the root window fully in
# that direction
  backgroundimage -1 -1 pixmaps/background.jpg
% status pixmaps/stat_1.ppm shapemode on 255 0 255 Setting Root...
end


# If the first non-commented or blank line is "begin window" then this is a 
# window-styles config file. But it is possible to put several config files
# into one. Perhaps a main config-file specifying all config files to load in
% status pixmaps/stat_1.ppm shapemode on 255 0 255 Loading WindowBorders...
begin window
# shapewindows (transparent bits) option on or off
  shaped on
# what type of window moving. currently opquae will do. more styles will be
# available
  move opaque
# same as the moving style.. but for resizing  
  resize opaque
# start a border definition section. this only defines the border widths  
  begin border
# lefto border width in pixels  
    left 24
# right border width etc etc etc    
    right 24
    top 24
    bottom 24
  end
# subwindow section. subwindows are the key to an enlightenment window
# border. these are "widgets" or buttos o the border of your window, and
# clicking on onew will invoke an action.. like resize, move, raise, lower
# or whatever is defined for the subwin. You can have a limitless number
# (okay current limit 64.. cause i use an array.. this is generous I belive
# ... using piles will slow things down too much)
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border1.
  begin subwin
# type.. this defines if its a titlebar or not here.. so this button doesnt
# just display its backgroup pixmap, and change that when clicked etc., but
# alos will containty eh window title. there is no reason why you cant have
# several of these. infact of ay subwin type :-)
    type button
# define where this subwindow is to be drawn, by defining its top-left and
# bottom-right co-ordinates, and whihc corners of the window they are relative
# to. this will define the location, and how the window resizes itself. the
# window designer part of enlightenment should produce this stuff and allow
# it all to be visually defined.
    coord1_relative topleft
    coord1 0 0
    coord2_relative topleft
    coord2 37 31
# the background images to be used for the subwin. this defines the image file
# for various states of the window, the colour that will be transparent
# (seeing ppm's dont have support of transparent coloursd, they will be
# defined here instead. the window designer will allow the transparent colour
# to be picked interactively)
    image clicked    pixmaps/b3.ppm  shapecolor on 255 0 255 
    image selected   pixmaps/b2.ppm  shapecolor on 255 0 255
    image unselected pixmaps/b1.ppm  shapecolor on 255 0 255
# whether to tile the image in the subwin, scale it ot even tilescale (where
# an integer number of the image will be tiled to fit the subwin)
    image scale_method scale
# whether the subwin is above or below the client window itself.. so you can
# infact have buttos overlapping the client windows of your xterm, rxvt or
# netscape or whatever.. not necessarily wise to have LOTS of overlap, but
# its up to the user. 1-5 pixels should still be fie and give a nice effect.
# above means the subwin is above the client window. below means its
# underneath it
    level above
# define the beahivor of the subwin. the number is the button number of the
# mouse (1= left, 2=middle, 3=right.. 4 & 5 are supported by X, and can be
# defied here if you want... but i cant test them myself... i only have 3
# buttons on my mouse
# the thing before the number is the modifier.. so none means just a plain
# button click.. shift = shift + button click.... and the part at the end
# after the number is the action to perform apon this interaction by the user
    action none 1 kill
    action none 2 none
    action none 3 exec xmessage "This is a sample executable!"
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
# end the wubwindow section    
  end
# we could have more subwin sections here.. 1 per subwindow "widget" or
# button... like buttons for killing, iconising, and "corner" and "border"
# widgets (they are fixesd in all other windowmanagers.. in enlightenment they
# merelty are more subwins) for resizing....
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border2.
  begin subwin
    type button
    coord1_relative topleft
    coord1 0 31
    coord2_relative topleft
    coord2 24 49
    image clicked    pixmaps/c3.ppm shapecolor off 255 0 255 
    image selected   pixmaps/c2.ppm shapecolor off 255 0 255
    image unselected pixmaps/c1.ppm shapecolor off 255 0 255
    image scale_method scale
    level above
    action none 1 iconify
    action none 2 none
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border3.
  begin subwin
    type button
    coord1_relative topleft
    coord1 0 49
    coord2_relative topleft
    coord2 24 73
    image clicked    pixmaps/d3.ppm shapecolor on 255 0 255 
    image selected   pixmaps/d2.ppm shapecolor on 255 0 255
    image unselected pixmaps/d1.ppm shapecolor on 255 0 255
    image scale_method scale
    level above
    action none 1 raise_lower
    action none 2 raise
    action none 3 lower
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border4.
  begin subwin
    type button
    coord1_relative topleft
    coord1 19 73
    coord2_relative bottomleft
    coord2 24 -24
    image clicked    pixmaps/e2.ppm shapecolor off 255 0 255 
    image selected   pixmaps/e2.ppm shapecolor off 255 0 255
    image unselected pixmaps/e1.ppm shapecolor off 255 0 255
    image scale_method scale
    level above
    action none 1 resize
    action none 2 move
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border5.
  begin subwin
    type button
    coord1_relative bottomleft
    coord1 19 -24
    coord2_relative bottomleft
    coord2 24 -20
    image clicked    pixmaps/f2.ppm shapecolor on 255 0 255 
    image selected   pixmaps/f2.ppm shapecolor on 255 0 255
    image unselected pixmaps/f1.ppm shapecolor on 255 0 255
    image scale_method scale
    level above
    action none 1 resize
    action none 2 move
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border6.
  begin subwin
    type button
    coord1_relative bottomleft
    coord1 24 -24
    coord2_relative bottomright
    coord2 -64 -20
    image clicked    pixmaps/g2.ppm shapecolor off 255 0 255 
    image selected   pixmaps/g2.ppm shapecolor off 255 0 255
    image unselected pixmaps/g1.ppm shapecolor off 255 0 255
    image scale_method scale
    level above
    action none 1 resize
    action none 2 move
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border7.
  begin subwin
    type button
    coord1_relative bottomright
    coord1 -64 -24
    coord2_relative bottomright
    coord2 -52 -6
    image clicked    pixmaps/h2.ppm shapecolor on 255 0 255 
    image selected   pixmaps/h2.ppm shapecolor on 255 0 255
    image unselected pixmaps/h1.ppm shapecolor on 255 0 255
    image scale_method scale
    level above
    action none 1 resize
    action none 2 move
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border8.
  begin subwin
    type button
    coord1_relative bottomright
    coord1 -52 -24
    coord2_relative bottomright
    coord2 -26 -8
    image clicked    pixmaps/i2.ppm shapecolor on 255 0 255 
    image selected   pixmaps/i2.ppm shapecolor on 255 0 255
    image unselected pixmaps/i1.ppm shapecolor on 255 0 255
    image scale_method scale
    level above
    action none 1 resize
    action none 2 move
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border9.
  begin subwin
    type button
    coord1_relative bottomright
    coord1 -26 -26
    coord2_relative bottomright
    coord2 -1 -1
    image clicked    pixmaps/j3.ppm shapecolor on 255 0 255 
    image selected   pixmaps/j2.ppm shapecolor on 255 0 255
    image unselected pixmaps/j1.ppm shapecolor on 255 0 255
    image scale_method scale
    level above
    action none 1 resize
    action none 2 none
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border10.
  begin subwin
    type button
    coord1_relative topright
    coord1 -24 24
    coord2_relative bottomright
    coord2 -14 -26
    image clicked    pixmaps/k2.ppm shapecolor on 255 0 255 
    image selected   pixmaps/k2.ppm shapecolor on 255 0 255
    image unselected pixmaps/k1.ppm shapecolor on 255 0 255
    image scale_method scaletile
    level above
    action none 1 resize
    action none 2 move
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border11.
  begin subwin
    type button
    coord1_relative topright
    coord1 -24 0
    coord2_relative topright
    coord2 -19 24
    image clicked    pixmaps/p2.ppm shapecolor on 255 0 255 
    image selected   pixmaps/p2.ppm shapecolor on 255 0 255
    image unselected pixmaps/p1.ppm shapecolor on 255 0 255
    image scale_method scale
    level above
    action none 1 resize
    action none 2 move
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border12.
  begin subwin
    type decoration
    coord1_relative topleft
    coord1 100 0
    coord2_relative topright
    coord2 -24 24
    image clicked    pixmaps/q2.ppm shapecolor off 255 0 255 
    image selected   pixmaps/q2.ppm shapecolor off 255 0 255
    image unselected pixmaps/q1.ppm shapecolor off 255 0 255
    image scale_method scale
    level above
    action none 1 none
    action none 2 none
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border13.
  begin subwin
    type button
    coord1_relative topleft
    coord1 94 0
    coord2_relative topleft
    coord2 100 24
    image clicked    pixmaps/o2.ppm shapecolor on 255 0 255 
    image selected   pixmaps/o2.ppm shapecolor on 255 0 255
    image unselected pixmaps/o1.ppm shapecolor on 255 0 255
    image scale_method scale
    level above
    action none 1 resize
    action none 2 move
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border14.
  begin subwin
    type title
    coord1_relative topleft
    coord1 100 4
    coord2_relative topright
    coord2 -25 19
    image clicked    pixmaps/m3.ppm shapecolor off 255 0 255 
    image selected   pixmaps/m2.ppm shapecolor off 255 0 255
    image unselected pixmaps/m1.ppm shapecolor off 255 0 255
    image scale_method scale
    level above
    action none 1 move
    action none 2 max_height
    action none 3 max_width
    action shift 1 max_size
    action shift 2 none
    action shift 3 none
    action ctrl 1 raise
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 lower
    action alt 2 none
    action alt 3 none
  end
% status pixmaps/stat_2.ppm shapemode on 255 0 255 Border15.
  begin subwin
    type button
    coord1_relative topleft
    coord1 37 7
    coord2_relative topleft
    coord2 94 24
    image clicked    pixmaps/n2.ppm shapecolor on 255 0 255 
    image selected   pixmaps/n2.ppm shapecolor on 255 0 255
    image unselected pixmaps/n1.ppm shapecolor on 255 0 255
    image scale_method scale
    level above
    action none 1 iconify
    action none 2 none
    action none 3 none
    action shift 1 none
    action shift 2 none
    action shift 3 none
    action ctrl 1 none
    action ctrl 2 none
    action ctrl 3 none
    action alt 1 none
    action alt 2 none
    action alt 3 none
  end

# end the windowstyle config section. in a mulkti-file system, this will end
# the file, but you can thow it all into one file if you so please...
end
% status pixmaps/stat_1.ppm shapemode on 255 0 255 Finished!

