3 an amazing widget manager for an awesome window manager
5 Usage: amazing [options]
6 -c, --config FILE Configuration file (~/.amazing/config.yml)
7 -l, --log-level LEVEL Severity threshold (info)
8 -s, --stop Stop the running amazing process
9 -i, --include SCRIPT Include a widgets script
10 --no-auto-include Don't auto include from ~/.amazing/widgets/
11 -u, --update [WIDGET] Update a widget and exit
12 -w, --list-widgets [WIDGET] List available widgets or options and fields for a widget
13 -t WIDGET [OPTIONS] Dump field values for a widget configured with inline YAML
15 -h, --help You're looking at it
19 ACAdapter : AC adapter status
20 ALSA : Various data for the ALSA mixer
21 Battery : Remaining battery power in percentage
22 Clock : Displays date and time
23 File : Information for a file
24 Filesystem : Various filesystem information
26 MOC : Music On Console status
28 Maildir : Mail count in maildirs
29 Memory : Various memory related data
30 NetTraffic : Network traffic information
31 Pacman : Available upgrades in the Pacman package manager
32 Raggle : Unread posts in raggle
37 - <path/to/program.rb>
44 <custom option>: <value>
61 format: '"#@count new message#{@count != 1 : "s" : ""}"'
66 In this example tb_mail doesn't have an "every" setting and is instead
67 updated manually with <tt>amazing -u tb_mail</tt>, perhaps in cron after fetching
68 new mail via fdm, getmail, fetchmail or similar. A good idea is also to
69 update after closing your MUA such as Mutt which could be done with
70 shell functions, example:
79 TODO: describe this more completely
84 description "Displays date and time"
85 dependency "some/library", "how to get the library (url, gem name...)"
86 option :time_format, "Time format as described in DATE(1)", "%R"
87 field :time, "Formatted time"
91 @time = Time.now.strftime(@time_format)
92 raise WidgetError, "An error occured!" if some_error?
96 The ProcFile class can be used for parsing /proc files:
98 cpuinfo = ProcFile.parse_file("cpuinfo")
99 cpuinfo[1]["model name"]
100 #=> "AMD Turion(tm) 64 X2 Mobile Technology TL-50"
104 Copyright (C) 2008 Dag Odenhall <dag.odenhall@gmail.com>
105 Licensed under the Academic Free License version 3.0