| Copyright | (c) Arseniy Seroka |
|---|---|
| License | BSD3-style (see LICENSE) |
| Maintainer | Arseniy Seroka <ars.seroka@gmail.com> |
| Stability | unstable |
| Portability | unportable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
System.Taffybar.Widget.CommandRunner
Description
Simple function which runs user defined command and returns it's output in PollingLabel widget
Documentation
Arguments
| :: MonadIO m | |
| => Double | Polling period (in seconds). |
| -> String | Command to execute. Should be in $PATH or an absolute path |
| -> [String] | Command argument. May be |
| -> Text | If command fails this will be displayed. |
| -> m Widget |
Creates a new command runner widget. This is a PollingLabel fed by
regular calls to command given by argument. The results of calling this
function are displayed as string.