sineemore / stw

simple text widget for X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stw

stw is a simple text window for X.

Here stw runs pstree and renders its output above desktop wallpaper.

$ stw -F 'monospace:size=8' pstree -U

stw mostly resembles watch command:

  • stw creates an unmanaged X window at specified position and starts subcommand.
  • if subcommand terminates, stw sleeps specified number of seconds and restarts it.
  • if stw X window is clicked, stw terminates subcommand and restarts it immediately.
  • stw buffers subcommand output.
  • when output line matches specified delimeter line or subcommand terminates, stw renders collected output.
  • each time stw renders, it clears both collected output and X window.
  • stw hides X window on start and when subcommand output is empty.

It is possible to specify font, text align, text color, background color, opacity, window position, border width, sleep period via command line arguments or config.h file.

About

simple text widget for X

License:MIT License


Languages

Language:C 81.3%Language:Roff 12.0%Language:Makefile 6.7%