Copyright | (c) Ulf Jasper |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Ulf Jasper <ulf.jasper@web.de> |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
Simple button which runs a user defined command when being clicked
Synopsis
- simpleCommandButtonNew :: MonadIO m => Text -> Text -> m Widget
Usage
In order to use this widget add the following line to your
taffybar.hs
file:
import System.Taffybar.Widget main = do let cmdButton = simpleCommandButtonNew "Hello World!" "xterm -e \"echo Hello World!; read x\""
Now you can use cmdButton
like any other Taffybar widget.