What's the catch?
Posted on November 25th, 2007 by Sean | Edit Post
This is a free template released by Template Fusion for personal or commercial use. It is licensed under the Creative Commons Attribution 2.5 Canada License. That pretty much means you can use it in any way you want, but you MUST have "attribution" to TemplateFusion, in the form of a link.
Read More
Some Code Examples
Posted on November 25th, 2007 by Sean | Edit Post
Code
#!/bin/bash
#
# Dzen2 App Launcher script box version by Rasmus Edgar.
# -tw = Width of titlebar, -w = Width of slavewindow,
# -l = length of slavewindow. Remember to adjust -l accordingly when adding
# apps. ^pa(*) is for text/decoration alignment.
#
# The getcurpos(x+y) programs are minor hacks of Robert Manea's getcurpos available
# on his website. The only thing that is changed in the source code is the removal of
# one of the "%d" and e.xbutton.*'s.
#
# Menu script starts below.
#
# Needed Applications:
AP1=firefox3
AP2=gimp
AP3=consonance
AP4=leafpad
AP5=pcmanfm
SM1=submenu1
IB=1
GR=$(cat ~/bin/grad1)
# Get cursor position:
XP=$(getcurpos | cut -c1-4)
YP=$(getcurpos | cut -c5-10)
# Decorations for the menu:
DC1=1x17
DC2=3x2
DC3=4x2
DC4=3x1
DC5=123x10
DC6=125x17
# Font:
FONT="-*-dina-medium-r-*-*-15-*-*-*-*-*-iso8859-1"
# Menu Title
TI="Dzen Menu"
# Colors:
FG1=#9ab8c2
FG2=#f57900
FG3=#D9A509
FG4=#3A3A3A
FG5=#E3DEB1
FG6=#183640
BG2=#86A4AE
# Icons:
IC1=~/dzen_bitmaps/xbm8x8/fox.xbm
IC2=~/dzen_bitmaps/xbm8x8/gimp.xbm
IC3=~/dzen_bitmaps/xbm8x8/note.xbm
IC4=~/dzen_bitmaps/xbm8x8/leaf.xbm
IC5=~/dzen_bitmaps/xbm8x8/pcman.xbm
SMI=~/dzen_bitmaps/xbm8x8/arrow.xbm
# Text piped to Dzen2
(cat ~/bin/grad1; echo "^ib(1)^fg(${FG1})^pa(0)^ro(${DC6})^ib(1)^fg(${FG5})^pa(30)$TI" ; echo -e \
"${GR}^ib(${IB})^pa(0)^fg(${FG1})^r(${DC1})^r(${DC2})^r(${DC3}) ^fg(${FG6})^bg(${BG2})^ib(0)^pa(+15)^i(${IC1})^ib(1)^fg(${FG4}) ${AP1} ^fg(${FG1})^pa(117)^r(${DC3})^r(${DC2})^r(${DC1})\
\n${GR}^ib(${IB})^pa(0)^fg(${FG1})^r(${DC1})^r(${DC2})^r(${DC3}) ^fg(${FG6})^bg(${BG2})^ib(0)^pa(+15)^i(${IC2})^ib(1)^fg(${FG4}) ${AP2} ^fg(${FG1})^pa(117)^r(${DC3})^r(${DC2})^r(${DC1})\
\n${GR}^ib(${IB})^pa(0)^fg(${FG1})^r(${DC1})^r(${DC2})^r(${DC3}) ^fg(${FG6})^bg(${BG2})^ib(0)^pa(+15)^i(${IC3})^ib(1)^fg(${FG4}) ${AP3} ^fg(${FG1})^pa(117)^r(${DC3})^r(${DC2})^r(${DC1})\
\n${GR}^ib(${IB})^pa(0)^fg(${FG1})^r(${DC1})^r(${DC2})^r(${DC3}) ^fg(${FG6})^bg(${BG2})^ib(0)^pa(+15)^i(${IC4})^ib(1)^fg(${FG4}) ${AP4} ^fg(${FG1})^pa(117)^r(${DC3})^r(${DC2})^r(${DC1})\
\n${GR}^ib(${IB})^pa(0)^fg(${FG1})^r(${DC1})^r(${DC2})^r(${DC3}) ^fg(${FG6})^bg(${BG2})^ib(0)^pa(+15)^i(${IC5})^ib(1)^fg(${FG4}) ${AP5} ^fg(${FG1})^pa(117)^r(${DC3})^r(${DC2})^r(${DC1})\
\n${GR}^ib(${IB})^pa(0)^fg(${FG1})^r(${DC1})^r(${DC2})^r(${DC3}) ^fg(${FG6})^bg(${BG2})^ib(0)^pa(+15)^i(${SMI})^ib(1)^fg(${FG4}) ${SM1} ^fg(${FG1})^pa(117)^r(${DC3})^r(${DC2})^r(${DC1})\
\n${GR}^ib(1)^fg(${FG1})^pa(0)^ro(${DC6})^fg(${FG5})^ib(1)^pa(30)ver. 0.2")\
| (dzen2 -y "$YP" -x "$XP" -fn "$FONT" -fg "$FG1" -l 7 -tw 125 -ta l -w 125 -m -p -e 'onstart=uncollapse;button1=menuexec;leaveslave=exit;button3=exit')
Example Lists
- Here is an example
- of an ordered list
- Here is an example
- of an unordered list
Blockquote
A blockquote is meant to seperate a quote or important part of text from the main text body. A stylish blockquote does that with flair.
Image and text
If you want to align an image to the right or the left of your text, simply add class="float-right" or class="float-left" in your <img> tag. If you want to align DIV or <P> tags to anything, simply add class="align-left", or class="align-right" to your <p> or <div> tag.
Table Styling
Example Form
Read More