uair(5)
๐ 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 (trueorfalse) which controls whetheruairrepeats 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 thesessionsarray are iterated. ๐ขpause_at_startโ This is a boolean value (trueorfalse) which controls whetheruairis 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 defaultidis 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 thesessionsarray. ๐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 (trueorfalse) 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 duringuairctl listenSee 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 throughpaused_state_textandresumed_state_textsession 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โnameproperty of session ๐ท๏ธ$durationโdurationproperty 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
- nixos 26.05: uair 0.6.3
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms