taffybar-4.0.1: A desktop bar similar to xmobar, but with more GUI
Copyright(c) Arseniy Seroka
LicenseBSD3-style (see LICENSE)
MaintainerArseniy Seroka <ars.seroka@gmail.com>
Stabilityunstable
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Taffybar.Widget.CommandRunner

Description

Simple function which runs user defined command and returns it's output in PollingLabel widget

Synopsis

Documentation

commandRunnerNew Source #

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.