summaryrefslogtreecommitdiffhomepage
path: root/Plugins/HelloWorld.hs
blob: 2b525067c54681fbc52b287a4595b0a349d68b5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"