widgets.conf - the widgets screen
The widgets are a tmux session, one pane per widget, that the
compositor pulls down from the top over the current space (Super+W or
Super+Down, Ctrl+Alt+W or Ctrl+Alt+Down, three fingers down on a touchpad,
or a click on the session name in the status line). See
carbonian-widgets(1).
~/.config/carbonian/widgets.conf is used if it exists, otherwise
/etc/carbonian/widgets.conf (the files are not merged). Lines starting with
# and blank lines are ignored. There are three kinds of line:
- enabled
yes|no
- The first line, when present. no turns the widgets off: the panel
is never started, nothing opens it (keys, gesture, hot zone, the status
line, carbonian-ctl), the overview leaves its tile out, and its
programs cost no memory. This line is read from
/etc/carbonian/widgets.conf and then from the user's file, whose line wins
(the slots are not merged). carbonian-ctl widgets reload applies it
without a restart: turned off, the open panel goes away and its tmux
session ends. The default is yes.
- column
WIDTH
- Start a column, left to right. WIDTH is its share of the width,
such as 34%; the last column takes what is left.
- NAME HEIGHT COMMAND
- A widget in the current column, top to bottom. NAME is the pane's
title, HEIGHT its share of the column (the last widget takes what
is left), and COMMAND a terminal application, or a graphical one
(it docks into its pane). If the program is not installed the pane says
so. A widget whose program exits is started again.
Widgets do not scroll: each shows what fits its pane. Give each
the room its content needs. A change takes effect when the session is
rebuilt: tmux kill-session -t widgets.
They are programs in /usr/lib/carbonian; to change what one does,
copy it, edit the copy and point the file at it. Each takes the palette
through the terminal's 16 colours.
- widget-calendar
- The month, today lit, the days with something planned in bold, and what
comes in the next 14 days (from calcurse).
- widget-nowplaying
- What plays now (any MPRIS player) with its progress. Space play/pause, n
next, p previous.
- widget-glance
- The machine at a glance: battery, temperature, disk, memory, uptime.
- widget-notes
- A page of notes: ~/.local/share/carbonian/notes.md in neovim (or
$EDITOR).
- carbonian-clock
--panel widgets
- The time in large digits with the date under it, in the palette's accent
(carbonian-clock(1), in /usr/bin; its settings are in
clock.conf(5)). It draws once a minute while the widgets are open,
and sleeps while they are hidden.
- widget-clock
- tmux's big clock (clock mode), the time slot's widget before
carbonian-clock: widgets.conf has its line, commented.
- widget-weather
- The weather from wttr.in for the place named in
~/.config/carbonian/weather, refreshed every 30 minutes; r asks again at
once. Nothing is asked of the network until a place is set.
- widget-todo
- Taskwarrior tasks. j and k or the arrows move, space or x marks done, a
adds (Taskwarrior syntax), D deletes (asks), v opens VIT, r
refreshes.
- widget-about
- A card about this computer.
Several of them take --once to draw once and exit. Other
things fit as well, for example carbonian-sysmon, cbonsai -l -i -w
2 -L 36 or cmatrix -b -C magenta.
~/.config/carbonian/widgets.conf
/etc/carbonian/widgets.conf
column 50%
calendar 40% /usr/lib/carbonian/widget-calendar
notes 60% /usr/lib/carbonian/widget-notes
column 50%
system 100% carbonian-sysmon
clock.conf(5), carbonian-widgets(1),
drawer.conf(5), sysmon.conf(5)