diff options
Diffstat (limited to 'Plugins/HelloWorld.hs')
-rw-r--r-- | Plugins/HelloWorld.hs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Plugins/HelloWorld.hs b/Plugins/HelloWorld.hs new file mode 100644 index 0000000..2b52506 --- /dev/null +++ b/Plugins/HelloWorld.hs @@ -0,0 +1,25 @@ +----------------------------------------------------------------------------- +-- | +-- Module : Plugins.HelloWorld +-- Copyright : (c) Andrea Rossato +-- License : BSD-style (see LICENSE) +-- +-- Maintainer : Andrea Rossato <andrea.rossato@unibz.it> +-- Stability : unstable +-- Portability : unportable +-- +-- A plugin example for XMobar, a status bar for the Xmonad Window Manager +-- +----------------------------------------------------------------------------- + +module Plugins.HelloWorld where + +import Commands + +data Plugin = HelloWorld + deriving (Show, Read) + +instance Exec Plugin where + run HelloWorld = return "<fc=red>Hello World!!</fc>" + rate HelloWorld = 1000 + alias HelloWorld = "helloWorld" |