uair(5)

๐Ÿ“ฆ
version 0.6.3 ยท 2 versions
, in nixos 26.05

๐Ÿ’… NAME โ€” uair(5), the configuration file ๐Ÿ’…

okay so bestie, this is the uair config file page: uair โ€” configuration file. Thatโ€™s the whole NAME vibe. ๐Ÿ’–

โœจ DESCRIPTION โœจ

The number of pomodoro sessions and their properties can be specified by an uair configuration file in TOML format. A config file consists of the following keys:

  • loop_on_end โ€” This is a boolean value (true or false) which controls whether uair repeats all sessions after the completion of the last session. ๐Ÿ”
  • iterations โ€” This is a non-negative integer which specifies the number of times sessions mentioned in the sessions array are iterated. ๐Ÿ”ข
  • pause_at_start โ€” This is a boolean value (true or false) which controls whether uair is at paused state at startup. โธ๏ธ
  • startup_text โ€” It specifies the text to be printed at startup. (Deprecated) ๐Ÿซ 
  • defaults โ€” This is a table containing default session properties. If a session has a property unspecified, the value of the corresponding key in this table is used instead. Specifying a default id is not allowed. ๐Ÿšซ
  • sessions โ€” This is an array of tables. Each table in this array corresponds to a session. The order of sessions in this array is the order in which they are scheduled. Each table in this array consists of keys which describe the properties of the session, which are discussed in the following section. ๐Ÿ—“๏ธ

๐ŸŽ€ SESSION PROPERTIES ๐ŸŽ€

  • id โ€” Unique identifier of the session. If unspecified, it is automatically set to the zero-indexed position of the session in the sessions array. ๐Ÿ†”
  • name โ€” Name of the session. ๐Ÿท๏ธ
  • duration โ€” Duration of the session. Can be specified in human readable format. e.g.: "1h 47m" โณ
  • command โ€” Command which is run when the session finishes. See COMMAND ENVIRONMENT section for information on environment variables which are passed to the command. ๐Ÿ–ฅ๏ธ
  • format โ€” Specifies the format in which text is printed each second. See FORMAT SPECIFIERS section for details. ๐ŸŽจ
  • time_format โ€” Specifies the format in which {time} format specifier prints time. See TIME FORMAT SPECIFIERS section for details. ๐Ÿ•ฐ๏ธ
  • autostart โ€” Boolean value (true or false) which dictates whether the session automatically starts. ๐Ÿš€
  • paused_state_text โ€” Text which is displayed by the {state} format specifier when the timer is paused. โธ๏ธ
  • resumed_state_text โ€” Text which is displayed by the {state} format specifier when the timer is resumed. โ–ถ๏ธ
  • overrides โ€” A table consisting of OVERRIDABLES as values and their names as keys. It allows to specify named overrides to be applied during uairctl listen See OVERRIDABLES section for more information and for the list of overridable properties. ๐ŸŽ›๏ธ

๐ŸŒˆ FORMAT SPECIFIERS ๐ŸŒˆ

The format property of a session is a string which specifies what and how text is printed every second. For example, the following format string can be used to print the name of the session followed by the remaining time, followed by the total duration of the session, all in cyan color. iconic behavior, honestly. ๐Ÿฉต

{cyan}{name}: {time} / {total}{end}

The list of format specifiers is:

  • {name} โ€” Session name ๐Ÿท๏ธ
  • {percent} โ€” Percentage of time remaining ๐Ÿ“Š
  • {time} โ€” Remaining time for session โณ
  • {state} โ€” Text which depends on the state (paused/resumed) of the timer. This text is configurable through paused_state_text and resumed_state_text session properties. ๐Ÿ”„
  • {total} โ€” Total duration of session ๐Ÿงฎ
  • {black} โ€” Start black color text ๐Ÿ–ค
  • {red} โ€” Start red color text โค๏ธ
  • {green} โ€” Start green color text ๐Ÿ’š
  • {yellow} โ€” Start yellow color text ๐Ÿ’›
  • {blue} โ€” Start blue color text ๐Ÿ’™
  • {purple} โ€” Start purple color text ๐Ÿ’œ
  • {cyan} โ€” Start cyan color text ๐Ÿฉต
  • {white} โ€” Start white color text ๐Ÿค
  • {end} โ€” Start end color text (yes, thatโ€™s literally what it says ๐Ÿ˜ญ)

๐Ÿฆ‹ TIME FORMAT SPECIFIERS ๐Ÿฆ‹

The time_format property of a session is a string which specifies what and how text produced by {time} format specifier is printed. Time format specifiers have the following syntax. ๐Ÿงš

%[optional skip flag][optional padding flag]alphabet

As an example, the following time format string can be used to print time in a digital clock-like format. ๐Ÿ•ฐ๏ธ

%H:%M:%S

The list of interpreted sequences is:

  • %Y โ€” Remaining years ๐Ÿ“…
  • %B โ€” Remaining months in a year ๐Ÿ—“๏ธ
  • %D โ€” Remaining days in a month ๐Ÿ“†
  • %H โ€” Remaining hours in a day โฐ
  • %M โ€” Remaining minutes in an hour โฑ๏ธ
  • %S โ€” Remaining seconds in a minute โฒ๏ธ
  • %P โ€” Prints 's' if the quantity specified by the format specifier before it is plural and nothing if singular. ๐Ÿ”ค

The list of optional padding flags is:

  • 0 โ€” Pad with zeroes (default) 0๏ธโƒฃ
  • _ โ€” Pad with spaces โฃ
  • - โ€” Do not pad ๐Ÿšซ

An optional * flag may follow % to skip the quantity specified by the format specifier and skip all text before the next quantifiable format specifier. โญ๏ธ

๐Ÿ‘‘ OVERRIDABLES ๐Ÿ‘‘

Each value in the 'overrides' session property is a table named OVERRIDABLES which can contain one or more of the following properties. ๐Ÿ’ซ

  • format โ€” Specifies the format in which text is printed each second. See FORMAT SPECIFIERS section for details. ๐ŸŽจ
  • time_format โ€” Specifies the format in which {time} format specifier prints time. See TIME FORMAT SPECIFIERS section for details. ๐Ÿ•ฐ๏ธ
  • paused_state_text โ€” Text which is displayed by the {state} format specifier when the timer is paused. โธ๏ธ
  • resumed_state_text โ€” Text which is displayed by the {state} format specifier when the timer is resumed. โ–ถ๏ธ

๐Ÿ“ COMMAND ENVIRONMENT ๐Ÿ“

Some environment variables are passed to the command specified by the command property of a session which enables printing various session properties. They are as follows ๐ŸŒŸ

  • $name โ€” name property of session ๐Ÿท๏ธ
  • $duration โ€” duration property of session โณ

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

๐Ÿ’– thatโ€™s the uair(5) page from the File Formats Manual, dated 1980-01-01 โ€” go slay your config, bestie, periodt ๐Ÿ’–

๐Ÿ“ฆ where this page comes from