taffybar-3.2.1: A desktop bar similar to xmobar, but with more GUI

System.Taffybar.Widget.CommandRunner

Description

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

Synopsis

# 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.