tztime local {
format = "%Y-%m-%d %H:%M:%S"
+ hide_if_equals_localtime = true
}
tztime berlin {
disk "/" {
format = "%free"
}
+
+read_file uptime {
+ path = "/proc/uptime"
+}
+
-------------------------------------------------------------
=== General
*Example format*: +%1min %5min %15min+
-*Example max_threshold*: +"0,1"+
+*Example max_threshold*: +"0.1"+
*Example format_above_threshold*: +Warning: %1min %5min %15min+
+/usr/share/zoneinfo/Europe/Berlin+ you can set timezone to +Europe/Berlin+
in the +tztime+ module.
To override the locale settings of your environment, set the +locale+ option.
+To display time only when the set timezone has different time from localtime, set
++hide_if_equals_localtime+ to true.
*Example order*: +tztime berlin+
format = "<span foreground='#ffffff'>time:</span> %time"
format_time = "%H:%M %Z"
timezone = "Europe/Berlin"
+ hide_if_equals_localtime = true
}
-------------------------------------------------------------
*Example order*: +volume master+
-*Example format*: +♪: %volume+
+*Example format*: +♪ (%devicename): %volume+
-*Example format_muted*: +♪: 0%%+
+*Example format_muted*: +♪ (%devicename): 0%%+
*Example configuration*:
-------------------------------------------------------------
}
-------------------------------------------------------------
+=== File Contents
+
+Outputs the contents of the specified file. You can use this to check contents
+of files on your system, for example /proc/uptime. By default the function only
+reads the first 254 characters of the file, if you want to override this set
+the Max_characters option. It will never read beyond the first 4095 characters.
+If the file is not found "no file" will be printed, if the file can't be read
+"error read" will be printed.
+
+*Example order*: read_file UPTIME
+
+*Example format*: "%title: %content"
+
+*Example format_bad*: "%title - %errno: %error"
+
+*Example path*: "/proc/uptime"
+
+*Example Max_characters*: 255
+
== Universal module options
When using the i3bar output format, there are a few additional options that