X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=man%2Fi3status.man;h=70ba71a90938bca805833ee70be14dd90a1ad320;hb=HEAD;hp=b3f71bf7782f6743fbf6a7557b28409569664504;hpb=ac6c2a7d46603202be3a4f4d677f0be274d15e23;p=i3%2Fi3status diff --git a/man/i3status.man b/man/i3status.man index b3f71bf..70ba71a 100644 --- a/man/i3status.man +++ b/man/i3status.man @@ -97,7 +97,7 @@ path_exists VPN { tztime local { format = "%Y-%m-%d %H:%M:%S" - only_when_tz_different = true + hide_if_equals_localtime = true } tztime berlin { @@ -123,6 +123,11 @@ memory { disk "/" { format = "%free" } + +read_file uptime { + path = "/proc/uptime" +} + ------------------------------------------------------------- === General @@ -515,8 +520,8 @@ Files below that path make for valid timezone strings, e.g. for +/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 timezone is different from local timezone, set -+only_when_tz_different+ to true. +To display time only when the set timezone has different time from localtime, set ++hide_if_equals_localtime+ to true. *Example order*: +tztime berlin+ @@ -536,7 +541,7 @@ tztime berlin { format = "time: %time" format_time = "%H:%M %Z" timezone = "Europe/Berlin" - only_when_tz_different = false + hide_if_equals_localtime = true } ------------------------------------------------------------- @@ -581,9 +586,9 @@ to "default", PulseAudio will be tried if detected and will fallback to ALSA *Example order*: +volume master+ -*Example format*: +♪: %volume+ +*Example format*: +♪ (%devicename): %volume+ -*Example format_muted*: +♪: 0%%+ +*Example format_muted*: +♪ (%devicename): 0%%+ *Example configuration*: ------------------------------------------------------------- @@ -611,6 +616,25 @@ volume master { } ------------------------------------------------------------- +=== 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