Available modules
air_quality






Display air quality polluting in a given location.
An air quality index (AQI) is a number used by government agencies to communicate to the public how polluted the air currently is or how polluted it is forecast to become. As the AQI increases, an increasingly large percentage of the population is likely to experience increasingly severe adverse health effects. Different countries have their own air quality indices, corresponding to different national air quality standards.
Configuration parameters:
-
auth_tokenPersonal token required. See https://aqicn.org/data-platform/token for more information. (default 'demo') -
cache_timeoutrefresh interval for this module. A message from the site: The default quota is max 1000 requests per minute (~16RPS) and with burst up to 60 requests. See https://aqicn.org/api/ for more information. (default 3600) -
formatdisplay format for this module (default '[\?color=aqi {city_name}: {aqi} {category}]') -
format_datetimespecify strftime characters to format (default {}) -
locationlocation or uid to query. To search for nearby stations in Kraków, tryhttps://api.waqi.info/search/?token=YOUR_TOKEN&keyword=krakówFor best results, use uid instead of name in location, eg@8691. (default 'Shanghai') -
quality_thresholdsspecify a list of tuples, eg (number, 'color', 'name') (default [(0, '#009966', 'Good'), (51, '#FFDE33', 'Moderate'), (101, '#FF9933', 'Sensitively Unhealthy'), (151, '#CC0033', 'Unhealthy'), (201, '#660099', 'Very Unhealthy'), (301, '#7E0023', 'Hazardous')]) -
thresholdsspecify color thresholds to use (default {'aqi': True})
Notes: Your station may have individual scores for pollutants not listed below. See https://api.waqi.info/feed/@UID/?token=TOKEN (Replace UID and TOKEN) for a full list of placeholders to use.
Format placeholders:
-
{aqi}air quality index -
{attributions_0_name}attribution name, there maybe more, change the 0 -
{attributions_0_url}attribution url, there maybe more, change the 0 -
{category}health risk category, eg Good, Moderate, Unhealthy, etc -
{city_geo_0}monitoring station latitude -
{city_geo_1}monitoring station longitude -
{city_name}monitoring station name -
{city_url}monitoring station url -
{dominentpol}dominant pollutant, eg pm25 -
{idx}Unique ID for the city monitoring station, eg 7396 -
{time}epoch timestamp, eg 1510246800 -
{time_s}local timestamp, eg 2017-11-09 17:00:00 -
{time_tz}local timezone, eg -06:00 -
{iaqi_co}individual score for pollutant carbon monoxide -
{iaqi_h}individual score for pollutant h (?) -
{iaqi_no2}individual score for pollutant nitrogen dioxide -
{iaqi_o3}individual score for pollutant ozone -
{iaqi_pm25}individual score for pollutant particulates smaller than 2.5 μm in aerodynamic diameter -
{iaqi_pm10}individual score for pollutant particulates smaller than 10 μm in aerodynamic diameter -
{iaqi_pm15}individual score for pollutant particulates smaller than than 15 μm in aerodynamic diameter -
{iaqi_p}individual score for pollutant particulates -
{iaqi_so2}individual score for pollutant sulfur dioxide -
{iaqi_t}individual score for pollutant t (?) -
{iaqi_w}individual score for pollutant w (?)AQI denotes an air quality index. IQAI denotes an individual AQI score. Try https://en.wikipedia.org/wiki/Air_pollution#Pollutants for more information on the pollutants retrieved from your monitoring station.
format_datetime placeholders:
-
keyepoch_placeholder, eg time, vtime -
value% strftime characters to be translated, eg '%b %d' ----> 'Nov 11'
Color options:
color_badprint a color for error (if any) from the site
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Examples:
# show last updated time
air_quality {
format = '{city_name}: {aqi} {category} - {time}'
format_datetime = {'time': '%-I%P'}
}
author beetleman, lasers
license BSD
apt_updates

Display number of pending updates for Debian based Distros.
Thanks to Iain Tatch <iain.tatch@gmail.com> for the script that this is based on. This will display a count of how many 'apt' updates are waiting to be installed.
Configuration parameters:
-
cache_timeoutHow often we refresh this module in seconds (default 600) -
formatDisplay format to use (default 'UPD[\?not_zero : {apt}]')
Format placeholders:
{apt}Number of pending apt updates
Requires:
aptNeeded to display pending 'apt' updates
author Joshua Pratt <jp10010101010000@gmail.com>
license BSD
arch_updates


Display number of pending updates for Arch Linux.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 3600) -
formatdisplay format for this module, otherwise auto (default None) -
hide_if_zerodon't show on bar if True (default False)
Format placeholders:
-
{aur}Number of pending aur updates -
{pacman}Number of pending pacman updates -
{total}Total updates pending
Requires:
-
pacman-contribcontributed scripts and tools for pacman systems -
auraclea flexible command line client for arch linux's user repository -
trizenlightweight pacman wrapper and AUR helper -
yayyet another yogurt. pacman wrapper and aur helper written in go -
parufeature packed AUR helper -
pikaurpacman wrapper and AUR helper written in python
Note: py3status for Arch-based distributions should include an alpm hook to refresh this module after packages and/or files being modified.
author Iain Tatch <iain.tatch@gmail.com>
license BSD
async_script


Display output of a given script asynchronously.
Always displays the last line of output from a given script, set by
script_path. If a line contains only a color (/^#[0-F]{6}$/), it is used
as such (set force_nocolor to disable). The script may have parameters.
Configuration parameters:
-
force_nocolorif true, won't check if a line contains color (default False) -
formatsee placeholders below (default '{output}') -
script_pathscript you want to show output of (compulsory) (default None) -
strip_outputshall we strip leading and trailing spaces from output (default False)
Format placeholders:
{output}output of script given by "script_path"
Examples:
async_script {
format = "{output}"
script_path = "ping 127.0.0.1"
}
author frimdo ztracenastopa@centrum.cz, girst
audiosink


Display and toggle default audiosink.
Configuration parameters:
-
cache_timeoutHow often we refresh this module in seconds (default 10) -
display_name_mappingdictionary mapping devices names to display names (default {}) -
formatdisplay format for this module (default '{audiosink}') -
sinks_to_ignorelist of devices names to ignore (default [])
Format placeholders:
{audiosink}comma seperated list of (display) names of default sink(s)
Requires:
pulseaudionetworked sound server
Examples:
audiosink {
display_name_mapping = {"Family 17h/19h HD Audio Controller Analog Stereo": "Int", "ThinkPad Dock USB Audio Analog Stereo": "Dock"}
format = r"{audiosink}"
sinks_to_ignore = ["Renoir Radeon High Definition Audio Controller Digital Stereo (HDMI)"]
}
author Jens Brandt <py3status@brandt-george.de>
license BSD
aws_bill

Display bill for Amazon Web Services.
WARNING: This module generate some costs on the AWS bill. Take care about the cache_timeout to limit these fees!
Configuration parameters:
-
aws_access_key_idYour AWS access key (default '') -
aws_account_idThe root ID of the AWS account Can be found here` https://console.aws.amazon.com/billing/home#/account (default '') -
aws_secret_access_keyYour AWS secret key (default '') -
billing_fileCsv file location (default '/tmp/.aws_billing.csv') -
cache_timeoutHow often we refresh this module in seconds (default 3600) -
formatstring that formats the output. See placeholders below. (default '{bill_amount}$') -
s3_bucket_nameThe bucket where billing files are sent by AWS. Follow this article to activate this feature: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-reports.html (default '')
Format placeholders:
{bill_amount}AWS bill amount
Color options:
-
color_goodBalance available -
color_badAn error has occurred
Requires:
botoa python interface to amazon web services (aws)
author nawadanp
backlight

Adjust screen backlight brightness.
Configuration parameters:
-
brightness_deltaChange the brightness by this step. (default 8) -
brightness_initialSet brightness to this value on start. (default None) -
brightness_minimalDon't go below this brightness to avoid black screen (default 1) -
button_downButton to click to decrease brightness. Setting to 0 disables. (default 5) -
button_upButton to click to increase brightness. Setting to 0 disables. (default 4) -
cache_timeoutHow often we refresh this module in seconds (default 10) -
commandThe program to use to change the backlight. Currently xbacklight, light and brightnessctl are supported. The program needs to be installed and on your path. If no program is installed, this module will attempt to use logind support instead (default 'xbacklight') -
deviceDevice name or full path to use, eg, acpi_video0 or /sys/class/backlight/acpi_video0, otherwise automatic (default None) -
formatDisplay brightness, see placeholders below (default '☼: {level}%') -
hide_when_unavailableHide if no backlight is found (default False) -
low_tune_thresholdIf current brightness value is below this threshold, the value is changed by a minimal value instead of the brightness_delta. (default 0)
Format placeholders:
{level}brightness
Requires: one of xbacklight: need for changing brightness, not detection light: program to easily change brightness on backlight-controllers brightnessctl: change brightness wayland compatible dbus-python + logind v243: logind to change brightness without X
author Tjaart van der Walt (github:tjaartvdwalt), Jérémy Rosen (github:boucman)
license BSD
battery_level


Display battery information.
Configuration parameters:
-
battery_idid of the battery to be displayed set to 'all' for combined display of all batteries (default 0) -
blocksa string, where each character represents battery level especially useful when using icon fonts (e.g. FontAwesome) (default "_▁▂▃▄▅▆▇█") -
cache_timeouta timeout to refresh the battery state (default 60) -
charging_charactera character to represent charging battery especially useful when using icon fonts (e.g. FontAwesome) set to 'None' if you want to hide the charging state of your battery (default "⚡") -
formatstring that formats the output. See placeholders below. (default "{icon}") -
format_notify_chargingformat of the notification received when you click on the module while your computer is plugged in (default 'Charging ({percent}%)') -
format_notify_dischargingformat of the notification received when you click on the module while your computer is not plugged in (default "{time_remaining}") -
format_status_bada string to put in {status} when bad (default "CRIT") -
format_status_charginga string to put in {status} when charging (default "CHG") -
format_status_degradeda string to put in {status} when degraded (default "LOW") -
format_status_discharginga string to put in {status} when discharging (default "BAT") -
format_status_fulla string to put in {status} when full (default "FULL") -
hide_secondshide seconds in remaining time (default False) -
hide_when_fullhide any information when battery is fully charged (when the battery level is greater than or equal to 'threshold_full') (default False) -
measurement_modeeither 'acpi' or 'sys', or None to autodetect. 'sys' should be more robust and does not have any extra requirements, however the time measurement may not work in some cases (default None) -
notificationshow current battery state as notification on click (default False) -
notify_low_leveldisplay notification when battery is running low (when the battery level is less than 'threshold_degraded') (default False) -
on_udev_power_supplydynamic variable to watch forpower_supplyudev subsystem events to trigger specified action. (default "refresh") -
sys_battery_pathset the path to your battery(ies), without including its number (default "/sys/class/power_supply/") -
threshold_bada percentage below which the battery level should be considered bad (default 10) -
threshold_degradeda percentage below which the battery level should be considered degraded (default 30) -
threshold_fulla percentage at or above which the battery level should should be considered full (default 100)
Format placeholders:
-
{ascii_bar}- a string of ascii characters representing the battery level, an alternative visualization to '{icon}' option -
{icon}- a character representing the battery level, as defined by the 'blocks' and 'charging_character' parameters -
{percent}- the remaining battery percentage (previously '{}') -
{time_remaining}- the remaining time until the battery is empty -
{power}- the current power consumption in Watts. Not working with acpi. -
{status}- the current battery status string as defined by 'format_status_*'
Color options:
-
color_badBattery level is below threshold_bad -
color_chargingBattery is charging (default "#FCE94F") -
color_degradedBattery level is below threshold_degraded -
color_goodBattery level is above thresholds
Requires:
- the acpi the acpi command line utility (only if
measurement_mode='acpi')
author shadowprince, AdamBSteele, maximbaz, 4iar, m45t3r
license Eclipse Public License
bluetooth

Display bluetooth status.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default "{format_adapter}") -
format_adapterdisplay format for adapters (default "{format_device}") -
format_adapter_separatorshow separator if more than one (default " ") -
format_devicedisplay format for devices (default "\?if=connected&color=connected {alias}") -
format_device_separatorshow separator if more than one (default " ") -
thresholdsspecify color thresholds to use (default [(False, "bad"), (True, "good")])
Format placeholders:
-
{format_adapter}format for adapters -
{adapter}number of adapters, eg 1
format_adapter placeholders:
-
{format_device}format for devices -
{device}number of devices, eg 5 -
{address}eg, 00:00:00:00:00:00 -
{addresstype}eg, public -
{alias}eg, thinkpad -
{class}eg, 123456 -
{discoverable}eg, False -
{discoverabletimeout}eg, 0 -
{discovering}eg, False -
{modalias}eg, usb:v1D68234ABCDEF5 -
{name}eg, z420 -
{pairable}eg, True -
{pairabletimeout}eg, 0 -
{path}eg, /org/bluez/hci0 -
{powered}eg, True -
{uuids}eg, []
format_device placeholders:
-
{adapter}eg, /org/bluez/hci0 -
{address}eg, 00:00:00:00:00:00 -
{addresstype}eg, public -
{alias}eg, MSFT Mouse -
{battery}eg, 95 -
{class}eg, 1234 -
{connected}eg, False -
{icon}eg, input-mouse -
{legacypairing}eg, False -
{modalias}eg, usb:v1D68234ABCDEF5 -
{name}eg, Microsoft Bluetooth Notebook Mouse 5000 -
{paired}eg, True -
{servicesresolved}eg, False -
{trusted}eg, True -
{uuids}eg, []
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
pygobjectPython bindings for GObject Introspection
Examples:
# always display devices
bluetooth {
format_device = "\?color=connected {alias}"
}
# set an alias via blueman-manager or bluetoothctl
# $ bluetoothctl
# [bluetooth] # devices
# [bluetooth] # connect 00:00:00:00:00:00
# [bluetooth] # set-alias "MSFT Mouse"
# display missing adapter (feat. request)
bluetooth {
format = "\?if=adapter {format_adapter}|\?color=darkgray No Adapter"
}
# legacy default
bluetooth {
format = "\?color=good BT: {format_adapter}|\?color=bad BT"
format_device_separator = "\|"
}
author jmdana, lasers
license BSD
check_tcp


Display status of a TCP port on a given host.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default '{host}:{port} {state}') -
hostname of host to check for (default 'localhost') -
icon_offshow this when unavailable (default 'DOWN') -
icon_onshow this when available (default 'UP') -
portnumber of port to check for (default 22)
Format placeholders:
{state}port state
Color options:
-
color_downClosed, default to color_bad -
color_upOpen, default to color_good
author obb, Moritz Lüdecke
clock


Display date and time.
This module allows one or more datetimes to be displayed.
All datetimes share the same format_time but can set their own timezones.
Timezones are defined in the format using the TZ name in squiggly brackets eg
{GMT}, {Portugal}, {Europe/Paris}, {America/Argentina/Buenos_Aires}.
See https://docs.python.org/3/library/zoneinfo.html for supported formats.
{Local} can be used for the local settings of your computer.
Note: Timezones are case sensitive!
A full list of timezones can be found at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Configuration parameters:
-
block_hourslength of time period for all blocks in hours (default 12) -
blocksa string, where each character represents time period from the start of a time period. (default '🕛🕧🕐🕜🕑🕝🕒🕞🕓🕟🕔🕠🕕🕡🕖🕢🕗🕣🕘🕤🕙🕥🕚🕦') -
button_change_formatbutton that switches format used setting to None disables (default 1) -
button_change_time_formatbutton that switches format_time used. Setting to None disables (default 2) -
button_resetbutton that switches display to the first timezone. Setting to None disables (default 3) -
cycleIf more than one display then how many seconds between changing the display (default 0) -
formatdefines the timezones displayed. This can be a single string or a list. If a list is supplied then the formats can be cycled through usingcycleor by button click. (default '{Local}') -
format_timeformat to use for the time, strftime directives such as%Hcan be used this can be either a string or to allow multiple formats as a list. The one used can be changed by button click. (default ['[{name_unclear} ]%c', '[{name_unclear} ]%x %X', '[{name_unclear} ]%a %H:%M', '[{name_unclear} ]{icon}']) -
localeOverride the system locale. Examples: when set to 'fr_FR' %a on Tuesday is 'mar.'. (default None) -
round_to_nearest_blockdefines how a block icon is chosen. Examples: when set to True, '13:14' is '🕐', '13:16' is '🕜' and '13:31' is '🕜'; when set to False, '13:14' is '🕐', '13:16' is '🕐' and '13:31' is '🕜'. (default True)
Format placeholders:
-
{icon}a character representing the time fromblocks -
{name}friendly timezone name egBuenos Aires -
{name_unclear}friendly timezone name egBuenos Airesbut is empty if only one timezone is provided -
{timezone}full timezone name egAmerica/Argentina/Buenos_Aires -
{timezone_unclear}full timezone name egAmerica/Argentina/Buenos_Airesbut is empty if only one timezone is provided
Examples:
# cycling through London, Warsaw, Tokyo
clock {
cycle = 30
format = ["{Europe/London}", "{Europe/Warsaw}", "{Asia/Tokyo}"]
format_time = "{name} %H:%M"
}
# Show the time and date in New York
clock {
format = "Big Apple {America/New_York}"
format_time = "%Y-%m-%d %H:%M:%S"
}
# wall clocks
clock {
format = "{Asia/Calcutta} {Africa/Nairobi} {Asia/Bangkok}"
format_time = "{name} {icon}"
}
author tobes ultrabug
license BSD
cmus




Display song currently playing in cmus.
cmus (C* Music Player) is a small, fast and powerful console audio player which supports most major audio formats. Various features include gapless playback, ReplayGain support, MP3 and Ogg streaming, live filtering, instant startup, customizable key-bindings, and vi-style default key-bindings.
Configuration parameters:
-
button_nextmouse button to skip next track (default None) -
button_pausemouse button to pause/play the playback (default 1) -
button_previousmouse button to skip previous track (default None) -
button_stopmouse button to stop the playback (default 3) -
cache_timeoutrefresh interval for this module (default 5) -
formatdisplay format for this module (default '[\?if=is_started [\?if=is_playing > ][\?if=is_paused || ]' '[\?if=is_stopped .. ][[{artist}][\?soft - ][{title}]' '|\?show cmus: waiting for user input]]') -
replacementsspecify a list/dict of string placeholders to modify (default None) -
sleep_timeoutsleep interval for this module. when cmus is not running, this interval will be used. this allows some flexible timing where one might want to refresh constantly with some placeholders... or to refresh only once every minute rather than every few seconds. (default 20)
Control placeholders:
-
{is_paused}a boolean based on cmus status -
{is_playing}a boolean based on cmus status -
{is_started}a boolean based on cmus status -
{is_stopped}a boolean based on cmus status -
{continue}a boolean based on data status -
{play_library}a boolean based on data status -
{play_sorted}a boolean based on data status -
{repeat}a boolean based on data status -
{repeat_current}a boolean based on data status -
{replaygain}a boolean based on data status -
{replaygain_limit}a boolean based on data status -
{shuffle}a boolean based on data status -
{softvol}a boolean based on data status -
{stream}a boolean based on data status
Format placeholders:
-
{aaa_mode}shuffle mode, eg artist, album, all -
{albumartist}album artist, eg (new output here) -
{album}album name, eg (new output here) -
{artist}artist name, eg (new output here) -
{bitrate}audio bitrate, eg 229 -
{comment}comment, eg URL -
{date}year number, eg 2015 -
{duration}length time in seconds, eg 171 -
{durationtime}length time in [HH:]MM:SS, eg 02:51 -
{file}file location, eg /home/user/Music... -
{position}elapsed time in seconds, eg 17 -
{positiontime}elapsed time in [HH:]MM:SS, eg 00:17 -
{replaygain_preamp}replay gain preamp, eg 0.000000 -
{status}playback status, eg playing, paused, stopped -
{title}track title, eg (new output here) -
{tracknumber}track number, eg 0 -
{vol_left}left volume number, eg 90 -
{vol_right}right volume number, eg 90Placeholders are retrieved directly from
cmus-remote --querycommand. The list was harvested only once and should not represent a full list.
Color options:
-
color_pausedPaused, defaults to color_degraded -
color_playingPlaying, defaults to color_good -
color_stoppedStopped, defaults to color_bad
Requires:
cmusa small feature-rich ncurses-based music player
author lasers
coin_balance

Display balances of diverse crypto-currencies.
This module grabs your current balance of different crypto-currents from a wallet server. The server must conform to the bitcoin RPC specification. Currently Bitcoin, Dogecoin, and Litecoin are supported.
Configuration parameters:
-
cache_timeoutAn integer specifying the cache life-time of the output in seconds (default 30) -
coin_passwordA string containing the password for the server for 'coin'. The 'coin' part must be replaced by a supported coin identifier (see below for a list of identifiers). If no value is supplied, the value of 'password' (see below) will be used. If 'password' too is not set, the value will be retrieved from the standard 'coin' daemon configuration file. (default None) -
coin_usernameA string containing the username for the server for 'coin'. The 'coin' part must be replaced by a supported coin identifier (see below for a list of identifiers). If no value is supplied, the value of 'username' (see below) will be used. If 'username' too is not set, the value will be retrieved from the standard 'coin' daemon configuration file. (default None) -
credentials(default None) -
formatA string describing the output format for the module. The {<coin>} placeholder (see below) will be used to determine how to fetch the coin balance. Multiple placeholders are allowed, but all balances will be fetched from the same host. (default 'LTC: {litecoin}') -
hostThe coin-server hostname. Note that all coins will use the same host for their queries. (default 'localhost') -
passwordA string containing the password for all coin-servers. If neither this setting, nor a specific coin_password (see above) is specified, the password for each coin will be read from the respective standard daemon configuration file. (default None) -
protocolA string to select the server communication protocol. (default 'http') -
usernameA string containing the username for all coin-servers. If neither this setting, nor a specific coin_username (see above) is specified, the username for each coin will be read from the respective standard daemon configuration file. (default None)
Format placeholders:
{<coin>}Your balance for the coin <coin> where <coin> is one of:- bitcoin
- dogecoin
- litecoin
Requires:
requestspython module from pypi https://pypi.python.org/pypi/requests At least version 2.4.2 is required.
Examples:
# Get your Bitcoin balance using automatic credential detection
coin_balance {
cache_timeout = 45
format = "My BTC: {bitcoin}"
host = "localhost"
protocol = "http"
}
# Get your Bitcoin, Dogecoin and Litecoin balances using specific credentials
# for Bitcoin and automatic detection for Dogecoin and Litecoin
coin_balance {
# ...
format = "{bitcoin} BTC {dogecoin} XDG {litecoin} LTC"
bitcoin_username = "lcdata"
bitcoin_password = "omikron-theta"
# ...
}
# Get your Dogecoin and Litecoin balances using 'global' credentials
coin_balance {
# ...
format = "XDG: {dogecoin} LTC: {litecoin}"
username = "crusher_b"
password = "WezRulez"
# ...
}
# Get you Dogecoin, Litecoin, and Bitcoin balances by using 'global'
# credentials for Bitcoin and Dogecoin but specific credentials for
# Litecoin.
coin_balance {
# ...
format = "XDG: {dogecoin} LTC: {litecoin} BTC: {bitcoin}"
username = "zcochrane"
password = "sunny_islands"
litecoin_username = 'locutus'
litecoin_password = 'NCC-1791-D'
# ...
}
author Felix Morgner <felix.morgner@gmail.com>
license 3-clause-BSD
coin_market


Display cryptocurrency coins.
The site offer various types of data such as name, symbol, price, volume, total supply, et cetera for a wide range of cryptocurrencies in various currencies. For more information, visit https://coinmarketcap.com
Configuration parameters:
-
api_keyspecify CoinMarketCap api key (default None) -
cache_timeoutrefresh interval for this module. a message from the site: please limit requests to no more than 30 calls per minute. (default 600) -
formatdisplay format for this module (default '{format_coin}') -
format_coindisplay format for coins (default '{name} ${usd_price:.2f} ' '[\?color=usd_percent_change_24h {usd_percent_change_24h:.1f}%]') -
format_coin_separatorshow separator if more than one (default ' ') -
marketsspecify a list of markets (default ['btc', 'eth']) -
thresholdsspecify color thresholds to use (default [(-100, 'bad'), (0, 'good')])
Format placeholders:
{format_coin}format for cryptocurrency coins
format_coin placeholders:
-
{circulating_supply}eg 17906012 -
{cmc_rank}eg 1 -
{date_added}eg 2013-04-28T00:00:00.000Z -
{id}eg 1 -
{is_active}eg 1 -
{is_fiat}eg 0 -
{is_market_cap_included_in_calc}eg 1 -
{last_updated}eg 2019-08-30T18:51:28.000Z -
{max_supply}eg 21000000 -
{name}eg Bitcoin -
{num_market_pairs}eg 7919 -
{platform}eg None -
{slug}eg bitcoin -
{symbol}eg BTC -
{tags}eg ['mineable'] -
{total_supply}eg 17906012Placeholders are retrieved directly from the URL. The list was harvested once and should not represent a full list.
To print coins in different currencies, replicate the placeholders below with valid options (eg '{gbp_price:.2f}'):
{xxx_last_updated} eg 2019-08-30T18:51:28.000Z' {xxx_market_cap} eg 171155540318.86005 {xxx_percent_change_1h} eg -0.127291 {xxx_percent_change_24h} eg 0.328918 {xxx_percent_change_7d} eg -8.00576 {xxx_price} eg 9558.55163723 {xxx_volume_24h} eg 13728947008.2722
See https://coinmarketcap.com/api/documentation/v1/#section/Standards-and-Conventions for valid options, otherwise USD... in lowercase.
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Examples:
# view coins in GBP and EUR
coin_market {
format_coin = "{name} £{gbp_price:.2f} €{eur_price:.2f}"
}
# colorize market names + symbols
coin_market {
format_coin = "[\?color=name {name}] "
format_coin += "[\?color=symbol {symbol}] ${usd_price:.2f} "
format_coin += "[\?color=usd_percent_change_24h {usd_percent_change_24h}%]"
markets = ["btc", "eth", "ltc", "doge"]
thresholds = {
"name": [
("Bitcoin", "greenyellow"),
("Ethereum", "deepskyblue"),
("Litecoin", "crimson"),
("Dogecoin", "orange"),
],
"symbol": [
("BTC", "darkgray"),
("ETH", "darkgray"),
("LTC", "darkgray"),
("DOGE", "darkgray"),
],
"usd_percent_change_24h": [(-100, "bad"), (0, "good")],
}
}
author lasers, x86kernel
conky












Display Conky objects/variables on the bar.
Configuration parameters:
-
configspecify configuration settings for conky (default {}) -
formatdisplay format for this module (default None) -
thresholdsspecify color thresholds to use (default [])
Format placeholders: According to man page, Conky has more than 250 built-in objects/variables.
See `man -P 'less -p OBJECTS/VARIABLES' conky` for a full list of Conky
objects/variables to use. Not all of Conky objects/variables will be
supported or usable.
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder Replace spaces with periods.
Examples:
# add conky config options
# See `man -P "less -p 'CONFIGURATION SETTINGS'" conky` for a full list
# of Conky configuration options. Not all of Conky configuration options
# will be supported or usable.
conky {
config = {
'update_interval': 10 # update interval for conky
'update_interval_on_battery': 60 # update interval when on battery
'format_human_readable': True, # if False, print in bytes
'short_units': True, # shortens units, eg kiB->k, GiB->G
'uppercase': True, # upper placeholders
}
}
# display ip address
order += "conky addr"
conky addr {
format = 'IP [\?color=orange {addr eno1}]'
}
# display load averages
order += "conky loadavg"
conky loadavg {
format = 'Loadavg '
format += '[\?color=lightgreen {loadavg 1} ]'
format += '[\?color=lightgreen {loadavg 2} ]'
format += '[\?color=lightgreen {loadavg 3}]'
}
# exec commands at different intervals, eg 5s, 60s, and 3600s
order += "conky date"
conky date {
format = 'Exec '
format += '[\?color=good {execi 5 "date"}] '
format += '[\?color=degraded {execi 60 "uptime -p"}] '
format += '[\?color=bad {execi 3600 "uptime -s"}]'
}
# display diskio read, write, etc
order += "conky diskio"
conky diskio {
format = 'Disk IO [\?color=darkgray&show sda] '
format += '[\?color=lightskyblue '
format += '{diskio_read sda}/{diskio_write sda} '
format += '({diskio sda})]'
# format += ' '
# format += '[\?color=darkgray&show sdb] '
# format += '[\?color=lightskyblue '
# format += '{diskio_read sdb}/{diskio_write sdb} '
# format += '({diskio sdb})]'
config = {'short_units': True}
}
# display total number of processes and running processes
order += "conky proc"
conky proc {
format = 'Processes [\?color=cyan {processes}/{running_processes}]'
}
# display top 3 cpu (+mem_res) processes
order += "conky top_cpu" {
conky top_cpu {
format = 'Top [\?color=darkgray '
format += '{top name 1} '
format += '[\?color=deepskyblue {top mem_res 1}] '
format += '[\?color=lightskyblue {top cpu 1}%] '
format += '{top name 2} '
format += '[\?color=deepskyblue {top mem_res 2}] '
format += '[\?color=lightskyblue {top cpu 2}%] '
format += '{top name 3} '
format += '[\?color=deepskyblue {top mem_res 3}] '
format += '[\?color=lightskyblue {top cpu 3}%]]'
config = {'short_units': True}
}
# display top 3 memory processes
order += "conky top_mem"
conky top_mem {
format = 'Top Mem [\?color=darkgray '
format += '{top_mem name 1} '
format += '[\?color=yellowgreen {top_mem mem_res 1}] '
format += '[\?color=lightgreen {top_mem mem 1}%] '
format += '{top_mem name 2} '
format += '[\?color=yellowgreen {top_mem mem_res 2}] '
format += '[\?color=lightgreen {top_mem mem 2}%] '
format += '{top_mem name 3} '
format += '[\?color=yellowgreen {top_mem mem_res 3}] '
format += '[\?color=lightgreen {top_mem mem 3}%]]'
config = {'short_units': True}
}
# display memory, memperc, membar + thresholds
order += "conky memory"
conky memory {
format = 'Memory [\?color=lightskyblue {mem}/{memmax}] '
format += '[\?color=memperc {memperc}% \[{membar}\]]'
thresholds = [
(0, 'darkgray'), (0.001, 'good'), (50, 'degraded'),
(75, 'orange'), (85, 'bad')
]
}
# display swap, swapperc, swapbar + thresholds
order += "conky swap"
conky swap {
format = 'Swap [\?color=lightcoral {swap}/{swapmax}] '
format += '[\?color=swapperc {swapperc}% \[{swapbar}\]]'
thresholds = [
(0, 'darkgray'), (0.001, 'good'), (50, 'degraded'),
(75, 'orange'), (85, 'bad')
]
}
# display up/down speed and up/down total
order += "conky network"
conky network {
format = 'Speed [\?color=title {upspeed eno1}/{downspeed eno1}] '
format += 'Total [\?color=title {totalup eno1}/{totaldown eno1}]'
color_title = '#ff6699'
}
# display file systems + thresholds
order += "conky filesystem"
conky filesystem {
# home filesystem
format = 'Home [\?color=violet {fs_used /home}/{fs_size /home} '
format += '[\?color=fs_used_perc./home '
format += '{fs_used_perc /home}% \[{fs_bar /home}\]]]'
# hdd filesystem
# format += ' HDD [\?color=violet {fs_used '
# format += '/run/media/user/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
# format += '}/{fs_size '
# format += '/run/media/user/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
# format += '}[\?color=fs_used_perc.'
# format += '/run/media/user/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
# format += ' {fs_used_perc '
# format += '/run/media/user/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
# format += '}% \[{fs_bar '
# format += '/run/media/user/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
# format += '}\]]]'
thresholds = [
(0, 'darkgray'), (0.001, 'good'), (50, 'degraded'),
(75, 'orange'), (85, 'bad')
]
}
# show cpu percents/bars + thresholds
order += "conky cpu"
conky cpu {
format = 'CPU '
format += '[\?color=cpu.cpu0 {cpu cpu0}% {cpubar cpu0}] '
format += '[\?color=cpu.cpu1 {cpu cpu1}% {cpubar cpu1}] '
format += '[\?color=cpu.cpu2 {cpu cpu2}% {cpubar cpu2}] '
format += '[\?color=cpu.cpu3 {cpu cpu3}% {cpubar cpu3}]'
thresholds = [
(0, 'darkgray'), (0.001, 'good'), (50, 'degraded'),
(75, 'orange'), (85, 'bad')
]
}
# show more examples, many outputs
order += "conky info"
conky info {
format = '[\?color=title&show OS] [\?color=output {distribution}] '
format += '[\?color=title&show CPU] [\?color=output {cpu cpu0}%] '
format += '[\?color=title&show MEM] '
format += '[\?color=output {mem}/{memmax} ({memperc}%)] '
format += '[\?color=title&show HDD] [\?color=output {fs_used_perc}%] '
format += '[\?color=title&show Kernel] [\?color=output {kernel}] '
format += '[\?color=title&show Loadavg] [\?color=output {loadavg 1}] '
format += '[\?color=title&show Uptime] [\?color=output {uptime}] '
format += '[\?color=title&show Freq GHZ] [\?color=output {freq_g}]'
color_title = '#ffffff'
color_output = '#00bfff'
}
# change console bars - shoutout to su8 for adding this
conky {
config = {
'console_bar_fill': "'#'",
'console_bar_unfill': "'_'",
'default_bar_width': 10,
}
}
# display nvidia stats - shoutout to brndnmtthws for fixing this
# See `man -P 'less -p nvidia\ argument' conky` for more nvidia variables.
order += "conky nvidia"
conky nvidia {
format = 'GPU Temp [\?color=greenyellow {nvidia temp}] '
format += 'GPU Freq [\?color=greenyellow {nvidia gpufreq}] '
format += 'Mem Freq [\?color=greenyellow {nvidia memfreq}] '
format += 'MTR Freq [\?color=greenyellow {nvidia mtrfreq}] '
format += 'Perf [\?color=greenyellow {nvidia perflevel}] '
format += 'Mem Perc [\?color=greenyellow {nvidia memperc}]'
config = {
'nvidia_display': "':0'"
}
}
author lasers
deadbeef


Display songs currently playing in DeaDBeeF.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 5) -
formatdisplay format for this module (default '[{artist} - ][{title}]') -
replacementsspecify a list/dict of string placeholders to modify (default None) -
sleep_timeoutwhen deadbeef is not running, this interval will be used to allow faster refreshes with time-related placeholders and/or to refresh few times per minute rather than every few seconds (default 20)
Format placeholders:
-
{album}name of the album -
{artist}name of the artist -
{length}length time in [HH:]MM:SS -
{playback_time}elapsed time in [HH:]MM:SS -
{title}title of the track -
{tracknumber}track number in two digits -
{year}year in four digitsFor more placeholders, see title formatting 2.0 in 'deadbeef --help' or https://github.com/DeaDBeeF-Player/deadbeef/wiki/Title-formatting-2.0 Not all of Foobar2000 remapped metadata fields will work with deadbeef and a quick reminder about using {placeholders} here instead of %placeholder%.
Color options:
-
color_pausedPaused, defaults to color_degraded -
color_playingPlaying, defaults to color_good -
color_stoppedStopped, defaults to color_bad
Requires:
deadbeefa GTK+ audio player for GNU/Linux
Examples:
# see 'deadbeef --help' for more buttons
deadbeef {
on_click 1 = 'exec deadbeef --play-pause'
on_click 8 = 'exec deadbeef --random'
}
author mrt-prodz
dexcom

Display glucose readings from your Dexcom CGM system.
Dexcom CGM systems provide glucose readings up to every five minutes. Designed to help diabetes patients keep track of their blood glucose levels with ease.
Configuration parameters:
-
formatdisplay format for this module (default "Dexcom [\?color=mg_dl {mg_dl} mg/dL {trend_arrow}] [\?color=darkgrey {datetime}]") -
format_datetimespecify strftime characters to format (default {"datetime": "%-I:%M %p"}) -
ousspecify whether if the Dexcom Share user is outside of the US (default False) -
passwordspecify password for the Dexcom Share user (default None) -
thresholdsspecify color thresholds to use (default { "mg_dl": [(55, "bad"), (70, "degraded"), (80, "good"), (130, "degraded"), (180, "bad")], "mmol_l": [(3.1, "bad"), (3.9, "degraded"), (4.4, "good"), (7.2, "degraded"), (10.0, "bad")], }) -
usernamespecify username for the Dexcom Share user, not follower (default None)
Format placeholders:
-
{mg_dl}blood glucose value in mg/dL, eg 80 -
{mmol_l}blood glucose value in mmol/L, eg 4.4 -
{trend}blood glucose trend information, eg 4 -
{trend_direction}blood glucose trend direction, eg Flat -
{trend_description}blood glucose trend information description, eg steady -
{trend_arrow}blood glucose trend as unicode arrow, eg → -
{datetime}glucose reading recorded time as datetime
format_datetime placeholders:
-
keyepoch_placeholder, eg {datetime} -
value% strftime characters to be translated, eg '%b %d' ----> 'Jan 1'
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
pydexcomA simple Python API to interact with Dexcom Share service
Notes: IF GLUCOSE ALERTS AND CGM READINGS DO NOT MATCH SYMPTOMS OR EXPECTATIONS, USE A BLOOD GLUCOSE METER TO MAKE DIABETES TREATMENT DECISIONS.
Examples:
# compact
dexcom {
format = "[\?color=mg_dl {mg_dl} {trend_arrow}][\?color=darkgrey {datetime}]"
format_datetime = {"datetime": "%-I:%M"}
}
author lasers
diskdata

Display disk information.
Configuration parameters:
-
cache_timeoutrefresh interval for this module. (default 10) -
diskshow stats for disk or partition, i.e.sda1. None for all disks. (default None) -
formatdisplay format for this module. (default "{disk}: {used_percent}%[ ({total})]") -
format_ratedisplay format for rates value (default "[\?min_length=11 {value:.1f} {unit}]") -
format_spacedisplay format for disk space values (default "[\?min_length=5 {value:.1f}]") -
sector_sizesize of the disk's sectors. (default 512) -
si_unitsuse SI units (default False) -
thresholdsspecify color thresholds to use (default {'free': [(0, 'bad'), (10, 'degraded'), (100, 'good')], 'total': [(0, 'good'), (1024, 'degraded'), (1024 * 1024, 'bad')], 'used_percent': [(0, 'good'), (40, 'degraded'), (75, 'bad')]}) -
unitunit to use. If the unit contains a multiplier prefix, only this exact unit will ever be used (default "B/s")
Format placeholders:
-
{disk}the selected disk -
{free}free space on disk in GB -
{used}used space on disk in GB -
{total_space}total space on disk in GB -
{used_percent}used space on disk in % -
{read}reading rate -
{total}total IO rate -
{write}writing rate
format_rate placeholders:
-
{unit}name of the unit -
{value}numeric value of the rate
format_space placeholders:
{value}numeric value of the free/used space on the device
Color thresholds:
-
{free}Change color based on the value of free -
{used}Change color based on the value of used -
{used_percent}Change color based on the value of used_percent -
{read}Change color based on the value of read -
{total}Change color based on the value of total -
{write}Change color based on the value of write
author guiniol
license BSD
do_not_disturb


Turn on and off desktop notifications.
Configuration parameters:
-
cache_timeoutrefresh interval for this module; for xfce4-notifyd (default 30) -
formatdisplay format for this module (default '{name} [\?color=state&show DND]') -
pausespecify whether to pause or kill processes; for dunst seeDunst Miscellaneoussection for more information (default True) -
serverspecify server to use, eg mako, dunst or xfce4-notifyd, otherwise auto (default None) -
statespecify state to use on startup, otherwise last False: disable Do Not Disturb on startup True: enable Do Not Disturb on startup last: toggle last known state on startup None: query current state from notification manager (doesn't work on dunst<1.5.0) (default 'last') -
thresholdsspecify color thresholds to use (default [(0, 'bad'), (1, 'good')])
Format placeholders:
-
{name}name, eg Mako, Dunst, Xfce4-notifyd -
{state}do not disturb state, eg 0, 1
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Dunst Miscellaneous: When paused, dunst will not display any notifications but keep all notifications in a queue. This can for example be wrapped around a screen locker (i3lock, slock) to prevent flickering of notifications through the lock and to read all missed notifications after returning to the computer. This means that by default (pause = False), all notifications sent while DND is active will NOT be queued and displayed when DND is deactivated.
Mako Miscellaneous: Mako requires that you manually create a 'do-not-disturb' mode as shown in https://man.voidlinux.org/mako.5#MODES. This module expects this mode to be configured by the user as suggested by the mako documentation: [mode=do-not-disturb] invisible=1
Examples:
# display ON/OFF
do_not_disturb {
format = '{name} [\?color=state [\?if=state ON|OFF]]'
}
# display 1/0
do_not_disturb {
format = '{name} [\?color=state {state}]'
}
# display DO NOT DISTURB/DISTURB
do_not_disturb {
format = '[\?color=state [\?if=state DO NOT DISTURB|DISTURB]]'
thresholds = [(0, "darkgray"), (1, "good")]
}
author Maxim Baz https://github.com/maximbaz (dunst)
author Robert Ricci https://github.com/ricci (xfce4-notifyd)
author Cyrinux https://github.com/cyrinux (mako)
license BSD
dpms


Turn on and off DPMS and screen saver blanking.
Configuration parameters:
-
button_offmouse button to turn off screen (default None) -
button_togglemouse button to toggle DPMS (default 1) -
cache_timeoutrefresh interval for this module (default 15) -
formatdisplay format for this module (default '{icon}') -
icon_offshow when DPMS is disabled (default 'DPMS') -
icon_onshow when DPMS is enabled (default 'DPMS')
Format placeholders:
{icon}DPMS icon
Color options:
-
color_onEnabled, defaults to color_good -
color_offDisabled, defaults to color_bad
author Andre Doser <dosera AT tf.uni-freiburg.de>
dropboxd_status



Display status of Dropbox daemon.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default "Dropbox: {status}") -
status_busytext for placeholder {status} when Dropbox is busy (default None) -
status_offtext for placeholder {status} when Dropbox isn't running (default "isn't running") -
status_ontext for placeholder {status} when Dropbox is up to date (default "Up to date")
Value for status_off if not set:
- Dropbox isn't running!
Value for status_on if not set:
- Up to date
Values for status_busy if not set:
- Connecting...
- Starting...
- Downloading file list...
- Syncing "filename"
Format placeholders:
{status}Dropbox status
Color options:
-
color_badNot running -
color_degradedBusy -
color_goodUp to date
Requires:
dropbox-clicommand line interface for dropbox
Notes:
Some distributions offer an option to install dropbox-cli. If you don't see
one for your distribution, then you need to download CLI Python script,
https://www.dropbox.com/help/desktop-web/linux-commands#commands, rename
it to dropbox-cli, make the script executable and available in your PATH.
author Tjaart van der Walt (github:tjaartvdwalt)
license BSD
emerge_status

Display information about the currently running emerge process.
Configuration parameters:
-
cache_timeouthow often we refresh this module in second. NOTE: when emerge is running, we will refresh this module every second. (default 30) -
emerge_log_filepath to the emerge log file. (default '/var/log/emerge.log') -
formatdisplay format for this module (default '{prefix}[\?if=is_running : [\?if=!total=0 ' '[{current}/{total} {action} {category}/{pkg}]' '|calculating...]|: stopped 0/0]') -
prefixprefix in statusbar (default "emrg")
Format placeholders:
-
{action}current emerge action -
{category}category of the currently emerged package -
{current}number of package that is currently emerged -
{pkg}name of the currently emerged packaged -
{total}total number of packages that will be emerged
Examples:
# Hide if not running
emerge_status {
format = "[\?if=is_running {prefix}: [\?if=!total=0 "
format += "{current}/{total} {action} {category}/{pkg}"
format += "|calculating...]]"
}
# Minimalistic
emerge_status {
format = "[\?if=is_running [\?if=!total=0 {current}/{total}]]"
}
# Minimalistic II
emerge_status {
format = "[\?if=is_running {current}/{total}]"
}
author AnwariasEu
exchange_rate

Display foreign exchange rates.
Configuration parameters:
-
api_keythe exchangeratesapi.io API access key (default None) -
basespecify base currency to use for exchange rates (default 'EUR') -
cache_timeoutrefresh interval for this module (default 600) -
formatdisplay format for this module (default '${USD} £{GBP} ¥{JPY}')
Format placeholders: See https://api.exchangeratesapi.io/latest for a full list of foreign exchange rates published by the European Central Bank. Not all of exchange rates will be available. Also, see https://en.wikipedia.org/wiki/ISO_4217
author tobes
license BSD
external_script


Display output of a given script.
Display output of any executable script set by script_path. Only the first
two lines of output will be used. The first line is used as the displayed
text. If the output has two or more lines, the second line contains additional
information as whitespace separated tokens. Valid tokens are:
#rrggbb: the text color as a hex color code (eg. #FF0000 for red)
urgent: the word urgent to set the urgent flag
The script should not have any parameters, but it could work.
Configuration parameters:
-
button_show_notificationbutton to show notification with full output (default None) -
cache_timeouthow often we refresh this module in seconds (default 15) -
convert_numbersconvert decimal numbers to a numeric type (default True) -
formatsee placeholders below (default '{output}') -
localizeshould script output be localized (if available) (default True) -
script_pathscript you want to show output of (compulsory) (default None) -
strip_outputshall we strip leading and trailing spaces from output (default False)
Format placeholders:
-
{lines}number of lines in the output -
{output}output of script given by "script_path" -
{composite}composite output of script given by "script_path"
Examples:
external_script {
format = "my name is {output}"
script_path = "/usr/bin/whoami"
}
author frimdo ztracenastopa@centrum.cz
fedora_updates

Display number of pending updates for Fedora Linux.
This will display a count of how many dnf updates are waiting
to be installed. Additionally check for update security notices.
Configuration parameters:
-
cache_timeoutHow often we refresh this module in seconds (default 600) -
check_securityCheck for security updates (default True) -
formatDisplay format to use (default 'DNF: {updates}')
Format placeholders:
{updates}number of pending dnf updates
Color options:
-
color_badSecurity notice -
color_degradedUpgrade available -
color_goodNo upgrades needed
author tobes
license BSD
file_status


Display if files or directories exists.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default '\?color=path [\?if=path ●|■]') -
format_pathformat for paths (default '{basename}') -
format_path_separatorshow separator if more than one (default ' ') -
pathsspecify a string or a list of paths to check (default None) -
thresholdsspecify color thresholds to use (default [(0, 'bad'), (1, 'good')])
Format placeholders:
-
{format_path}format for paths -
{path}number of paths, eg 1, 2, 3
format_path placeholders:
-
{basename}basename of pathname -
{pathname}pathname
Color options:
-
color_badfiles or directories does not exist -
color_goodfiles or directories exists
Color thresholds:
formatpath: print a color based on the number of paths
Examples:
# add multiple paths with wildcard or with pathnames
file_status {
paths = ['/tmp/test*', '~user/test1', '~/Videos/*.mp4']
}
# colorize basenames
file_status {
paths = ['~/.config/i3/modules/*.py']
format = '{format_path}'
format_path = '\?color=good {basename}'
format_path_separator = ', '
}
author obb, Moritz Lüdecke, Cyril Levis (@cyrinux)
frame


Group modules and treat them as a single one.
This can be useful for example when adding modules to a group and you wish two modules to be shown at the same time.
By adding the {button} placeholder in the format you can enable a toggle
button to hide or show the content.
Configuration parameters:
-
button_toggleButton used to toggle if one in format. Setting to None disables (default 1) -
formatDisplay format to use (default '{output}') -
format_button_closedFormat for the button when frame open (default '+') -
format_button_openFormat for the button when frame closed (default '-') -
format_separatorSpecify separator between contents. If this is None then the default i3bar separator will be used (default None) -
openIf button then the frame can be set to be open or close (default True)
Format placeholders:
-
{button}If used a button will be used that can be clicked to hide/show the contents of the frame. -
{output}The output of the modules in the frame -
{output_xxx}The output of the module xxx (even if the button is currently toggled off).
Examples:
# A frame showing times in different cities.
# We also have a button to hide/show the content
frame time {
format = '{output}{button}'
format_separator = ' ' # have space instead of usual i3bar separator
tztime la {
format = "LA %H:%M"
timezone = "America/Los_Angeles"
}
tztime ny {
format = "NY %H:%M"
timezone = "America/New_York"
}
tztime du {
format = "DU %H:%M"
timezone = "Asia/Dubai"
}
}
# Define a group which shows volume and battery info or the current time.
# The frame, volume_status and battery_level modules are named to prevent
# them clashing with any other defined modules of the same type.
group {
frame {
volume_status {}
battery_level {}
}
time {}
}
# Define a group where the button is colored only if sub module has some output
frame ipv6 {
format = "[\?if=output_ipv6 {output}{button}|\?color=#bad {output}{button}]"
open = false
ipv6 {
format_up = "%ip"
format_down = ""
}
}
author tobes
getjson

Display JSON data fetched from a URL.
This module gets the given url configuration parameter and assumes the
response is a JSON object. The keys of the JSON object are used as the format
placeholders. The format placeholders are replaced by the value. Objects that
are nested can be accessed by using the delimiter configuration parameter
in between.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 30) -
delimiterthe delimiter between parent and child objects (default '-') -
formatdisplay format for this module (default None) -
passwordbasic auth password information (default None) -
urlspecify URL to fetch JSON from (default None) -
usernamebasic auth user information (default None)
Format placeholders: Placeholders will be replaced by the JSON keys.
Placeholders for objects with sub-objects are flattened using 'delimiter'
in between (eg. {'parent': {'child': 'value'}} will use placeholder
{parent-child}).
Placeholders for list elements have 'delimiter' followed by the index
(eg. {'parent': ['this', 'that']) will use placeholders {parent-0}
for 'this' and {parent-1} for 'that'.
Examples:
# straightforward key replacement
getjson {
url = "https://ifconfig.co/json"
format = "{latitude}, {longitude}"
}
# access child objects
getjson {
url = 'https://api.icndb.com/jokes/random'
format = '{value-joke}'
}
# access title from 0th element of articles list
getjson {
url = 'https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey={KEY}'
format = '{articles-0-title}'
}
# access if top-level object is a list
getjson {
url = 'https://jsonplaceholder.typicode.com/posts/1/comments'
format = '{0-name}'
}
author vicyap
github


Display Github notifications and issue/pull requests for a repo.
To check notifications a Github username and personal access token are
required. You can create a personal access token at
https://github.com/settings/tokens/new?scopes=notifications&description=py3status
The only scope needed is notifications is selected automatically for you,
which provides readonly access to notifications.
The Github API is rate limited so setting cache_timeout too small may cause
issues see https://developer.github.com/v3/#rate-limiting for details
Configuration parameters:
-
auth_tokenGithub personal access token, needed to check notifications see above. (default None) -
button_actionButton that when clicked opens the Github notification page if notifications, else the project page for the repository if there is one (otherwise the github home page). Setting toNonedisables. (default 3) -
button_refreshButton that when clicked refreshes module. Setting toNonedisables. (default 2) -
cache_timeoutHow often we refresh this module in seconds (default 60) -
formatdisplay format for this module, see Examples below (default None) -
format_notificationsFormat of{notification}status placeholder. (default ' N{notifications_count}') -
notificationsType of notifications can beallfor all notifications orrepoto only get notifications for the repo specified. If repo is not provided then all notifications will be checked. (default 'all') -
repoGithub repo to check (default 'ultrabug/py3status') -
url_apiChange only if using Enterprise Github, example https://github.domain.com/api/v3. (default 'https://api.github.com') -
url_baseChange only if using Enterprise Github, example https://github.domain.com. (default 'https://github.com') -
usernameGithub username, needed to check notifications. (default None)
Format placeholders:
-
{issues}Number of open issues. -
{notifications}Notifications. If no notifications this will be empty. -
{notifications_count}Number of notifications. This is also the Only placeholder available toformat_notifications. -
{pull_requests}Number of open pull requests -
{repo}short name of the repository being checked. eg py3status -
{repo_full}full name of the repository being checked. eg ultrabug/py3status
Examples:
# default formats
github {
# with username and auth_token, this will be used
format = '{repo} {issues}/{pull_requests}{notifications}'
# otherwise, this will be used
format '{repo} {issues}/{pull_requests}'
}
# set github access credentials
github {
auth_token = '40_char_hex_access_token'
username = 'my_username'
}
# just check for any notifications
github {
auth_token = '40_char_hex_access_token'
username = 'my_username'
format = 'Github {notifications_count}'
}
author tobes
gitlab

Display number of issues, requests and more from a GitLab project.
A token is required. See https://gitlab.com/profile/personal_access_tokens to make one. Make a name, eg py3status, and enable api in scopes. Save.
Configuration parameters:
-
auth_tokenspecify a personal access token to use (default None) -
button_openmouse button to open project url (default 1) -
button_refreshmouse button to refresh this module (default 2) -
cache_timeoutrefresh interval for this module (default 900) -
formatdisplay format for this module (default '[{name} ][[{open_issues_count}][\?soft /]' '[{open_merge_requests_count}]]') -
projectspecify a project to use (default 'gitlab-org/gitlab-ce') -
thresholdsspecify color thresholds to use (default [])
Format placeholders:
See sp below for a full list of supported GitLab placeholders to use.
Not all of GitLab placeholders will be usable.
single_project:
{name} project name, eg py3status
{star_count} number of stars, eg 2
{forks_count} number of forks, eg 3
{open_issues_count} number of open issues, eg 4
{statistics_commit_count} number of commits, eg 5678
merge_requests:
{open_merge_requests_count} number of open merge requests, eg 9
todos:
{todos_count} number of todos, eg 4
pipelines:
{pipelines_status} project status of pipelines, eg success
Notes:
-
sphttps://docs.gitlab.com/ee/api/projects.html#get-single-project -
mrhttps://docs.gitlab.com/ee/api/merge_requests.html -
tdhttps://docs.gitlab.com/ee/api/todos.html -
pipehttps://docs.gitlab.com/ee/api/pipelines.html
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Examples:
# follow a fictional project, add an icon
gitlab {
auth_token = 'abcdefghijklmnopq-a4'
project = 'https://gitlab.com/ultrabug/py3status'
format = '[\?if=name [\?color=orangered&show ] {name} ]'
format += '[[{open_issues_count}][\?soft /]'
format += '[{open_merge_requests_count}][\?soft /]'
format += '[{pipelines_status}]]'
}
author lasers, Cyril Levis (@cyrinux)
glpi

Display number of open tickets from GLPI.
It features thresholds to colorize the output and forces a low timeout to limit the impact of a server connectivity problem on your i3bar freshness.
Configuration parameters:
-
cache_timeouthow often we refresh this module in seconds (default 300) -
criticalset bad color above this threshold (default 20) -
dbdatabase to use (default '') -
formatformat of the module output (default '{tickets_open} tickets') -
hostdatabase host to connect to (default '') -
passwordlogin password (default '') -
timeouttimeout for database connection (default 5) -
userlogin user (default '') -
warningset degraded color above this threshold (default 15)
Format placeholders:
{tickets_open}The number of open tickets
Color options:
-
color_badOpen ticket above critical threshold -
color_degradedOpen ticket above warning threshold
Requires: MySQL-python: https://pypi.org/project/MySQL-python/
author ultrabug
google_calendar

Display upcoming Google Calendar events.
This module will display information about upcoming Google Calendar events in one of two formats which can be toggled with a button press. The event URL may also be opened in a web browser with a button press.
Some events details can be retreived in the Google Calendar API Documentation. https://developers.google.com/calendar/v3/reference/events
Configuration parameters:
-
auth_tokenThe path to where the access/refresh token will be saved after successful credential authorization. (default '~/.config/py3status/google_calendar.auth_token') -
blacklist_eventsEvent names in this list will not be shown in the module (case insensitive). (default []) -
browser_invocationCommand to run to open browser. Curly braces stands for URL opened. (default "xdg-open {}") -
button_openOpens the event URL in the default web browser. (default 3) -
button_refreshRefreshes the module and updates the list of events. (default 2) -
button_toggleToggles a boolean to hide/show the data for each event. (default 1) -
cache_timeoutHow often the module is refreshed in seconds (default 60) -
calendar_idThe ID of the calendar to display. (default "primary") -
client_secretthe path to your client_secret file which contains your OAuth 2.0 credentials. (default '~/.config/py3status/google_calendar.client_secret') -
events_within_hoursSelect events within the next given hours. (default 12) -
force_lowercaseSets whether to force all event output to lower case. (default False) -
formatThe format for module output. (default '{events}|\?color=event ⚇') -
format_dateThe format for date related format placeholders. May be any Python strftime directives for dates. (default '%a %d-%m') -
format_eventThe format for each event. The information can be toggled with 'button_toggle' based on the value of 'is_toggled'. (default '[\?color=event {summary}][\?if=is_toggled ({start_time}' ' - {end_time}, {start_date})|[ ({location})][ {format_timer}]]') -
format_notificationThe format for event warning notifications. (default '{summary} {start_time} - {end_time}') -
format_separatorThe string used to separate individual events. (default ' | ') -
format_timeThe format for time-related placeholders except{format_timer}. May use any Python strftime directives for times. (default '%I:%M %p') -
format_timerThe format used for the {format_timer} placeholder to display time until an event starts or time until an event in progress is over. (default '\?color=time ([\?if=days {days}d ][\?if=hours {hours}h ]' '[\?if=minutes {minutes}m])[\?if=is_current left]') -
ignore_all_day_eventsSets whether to display all day events or not. (default False) -
num_eventsThe maximum number of events to display. (default 3) -
preferred_event_linklink to open in the browser. accepted values : hangoutLink (open the VC room associated with the event), htmlLink (open the event's details in Google Calendar) fallback to htmlLink if the preferred_event_link does not exist it the event. (default "htmlLink") -
responseOnly display events for which the response status is on the list. Available values in the Google Calendar API's documentation, look for the attendees[].responseStatus. (default ['accepted']) -
thresholdsThresholds for events. The first entry is the color for event 1, the second for event 2, and so on. (default []) -
time_to_maxThreshold (in minutes) for when to display the{format_timer}string; e.g. if time_to_max is 60,{format_timer}will only be displayed for events starting in 60 minutes or less. (default 180) -
warn_thresholdThe number of minutes until an event starts before a warning is displayed to notify the user; e.g. if warn_threshold is 30 and an event is starting in 30 minutes or less, a notification will be displayed. disabled by default. (default 0) -
warn_timeoutThe number of seconds before a warning should be issued again. (default 300)
Control placeholders:
{is_toggled}a boolean toggled by button_toggle
Format placeholders:
{events}All the events to display.
format_event and format_notification placeholders:
-
{description}The description for the calendar event. -
{end_date}The end date for the event. -
{end_time}The end time for the event. -
{location}The location for the event. -
{start_date}The start date for the event. -
{start_time}The start time for the event. -
{summary}The summary (i.e. title) for the event. -
{format_timer}The time until the event starts (or until it is over if already in progress).
format_timer placeholders:
-
{days}The number of days until the event. -
{hours}The number of hours until the event. -
{minutes}The number of minutes until the event.
Color options:
-
color_eventColor for a single event. -
color_timeColor for the time associated with each event.
Requires: 1. Python library google-api-python-client. 2. Python library python-dateutil. 3. OAuth 2.0 credentials for the Google Calendar api.
Follow Step 1 of the guide here to obtain your OAuth 2.0 credentials:
https://developers.google.com/google-apps/calendar/quickstart/python
Download the client_secret.json file which contains your client ID and
client secret. In your config file, set configuration parameter
client_secret to the path to your client_secret.json file.
The first time you run the module, a browser window will open asking you
to authorize access to your calendar. After authorization is complete,
an access/refresh token will be saved to the path configured in
auth_token, and i3status will be restarted. This restart will
occur only once after the first time you successfully authorize.
Examples:
# add color gradients for events and dates/times
google_calendar {
thresholds = {
'event': [(1, '#d0e6ff'), (2, '#bbdaff'), (3, '#99c7ff'),
(4, '#86bcff'), (5, '#62a9ff'), (6, '#8c8cff'), (7, '#7979ff')],
'time': [(1, '#ffcece'), (2, '#ffbfbf'), (3, '#ff9f9f'),
(4, '#ff7f7f'), (5, '#ff5f5f'), (6, '#ff3f3f'), (7, '#ff1f1f')]
}
}
author Igor Grebenkov
license BSD
graphite

Display Graphite metrics.
Configuration parameters:
-
cache_timeouthow often we refresh this module in seconds. (default 120) -
datapoint_selectionwhen multiple data points are returned, use "max" or "min" to determine which one to display. (default "max") -
formatyou MUST use placeholders here to display data, see below. (default '') -
graphite_urlURL to your graphite server. (default '') -
http_timeoutHTTP query timeout to graphite. (default 10) -
proxyYou can configure the proxy with HTTP or HTTPS. examples: proxy = 'https://myproxy.example.com:1234/' proxy = 'http://user:passwd@myproxy.example.com/' proxy = 'socks5://user:passwd@host:port' (proxy_socks is available after an 'pip install requests[socks]') (default None) -
targetssemicolon separated list of targets to query graphite for. (default '') -
threshold_badnumerical threshold, if set will send a notification and colorize the output. (default None) -
threshold_degradednumerical threshold, if set will send a notification and colorize the output. (default None) -
timespantime range to query graphite for. (default "-2minutes") -
value_comparatorchoose between "max" and "min" to compare thresholds to the data point value. (default "max") -
value_formatpretty format long numbers with "K", "M" etc. (default True) -
value_roundround values so they're not displayed as floats. (default True)
Dynamic format placeholders: The "format" parameter placeholders are dynamically based on the data points names returned by the "targets" query to graphite.
For example if your target is `"carbon.agents.localhost-a.memUsage"`,
you'd get a JSON result like this:
```
{
"target": "carbon.agents.localhost-a.memUsage",
"datapoints": [[19693568.0, 1463663040]]
}
```
So the placeholder you could use on your "format" config is:
`format = "{carbon.agents.localhost-a.memUsage}"`
TIP: use aliases !
```
targets = "alias(carbon.agents.localhost-a.memUsage, 'local_memuse')"
format = "local carbon mem usage: {local_memuse} bytes"
```
Color options:
-
color_badthreshold_bad has been exceeded -
color_degradedthreshold_degraded has been exceeded
author ultrabug
group



Group modules and switch between them.
Groups can be configured in your config. The active one of these groups is shown in the i3bar. The active group can be changed by a user click. If the click is not used by the group module then it will be passed down to the displayed module.
Modules can be i3status core modules or py3status modules. The active group can be cycled through automatically.
The group can handle clicks by reacting to any that are made on it or its
content or it can use a button and only respond to clicks on that.
The way it does this is selected via the click_mode option.
Configuration parameters:
-
alignText alignment when fixed_width is set can be 'left', 'center' or 'right' (default 'center') -
button_nextButton that when clicked will switch to display next module. Setting to0will disable this action. (default 5) -
button_prevButton that when clicked will switch to display previous module. Setting to0will disable this action. (default 4) -
button_toggleButton that when clicked toggles the group content being displayed between open and closed. This action is ignored if{button}is not in the format. Setting to0will disable this action (default 1) -
click_modeThis defines how clicks are handled by the group. If set toallthen the group will respond to all click events. This may cause issues with contained modules that use the same clicks that the group captures. If set tobuttonthen only clicks that are directly on the{button}are acted on. The group will need{button}in its format. (default 'all') -
cycleTime in seconds till changing to next module to display. Setting to0will disable cycling. (default 0) -
fixed_widthReduce the size changes when switching to new group (default False) -
formatdisplay format for this module, see Examples below (default None) -
format_button_closedFormat for the button when group open (default '+') -
format_button_openFormat for the button when group closed (default '-') -
format_closedFormat for module output when closed. (default "{button}") -
openIs the group open and displaying its content. Has no effect if{button}not in format (default True)
Format placeholders:
-
{button}The button to open/close or change the displayed group -
{output}Output of current active module
Examples:
# default formats
group {
format = '{output}' # if click_mode is 'all'
format = '{output} {button}' # if click_mode is 'button'
}
# Create a disks group that will show space on '/' and '/home'
# Change between disk modules every 30 seconds
order += "group disks"
group disks {
cycle = 30
format = "Disks: {output} {button}"
click_mode = "button"
disk "/" {
format = "/ %avail"
}
disk "/home" {
format = "/home %avail"
}
}
author tobes
hamster


Display time tracking activities from Hamster.
Configuration parameters:
-
cache_timeouthow often we refresh this module in seconds (default 10) -
formatsee placeholders below (default '{current}')
Format placeholders:
{current}current activity
Requires:
hamstertime tracking application
author Aaron Fields (spirotot [at] gmail.com)
license BSD
hddtemp



Display hard drive temperatures.
hddtemp is a small utility with daemon that gives the hard drive temperature via S.M.A.R.T. (Self-Monitoring, Analysis, and Reporting Technology). This module requires the user-defined hddtemp daemon to be running at all times.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default '{format_hdd}') -
format_hdddisplay format for hard drives (default '{name} [\?color=temperature {temperature}°{unit}]') -
format_separatorshow separator if more than one (default ' ') -
thresholdsspecify color thresholds to use (default [(19, 'skyblue'), (24, 'deepskyblue'), (25, 'lime'), (41, 'yellow'), (46, 'orange'), (51, 'red'), (56, 'tomato')])
Format placeholders:
{format_hdd}format for hard drives
format_hdd placeholders:
-
{name}name, eg ADATA SP550 -
{path}path, eg /dev/sda -
{temperature}temperature, eg 32 -
{unit}temperature unit, eg C
Temperatures: Less than 25°C: Too cold (color deepskyblue) 25°C to 40°C: Ideal (color good) 41°C to 50°C: Acceptable (color degraded) 46°C to 50°C: Almost too hot (color orange) More than 50°C: Too hot (color bad)
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
-
hddtemputility to monitor hard drive temperatures -
ncnetcat / ncat is command-line utility for reading data from hddtemp telnet interface
Bible of HDD failures: Hard disk temperatures higher than 45°C led to higher failure rates. Temperatures lower than 25°C led to higher failure rates as well. Aging hard disk drives (3 years and older) were much more prone to failure when their average temperatures were 40°C and higher.
Hard disk manufacturers often state the operating temperatures of
their hard disk drives to be between 0°C to 60°C. This can be misleading
because what they mean is that your hard disk will function at these
temperatures, but it doesn't tell you anything about how long they are
going to survive at this range.
http://www.buildcomputers.net/hdd-temperature.html
Backblaze: Overall, there is not a correlation between operating temperature and failure rates The one exception is the Seagate Barracuda 1.5TB drives, which fail slightly more when they run warmer. As long as you run drives well within their allowed range of operating temperatures, keeping them cooler doesn’t matter. https://www.backblaze.com/blog/hard-drive-temperature-does-it-matter/
Examples:
# compact the format
hddtemp {
format = 'HDD {format_hdd}'
format_hdd = '\?color=temperature {temperature}°C'
}
# show paths instead of names
hddtemp {
format_hdd = '{path} [\?color=temperature {temperature}°{unit}]'
}
# show more colors
hddtemp {
gradients = True
}
author lasers
hueshift



Shift color temperature on the screen.
Configuration parameters:
-
button_downmouse button to decrease color temperature (default 5) -
button_togglemouse button to toggle color temperature (default 1) -
button_upmouse button to increase color temperature (default 4) -
commandspecify blueshift, redshift, or sct to use, otherwise auto (default None) -
deltaspecify interval value to change color temperature (default 100) -
formatdisplay format for this module (default '{name} [\?if=enabled&color=darkgray disabled' '|[\?color=color_temperature {color_temperature}K]]') -
maximumspecify maximum color temperature to use (default 25000) -
minimumspecify minimum color temperature to use (default 1000) -
thresholdsspecify color thresholds to use (default [(6499, '#f6c'), (6500, '#ff6'), (6501, '#6cf')])
Control placeholders:
{enabled}a boolean based on pgrep processing data, eg False, True
Format placeholders:
-
{color_temperature}color temperature, eg 6500 -
{name}name, eg Blueshift, Redshift, Sct
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
-
blueshiftan extensible and highly configurable alternative to redshift -
redshiftprogram to adjust the color temperature of your screen -
sctset color temperature with about 40 lines of C or so
Suggestions:
campfire4500 dust storm on mars: 2000 coffee free all nighter: 8000
Notes: hueshift can be disabled due to enabled running processes. sct and blueshift shifts only on one monitor, ideal for laptops. redshift shifts more than one, ideal for multi-monitors setups.
Examples:
# different theme
hueshift {
format = '\?color=color_temperature ☼ {color_temperature}K'
}
# for best results, add some limitations
hueshift {
minimum = 3000
maximum = 10000
}
author lasers
i3block


Support i3blocks blocklets in py3status.
i3blocks, https://github.com/vivien/i3blocks, is a project to allow simple scripts to provide output to the i3bar. This module allows these blocklets to run under py3status. The configuration of the blocklets is similar to how they are configured in i3blocks.
Configuration parameters:
-
cache_timeoutHow often the blocklet should be called (in seconds). This is similar to cache_timeout used by standard modules. However it can also take the following values;oncethe blocklet will be called once,repeatthe blocklet will be called constantly, orpersistwhere the command will be expected to keep providing new data. If this is not set or isNonethen the blocklet will not be called unless clicked on. To simplify i3block compatibility, this configuration parameter can also be provided asinterval. (default None) -
commandPath to blocklet or command (default None) -
formatWhat to display on the bar (default '{output}') -
instanceWill be provided to the blocklet as $BLOCK_INSTANCE (default '') -
labelWill be prepended to the blocklets output (default '') -
nameName of the blocklet - passed as $BLOCK_NAME (default '')
Format placeholders:
{output}The output of the blocklet
Notes: i3blocks and i3blocklets are subject to their respective licenses.
This support is experimental and done for convenience to users so they
can benefit from both worlds, issues or PRs regarding i3blocks related
blocklets should not be raised.
Some blocklets may return pango markup eg `<span ...` if so set
`markup = pango` in the config for that module.
`format` configuration parameter is used as is standard in py3status, not
as in i3blocks configuration. Currently blocklets must provide responses
in the standard i3blocks manner of one line per value (not as json).
Examples:
# i3blocks config
[time]
command=date '+%D %T'
interval=5
[wifi]
instance=wls1
label='wifi:'
command=~/i3blocks/wifi.sh
interval=5
# py3status config
order += 'i3block time'
i3block time {
command = "date '+%D %T'"
interval = 5
}
# different py3status config
order += 'i3block wifi'
i3block wifi {
instance = wls1
label = 'wifi:'
command = '~/i3blocks/wifi.sh'
interval = 5
}
author tobes
i3pystatus

Support i3pystatus modules in py3status.
i3pystatus, https://github.com/enkore/i3pystatus, is an alternative to py3status and provides a variety of modules. This py3status module allows these modules to run and be display inside py3status.
Configuration parameters:
modulespecify i3pystatus module to use (default None)
Requires:
i3pystatusi3status replacement written in python
Examples:
# the modules parameters are provided as such
i3pystatus clock {
module = 'clock'
format = [('%a %b %-d %b %X', 'America/New_York'), ('%X', 'Etc/GMT+9')]
}
# if backend(s) are provided they should be given as a dict with the key being
# the backend name and the value being a dict of the backend settings
i3pystatus weather {
module = 'weather'
format = '{condition} {current_temp}{temp_unit}[ {icon}]'
format += '[ Hi: {high_temp}][ Lo: {low_temp}][ {update_error}]'
backend = {
'weathercom.Weathercom': {
'location_code': '94107:4:US',
'units': 'imperial',
}
}
}
# backends that have no configuration should be defined as shown here
i3pystatus updates{
module = 'updates'
backends = {'dnf.Dnf': {}}
}
author tobes
icinga2




Display service status for Icinga2.
Configuration parameters:
-
base_urlthe base url to the icinga-web2 services list (default '') -
ca(default True) -
cache_timeouthow often the data should be updated (default 60) -
disable_acknowledgeenable or disable counting of acknowledged service problems (default False) -
formatdefine a format string like "CRITICAL: %d" (default '{status_name}: {count}') -
passwordpassword to authenticate against the icinga-web2 interface (default '') -
statusset the status you want to obtain (0=OK,1=WARNING,2=CRITICAL,3=UNKNOWN) (default 0) -
url_parameters(default '?service_state={service_state}&format=json') -
userusername to authenticate against the icinga-web2 interface (default '')
Format placeholders:
-
{status_name}status name, eg OK, WARNING, CRITICAL -
{count}count, eg 0, 1, 2
author Ben Oswald <ben.oswald@root-space.de>
license BSD License <https://opensource.org/licenses/BSD-2-Clause>
source https://github.com/nazco/i3status-modules
imap

Display number of unread messages from IMAP account.
Configuration parameters:
-
allow_urgentdisplay urgency on unread messages (default False) -
auth_scopescope to use with OAuth2 (default 'https://mail.google.com/') -
auth_tokenpath to where the pickled access/refresh token will be saved after successful credential authorization. (default '~/.config/py3status/imap_auth_token.pickle') -
cache_timeoutrefresh interval for this module (default 60) -
client_secretthe path to the client secret file with OAuth 2.0 credentials (if None then OAuth not used) (default None) -
criterionstatus of emails to check for (default 'UNSEEN') -
debuglog warnings (default False) -
degraded_when_stalecolor as degraded when updating failed (default True) -
formatdisplay format for this module (default 'Mail: {unseen}') -
hide_if_zerohide this module when no new mail (default False) -
mailboxname of the mailbox to check (default 'INBOX') -
passwordlogin password (default None) -
portnumber to use (default '993') -
read_timeouttimeout for read(2) syscalls (default 5) -
securitylogin authentication method: 'ssl' or 'starttls' (startssl needs python 3.2 or later) (default 'ssl') -
serverserver to connect (default None) -
use_idleuse IMAP4 IDLE instead of polling; requires compatible server; uses cache_timeout for IDLE's timeout; will auto detect when set to None (default None) -
userlogin user (default None)
Format placeholders:
{unseen}number of unread emails
Color options:
color_new_mailuse color when new mail arrives, default to color_good
OAuth: OAuth2 will be used for authentication instead of a password if the client_secret path is set.
To create a client_secret for your Google account, visit
https://console.developers.google.com/ and create an "OAuth client ID" from
the credentials tab.
This client secret enables the app (in this case, the IMAP py3status module)
to request access to a user's email. Therefore the client secret doesn't
have to be for the same Google account as the email account being accessed.
When the IMAP module first tries to access your email account a browser
window will open asking for authorization to access your email.
After authorization is complete, an access/refresh token will be saved to
the path configured in auth_token.
Requires: Using OAuth requires the google-auth and google-auth-oauthlib
libraries to be installed.
Note: the same client secret file can be used as with the py3status Google
Calendar module.
author obb, girst
insync



Display Insync status.
Thanks to Iain Tatch <iain.tatch@gmail.com> for the script that this is based on.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default '{status} {queued}') -
status_offlineshow when Insync is offline (default 'OFFLINE') -
status_pausedshow when Insync is paused (default 'PAUSED') -
status_shareshow when Insync is sharing (default 'SHARE') -
status_syncedshow when Insync has finished syncing (default 'SYNCED') -
status_syncingshow when Insync is syncing (default 'SYNCING')
Format placeholders:
-
{status}Insync status -
{queued}Number of files queued
Color options:
-
color_badOffline -
color_degradedDefault (e.g. Paused/Syncing) -
color_goodSynced
Requires:
insyncan unofficial Google Drive client with support for various desktops
author Joshua Pratt <jp10010101010000@gmail.com>
license BSD
kdeconnector






Display information about your smartphone with KDEConnector.
Configuration parameters:
-
cache_timeouthow often we refresh this module in seconds (default 30) -
devicethe device name, you need this if you have more than one device connected to your PC (default None) -
device_idalternatively to the device name you can set your device id here (default None) -
formatsee placeholders below (default '{name}{notif_status} {bat_status} {charge}%') -
format_disconnectedtext if device is disconnected (default 'device disconnected') -
low_thresholdpercentage value when text is twitch to color_bad (default 20) -
status_battext when battery is discharged (default '⬇') -
status_chrtext when device is charged (default '⬆') -
status_fulltext when battery is full (default '☻') -
status_no_notiftext when you have no notifications (default '') -
status_notiftext when notifications are available (default ' ✉')
Format placeholders:
-
{bat_status}battery state -
{charge}the battery charge -
{name}name of the device -
{notif_size}number of notifications -
{notif_status}shows if a notification is available or not -
{net_type}shows cell network type -
{net_strength}shows cell network strength
Color options:
-
color_badDevice unknown, unavailable or battery below low_threshold and not charging -
color_degradedConnected and battery not charging -
color_goodConnected and battery charging
Requires:
-
kdeconnectadds communication between kde and your smartphone -
dbus-pythonPython bindings for dbus PyGObject: Python bindings for GObject Introspectiom
Examples:
kdeconnector {
device_id = "aa0844d33ac6ca03"
format = "{name} {charge} {bat_status}"
low_battery = "10"
}
author Moritz Lüdecke, valdur55
keyboard_layout





Display keyboard layout.
Configuration parameters:
-
button_nextmouse button to cycle next layout (default 4) -
button_prevmouse button to cycle previous layout (default 5) -
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default '{layout}') -
layoutsspecify a list of layouts to use (default None)
Format placeholders:
{layout}keyboard layout
Color options:
color_<layout>colorize the layout. eg color_fr = '#729FCF'
Requires:
-
xkblayout-stateor -
setxkbmapandxset(works for the first two predefined layouts. overridesXkbLayoutwhen switching layout.)
Examples:
# define keyboard layouts that can be switched between
keyboard_layout {
layouts = ['gb', 'fr', 'dvorak']
}
author shadowprince, tuxitop
license Eclipse Public License
keyboard_locks


Display NumLock, CapsLock, and ScrLock keys.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 1) -
formatdisplay format for this module (default '[\?if=num_lock&color=good NUM|\?color=bad NUM] ' '[\?if=caps_lock&color=good CAPS|\?color=bad CAPS] ' '[\?if=scroll_lock&color=good SCR|\?color=bad SCR]')
Control placeholders:
-
{num_lock}a boolean based on xset data -
{caps_lock}a boolean based on xset data -
{scroll_lock}a boolean based on xset data
Color options:
-
color_goodLock on -
color_badLock off
Examples:
# hide NUM, CAPS, SCR
keyboard_locks {
format = '\?color=good [\?if=num_lock NUM][\?soft ]'
format += '[\?if=caps_lock CAPS][\?soft ][\?if=scroll_lock SCR]'
}
author lasers
khal_calendar

Displays upcoming khal events.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 60) -
config_pathPath to khal configuration file. The default None resolves to /home/$USER/.config/khal/config (default None) -
date_endUntil which datetime the module searches for events (default 'eod') -
formatdisplay format for this module (default '{appointments}') -
max_resultsan upper bound for the number of returned calendar entries (default None) -
output_formatkhal conform format for displaying event output (default '{start-time} {title}')
Format placeholders:
{appointments}list of events in time range
Requires:
khalhttps://github.com/pimutils/khal
author @xenrox
license BSD
lm_sensors



Display temperatures, voltages, fans, and more from hardware sensors.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
chipsspecify a list of chips to use (default []) -
formatdisplay format for this module (default '{format_chip}') -
format_chipdisplay format for chips (default '{name} {format_sensor}') -
format_chip_separatorshow separator if more than one (default ' ') -
format_sensordisplay format for sensors (default '[\?color=darkgray {name}] [\?color=auto.input&show {input}]') -
format_sensor_separatorshow separator if more than one (default ' ') -
sensorsspecify a list of sensors to use (default []) -
thresholdsspecify color thresholds to use (default {'auto.input': True})
Format placeholders:
{format_chip}format for chips
Format_chip placeholders:
-
{name}chip name, eg coretemp-isa-0000, nouveau-pci-0500 -
{adapter}adapter type, eg ISA adapter, PCI adapter -
{format_sensor}format for sensors
Format_sensor placeholders:
-
{name}sensor name, eg core_0, gpu_core, temp1, fan1See
sensors -ufor a full list of placeholders forformat_chip,format_sensorswithout the prefixes,chipsandsensorsoptions.See https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface for more information on the sensor placeholders.
Color options for auto.input threshold:
-
color_zerozero value or less (color red) -
color_minminimum value (color lightgreen) -
color_excl_inputinput value excluded from threshold (color None) -
color_inputinput value (color lime) -
color_near_maxinput value near maximum value (color yellow) -
color_maxmaximum value (color orange) -
color_near_critinput value near critical value (color lightcoral) -
color_critcritical value (color red)
Color thresholds:
format_sensorxxx: print a color based on the value ofxxxplaceholder auto.input: print a color based on the value ofinputplaceholder against a customized threshold
Requires:
-
lm_sensorsa tool to read temperature/voltage/fan sensors -
sensors-detectseeman sensors-detect # --autoto read about using defaults or to compile a list of kernel modules
Examples:
# identify possible chips, sensors, placeholders, etc
[user@py3status ~] $ sensors -u
----------------------------- # ──────────────────────────────────────
coretemp-isa-0000 # chip {name} # chip: coretemp*
Adapter: ISA adapter # ├── {adapter} type
---- # │------------------------------------
Core 0: # ├── sensor {name} # sensor: core_0
temp2_input: 48.000 # │ ├── {input}
temp2_max: 81.000 # │ ├── {max}
temp2_crit: 91.000 # │ ├── {crit}
temp2_crit_alarm: 0.000 # │ └── {crit_alarm}
Core 1: # └── sensor {name} # sensor: core_1
temp3_input: 48.000 # ├── {input}
temp3_max: 81.000 # ├── {max}
temp3_crit: 91.000 # ├── {crit}
temp3_crit_alarm: 0.000 # └── {crit_alarm}
# ──────────────────────────────────────
k10temp-pci-00c3 # chip {name} # chip: k10temp*
Adapter: PCI adapter # ├── {adapter} type
---- # │------------------------------------
temp1: # ├── sensor {name} # sensor: temp1
temp1_input: 30.000 # │ ├── {input}
temp1_max: -71.000 # │ ├── {max}
temp1_min: -15.000 # │ ├── {min}
temp1_alarm: 1.000 # │ ├── {alarm}
temp1_offset: 0.000 # │ ├── {offset}
temp1_beep: 0.000 # │ └── {beep}
intrusion0: # └── sensor {name} # sensor: intrusion0
intrusion0_alarm: 0.000 # └── {alarm}
Solid lines denotes chips. Dashed lines denotes sensors.
Sensor names are lowercased and its spaces replaced with underscores.
The numbered prefixes, eg `temp1_*` are removed to keep names clean.
# specify chips to use
lm_sensors {
chips = ['coretemp-isa-0000'] # full
OR
chips = ['coretemp-*'] # lm_sensors-compatible wildcard
}
# specify sensors to use
lm_sensors {
sensors = ['core_0', 'core_1', 'core_2', 'core_3'] # full
OR
sensors = ['core_*'] # fnmatch
}
# show name per chip, eg CPU 35°C 36°C 37°C 39°C GPU 52°C
lm_sensors {
format_chip = '[\?if=name=coretemp-isa-0000 CPU ]'
format_chip += '[\?if=name=nouveau-pci-0500 GPU ]'
format_chip += '{format_sensor}'
format_sensor = '\?color=auto.input {input}°C'
sensors = ['core*', 'temp*']
}
# show name per sensor, eg CPU1 35°C CPU2 36°C CPU3 37°C CPU4 39°C GPU 52°C
lm_sensors {
format_chip = '{format_sensor}'
format_sensor = '[\?if=name=core_0 CPU1 ]'
format_sensor += '[\?if=name=core_1 CPU2 ]'
format_sensor += '[\?if=name=core_2 CPU3 ]'
format_sensor += '[\?if=name=core_3 CPU4 ]'
format_sensor += '[\?if=name=gpu_core GPU ]'
format_sensor += '[\?color=auto.input {input}°C]'
sensors = ['core*', 'temp*']
}
author lasers
loadavg









Display average system load over a period of time.
In UNIX computing, the system load is a measure of the amount of computational work that a computer system performs. The load average represents the average system load over a period of time. It conventionally appears in the form of three numbers which represent the system load during the last one-, five-, and fifteen-minute periods.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 5) -
formatdisplay format for this module (default 'Loadavg [\?color=1avg {1min}] ' '[\?color=5avg {5min}] [\?color=15avg {15min}]') -
thresholdsspecify color thresholds to use (default [(0, '#9dd7fb'), (20, 'good'), (40, 'degraded'), (60, '#ffa500'), (80, 'bad')])
Format placeholders:
-
{1min}load average during the last 1-minute, eg 1.44 -
{5min}load average during the last 5-minutes, eg 1.66 -
{15min}load average during the last 15-minutes, eg 1.52 -
{1avg}load average percentage during the last 1-minute, eg 12.00 -
{5avg}load average percentage during the last 5-minutes, eg 13.83 -
{15avg}load average percentage during the last 15-minutes, eg 12.67
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Notes: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages http://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html
Examples:
# show load averages with static colors
loadavg {
format = 'Loadavg [\?color=orange {1min} ][\?color=gold {5min} {15min}]'
}
# remove prefix - easy copy and paste
loadavg {
format = '[\?color=1avg {1min}] '
format += '[\?color=5avg {5min}] '
format += '[\?color=15avg {15min}]'
}
# show detailed load averages + percentages
loadavg {
format = 'Loadavg [\?color=darkgray '
format += '1min [\?color=1avg {1min}]\|[\?color=1avg {1avg}%] '
format += '5min [\?color=5avg {5min}]\|[\?color=5avg {5avg}%] '
format += '15min [\?color=15avg {15min}]\|[\?color=15avg {15avg}%]]'
}
# show load averages with different colors + thresholds
loadavg {
# htop - default
(0, '#9dd7fb'), # 1avg
(0, 'cyan'), # 5avg
(0, 'darkcyan'), $ 15avg
# htop - monochrome
(0, '#9dd7fb'), # 1avg
(0, None), # 5avg
(0, None), # 15avg
# htop - black night
(0, 'greenyellow'), # 1avg
(0, 'limegreen'), # 5avg
(0, 'limegreen'), # 15avg
# htop - mc
(0, '#ffffff'), # 1avg
(0, '#aaaaaa'), # 5avg
(0, '#555555'), # 15avg
# three shades of blue
(0, '#87cefa'), # 1avg
(0, '#4bb6f8'), # 5avg
(0, '#0991e5'), # 15avg
# three shades of gray
(0, '#dddddd'), # 1avg
(0, '#bbbbbb'), # 5avg
(0, '#999999'), # 15avg
# htop - mc and three shades of gray is similar. htop - mc
# have higher contrast between time periods over three shades
# of gray for better readability. your mileage may vary.
thresholds = {
'1avg': [
(0, 'REPLACE_ME'),
(20, 'good'), (40, 'degraded'),
(60, '#ffa500'), (80, 'bad')
],
'5avg': [
(0, 'REPLACE_ME'),
(20, 'good'), (40, 'degraded'),
(60, '#ffa500'), (80, 'bad')
],
'15avg': [
(0, 'REPLACE_ME'),
(20, 'good'), (40, 'degraded'),
(60, '#ffa500'), (80, 'bad')
],
}
}
# don't show load averages if 1avg is under 60%
loadavg {
format = '[\?if=1avg>59 Loadavg [\?color=1avg {1min}] '
format += '[\?color=5avg {5min}] [\?color=15avg {15min}]]'
}
# add your snippets here
loadavg {
format = "..."
}
author lasers




Display number of messages in various mailbox formats. This module supports Maildir, mbox, MH, Babyl, MMDF, and IMAP.
Configuration parameters:
-
accountsspecify a dict consisting of mailbox types and a list of dicts consisting of mailbox settings and/or paths to use (default {}) -
cache_timeoutrefresh interval for this module (default 60) -
formatdisplay format for this module (default '\?not_zero Mail {mail}|No Mail') -
thresholdsspecify color thresholds to use (default [])
Format placeholders:
-
{mail}number of messages -
{maildir}number of Maildir messages -
{mbox}number of mbox messages -
{mh}number of MH messages -
{babyl}number of Babyl messages -
{mmdf}number of MMDF messages -
{imap}number of IMAP messagesWe can divide mailbox, eg
{maildir}, into numbered placeholders based on number of mailbox accounts, eg{maildir_1}, and if we addnameto a mailbox account, we can use{name}placeholder instead, eg{home}.
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
IMAP Subscriptions:
You can specify a list of filters to decide which folders to search.
By default, we search only the INBOX folder (ie: ['^INBOX$']). We
can use regular expressions, so if you use more than one, it would
be joined by a logical operator or.
`'.*'` will match all folders.
`'pattern'` will match folders containing `pattern`.
`'^pattern'` will match folders beginning with `pattern`.
`'pattern$'` will match folders ending with `pattern`.
`'^((?![Ss][Pp][Aa][Mm]).)*$'` will match all folders
except for every possible case of `spam` folders.
For more documentation, see https://docs.python.org/3/library/re.html
and/or any regex builder on the web. Don't forget to escape characters.
Examples:
# add multiple accounts
mail { #
accounts = { # {mail}
'maildir': [ # ├── {maildir}
{'path': '~/.mutt'}, # │ ├── {maildir_1}
{'path': '~/Mail'}, # │ └── {maildir_2}
], # │
'mbox': [ # ├── {mbox}
{'path': '~/home.mbox'}, # │ ├── {mbox_1}
{ # │ ├── {mbox_2}
'name': 'local', # <----│----│----└── {local}
'path': '~/mbox' # │ │
}, # │ │
{ # │ └── {mbox_3}
'name': 'debian', # <----│---------└── {debian}
'path': '/var/mail/$USER' # │
'urgent': False, # <----│---- disable urgent
}, # │
], # │
'mh': [ # ├── {mh}
{'path': '~/mh_mail'}, # │ └── {mh_1}
], # │
'babyl': [ # ├── {babyl}
{'path': '~/babyl_mail'}, # │ └── {babyl_1}
], # │
'mmdf': [ # ├── {mmdf}
{'path': '~/mmdf_mail'}, # │ └── {mmdf_1}
] # │
'imap': [ # ├── {imap}
{ # │ ├── {imap_1}
'name': 'home', # <----│----│----└── {home}
'user': 'lasers', # │ │
'password': 'kiss_my_butt!', # │ │
'server': 'imap.gmail.com', # │ │
# <---│----│ no filters to
'port': 993, # │ │ search folders, use
# │ │ filters ['^INBOX$']
}, # │ │
{ # │ └── {imap_2}
'name': 'work', # <----│---------└── {work}
'user': 'tobes', # │
'password': 'i_love_python', #
'server': 'imap.yahoo.com', #
# <---- no port, use port 993
'urgent': False, # <---- disable urgent
# for this account
'filters': ['^INBOX$'] # <---- specify a list of filters
# to search folders
'log': True, # <---- print a list of folders
} # to filter in the log
]
}
allow_urgent = False <---- disable urgent for all accounts
}
# add colors, disable urgent
mail {
format = '[\?color=mail&show Mail] {mail}'
thresholds = [(1, 'good'), (5, 'degraded'), (15, 'bad')]
allow_urgent = False
}
# identify the mailboxes, remove what you don't need
mail {
format = '[\?color=mail '
format += '[\?if=imap&color=#00ff00 IMAP ]'
format += '[\?if=maildir&color=#ffff00 MAILDIR ]'
format += '[\?if=mbox&color=#ff0000 MBOX ]'
format += '[\?if=babyl&color=#ffa500 BABYL ]'
format += '[\?if=mmdf&color=#00bfff MMDF ]'
format += '[\?if=mh&color=#ee82ee MH ]'
format += ']'
format += '[\?not_zero&color Mail {mail}|No Mail]'
}
# individual colorized mailboxes, remove what you don't need
mail {
format = '[\?if=imap&color=#00ff00 IMAP] {imap} '
format += '[\?if=maildir&color=#ffff00 MAILDIR] {maildir} '
format += '[\?if=mbox&color=#ff0000 MBOX] {mbox} '
format += '[\?if=babyl&color=#ffa500 BABYL] {babyl} '
format += '[\?if=mmdf&color=#00bfff MMDF] {mmdf} '
format += '[\?if=mh&color=#ee82ee MH] {mh}'
allow_urgent = False
}
author lasers
mega_sync

Display status of MEGAcmd.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for the module (default "MEGA {format_sync}|No MEGA") -
format_syncdisplay format for every sync (default "{syncstate}") -
format_sync_separatorshow separator if more than one sync (default " ")
Format placeholders:
{format_sync}Format for every sync returned by 'mega-sync' command.
format_sync placeholders: Any column returned by 'mega-sync' command - in lower case! For example: id, syncstate, localpath
Requires: MEGAcmd: command-line interface for MEGA
author Maxim Baz (https://github.com/maximbaz)
license BSD
moc



Display song currently playing in moc.
MOC (music on console) is a console audio player for Linux/Unix designed to be powerful and easy to use. It consists of two parts, a server (moc) and a player/interface (mocp). It supports OGG, WAV, MP3 and other formats.
Configuration parameters:
-
button_nextmouse button to skip next track (default None) -
button_pausemouse button to pause/play the playback (default 1) -
button_previousmouse button to skip previous track (default None) -
button_stopmouse button to stop the playback (default 3) -
cache_timeoutrefresh interval for this module (default 5) -
formatdisplay format for this module (default '\?if=is_started [\?if=is_stopped [] moc|' '[\?if=is_paused ||][\?if=is_playing >] {title}]') -
replacementsspecify a list/dict of string placeholders to modify (default None) -
sleep_timeoutwhen moc is not running, this interval will be used to allow one to refresh constantly with time placeholders and/or to refresh once every minute rather than every few seconds (default 20)
Control placeholders:
-
{is_paused}a boolean based on moc status -
{is_playing}a boolean based on moc status -
{is_started}a boolean based on moc status -
{is_stopped}a boolean based on moc status
Format placeholders:
-
{album}album name, eg (new output here) -
{artist}artist name, eg (new output here) -
{avgbitrate}audio average bitrate, eg 230kbps -
{bitrate}audio bitrate, eg 230kbps -
{currentsec}elapsed time in seconds, eg 32 -
{currenttime}elapsed time in [HH:]MM:SS, eg 00:32 -
{file}file location, eg /home/user/Music... -
{rate}audio rate, eg 44kHz -
{songtitle}song title, eg (new output here) -
{state}playback state, eg PLAY, PAUSE, STOP -
{timeleft}time left in [HH:]MM:SS, eg 71:30 -
{title}track title, eg (new output here) -
{totalsec}total time in seconds, eg 4322 -
{totaltime}total time in seconds, eg 72:02Placeholders are retrieved directly from
mocp --infocommand. The list was harvested once and should not represent a full list.
Color options:
-
color_pausedPaused, defaults to color_degraded -
color_playingPlaying, defaults to color_good -
color_stoppedStopped, defaults to color_bad
Requires:
moca console audio player with simple ncurses interface
Examples:
# see 'man mocp' for more buttons
moc {
on_click 9 = 'exec mocp --example'
}
author lasers
mpd_status



Display song currently playing in mpd.
Configuration parameters:
-
cache_timeouthow often we refresh this module in seconds (default 2) -
formattemplate string (see below) (default '{state} [[[{artist} ]- {title}]|[{file}]]') -
hide_on_errorhide the status if an error has occurred (default False) -
hide_when_pausedhide the status if state is paused (default False) -
hide_when_stoppedhide the status if state is stopped (default True) -
hostmpd host (default 'localhost') -
idle_subsystemsa list of subsystems to idle on. player: changes in song information, play state mixer: changes in volume options: e.g. repeat mode See the MPD protocol documentation for additional events. (default ['player', 'playlist', 'mixer', 'options']) -
idle_timeoutforce idle to reset every n seconds (default 3600) -
max_widthmaximum status length (default 120) -
passwordmpd password (default None) -
portmpd port (default '6600') -
state_pauselabel to display for "paused" state (default '[pause]') -
state_playlabel to display for "playing" state (default '[play]') -
state_stoplabel to display for "stopped" state (default '[stop]') -
use_idlewhether to use idling instead of polling. None to autodetect (default None)
Format placeholders:
{state}state (paused, playing. stopped) can be defined viastate_..configuration parameters Refer to the mpc(1) manual page for the list of available placeholders to be used in the format. Placeholders should use braces{}rather than percent%%eg{artist}. Every placeholder can also be prefixed withnext_to retrieve the data for the song following the one currently playing.
Color options:
-
color_pausePaused, default color_degraded -
color_playPlaying, default color_good -
color_stopStopped, default color_bad
Requires:
python-mpd2(NOT python2-mpd2)
Examples:
# Show state and (artist -) title, if no title fallback to file:
{state} [[[{artist} - ]{title}]|[{file}]]
# Show state, [duration], title (or file) and next song title (or file):
{state} \[{time}\] [{title}|{file}] → [{next_title}|{next_file}]
author shadowprince, zopieux
license Eclipse Public License
mpris

Display song/video and control MPRIS compatible players.
There are two ways to control the media player. Either by clicking with a mouse button in the text information or by using buttons. For former you have to define the button parameters in your config.
Configuration parameters:
-
button_nextmouse button to play the next entry (default None) -
button_next_playermouse button to switch next player in list (Same status as top player) (default None) -
button_prev_playermouse button to switch previous player in list (Same status as top player) (default None) -
button_previousmouse button to play the previous entry (default None) -
button_stopmouse button to stop the player (default None) -
button_switch_to_top_playermouse button to switch to top player (default None) -
button_togglemouse button to toggle between play and pause mode (default 1) -
cache_timeouttime (s) between Position update (default 0.5) -
formatdisplay format for this module (default '[{artist} - ][{title}] {previous} {toggle} {next}') -
format_nonedefine output if no player is running (default 'no player running') -
icon_nextspecify icon for next button (default u'▹') -
icon_pausespecify icon for pause button (default u'◫') -
icon_playspecify icon for play button (default u'▷') -
icon_previousspecify icon for previous button (default u'◃') -
icon_stopspecify icon for stop button (default u'□') -
max_widthmaximum status length (default None) -
player_prioritypriority of the players. Keep in mind that the state has a higher priority than player_priority. So when player_priority is "[mpd, bomi]" and mpd is paused and bomi is playing than bomi wins. (default []) -
replacementsspecify a list/dict of string placeholders to modify (default None) -
state_pausespecify icon for pause state (default u'◫') -
state_playspecify icon for play state (default u'▷') -
state_stopspecify icon for stop state (default u'□')
Format placeholders:
-
{album}album name -
{artist}artist name (first one) -
{length}time duration of the song -
{player}show name of the player -
{player_shortname}show name of the player from busname (usually command line name) -
{state}playback status of the player -
{time}played time of the song -
{title}name of the song -
{tracknumber}track number of the song -
{nowplaying}now playing field provided by VLC for stream info
Button placeholders:
-
{next}play the next title -
{pause}pause the player -
{play}play the player -
{previous}play the previous title -
{stop}stop the player -
{toggle}toggle between play and pause
Color options:
-
color_control_inactivebutton is not clickable -
color_control_activebutton is clickable -
color_pausedsong is paused, defaults to color_degraded -
color_playingsong is playing, defaults to color_good -
color_stoppedsong is stopped, defaults to color_bad
Requires:
-
mpris2Python usable definiton of MPRIS2 -
dbus-pythonPython bindings for dbus PyGObject: Python bindings for GObject Introspection
Tested players:
-
bomipowerful and easy-to-use gui multimedia player based on mpv -
cantataqt5 client for the music player daemon (mpd) -
mpdris2mpris2 support for mpd -
vlcmulti-platform mpeg, vcd/dvd, and divx player
Examples:
mpris {
format = "{previous}{play}{next} {player}: {state} [[{artist} - {title}]|[{title}]]"
format_none = "no player"
player_priority = "[mpd, cantata, vlc, bomi, *]"
}
only show information from mpd and vlc, but mpd has a higher priority:
mpris {
player_priority = "[mpd, vlc]"
}
show information of all players, but mpd and vlc have the highest priority:
mpris {
player_priority = "[mpd, vlc, *]"
}
vlc has the lowest priority:
mpris {
player_priority = "[*, vlc]"
}
author Moritz Lüdecke, tobes, valdur55
net_iplist

Display list of network interfaces and IP addresses.
This module supports both IPv4 and IPv6. There is the possibility to blacklist interfaces and IPs, as well as to show interfaces with no IP address. It will show an alternate text if no IP are available.
Configuration parameters:
-
cache_timeoutrefresh interval for this module in seconds. (default 30) -
formatformat of the output. (default 'Network: {format_iface}') -
format_ifaceformat string for the list of IPs of each interface. (default '{iface}:[ {ip4}][ {ip6}]') -
format_no_ipstring to show if there are no IPs to display. (default 'no connection') -
iface_blacklistlist of interfaces to ignore. Accepts shell-style wildcards. (default ['lo']) -
iface_sepstring to write between interfaces. (default ' ') -
ip_blacklistlist of IPs to ignore. Accepts shell-style wildcards. (default []) -
ip_sepstring to write between IP addresses. (default ',') -
remove_emptydo not show interfaces with no IP. (default True)
Format placeholders:
{format_iface}the format_iface string.
Format placeholders for format_iface:
-
{iface}name of the interface. -
{ip4}list of IPv4 of the interface. -
{ip6}list of IPv6 of the interface.
Color options:
-
color_badno IPs to show -
color_goodIPs to show
Requires:
iputility found in iproute2 package
Examples:
net_iplist {
iface_blacklist = []
ip_blacklist = ['127.*', '::1']
}
author guiniol
net_rate

Display network transfer rate.
Configuration parameters:
-
all_interfacesignore self.interfaces, but not self.interfaces_blacklist (default True) -
cache_timeouthow often we refresh this module in seconds (default 2) -
devfilelocation of dev file under /proc (default '/proc/net/dev') -
formatformat of the module output (default '{interface}: {total}') -
format_no_connectionwhen there is no data transmitted from the start of the plugin (default '') -
format_valueformat to use for values (default "[\?min_length=11 {value:.1f} {unit}]") -
hide_if_zerohide indicator if rate == 0 (default False) -
interfacescomma separated list of interfaces to track (default []) -
interfaces_blacklistcomma separated list of interfaces to ignore (default 'lo') -
si_unitsuse SI units (default False) -
sum_valuessum values of each interface instead of taking the top one (default False) -
thresholdsspecify color thresholds to use (default [(0, 'bad'), (1024, 'degraded'), (1024 * 1024, 'good')]) -
unitunit to use. If the unit contains a multiplier prefix, only this exact unit will ever be used (default "B/s")
Format placeholders:
-
{down}download rate -
{interface}name of interface -
{total}total rate -
{up}upload rate
format_value placeholders:
-
{unit}current unit -
{value}numeric value
Color thresholds:
-
{down}Change color based on the value of down -
{total}Change color based on the value of total -
{up}Change color based on the value of up
author shadowprince
license Eclipse Public License
netdata

Display network speed and bandwidth usage.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 2) -
formatdisplay format for this module (default '{nic} [\?color=down LAN(Kb): {down}↓ {up}↑] ' '[\?color=total T(Mb): {download}↓ {upload}↑ {total}↕]') -
nicspecify a network interface to use (default None) -
thresholdsspecify color thresholds to use (default {'down': [(0, 'bad'), (30, 'degraded'), (60, 'good')], 'total': [(0, 'good'), (400, 'degraded'), (700, 'bad')]})
Format placeholders:
-
{nic}network interface -
{down}number of download speed -
{up}number of upload speed -
{download}number of download usage -
{upload}number of upload usage -
{total}number of total usage
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
author Shahin Azad <ishahinism at Gmail>
networkmanager


Display NetworkManager fields via nmcli, a command-line tool.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
devicesspecify a list of devices to use (default ['[e|w]'])* -
formatdisplay format for this module (default '{format_device}') -
format_deviceformat for devices (default "[\?if=general_connection {general_device}[\?soft ][\?color=ap_signal {ap_ssid} {ap_bars} {ap_signal}%][\?soft ][\?color=good {ip4_address1}]]") -
format_device_separatorshow separator if more than one (default ' ') -
thresholdsspecify color thresholds to use (default [(0, 'bad'), (30, 'degraded'), (65, 'good')])
Format placeholders:
{format_device}format for devices
Format_device placeholders:
-
{general_connection}eg Py3status, Wired Connection 1 -
{general_device}eg wlp3s0b1, enp2s0 -
{general_type}eg wifi, ethernet -
{ap_bars}signal strength in bars, eg ▂▄▆_ -
{ap_chan}wifi channel, eg 6 -
{ap_mode}network mode, eg Adhoc or Infra -
{ap_rate}bitrate, eg 54 Mbit/s -
{ap_security}signal security, eg WPA2 -
{ap_signal}signal strength in percentage, eg 63 -
{ap_ssid}ssid name, eg Py3status -
{ip4_address1}eg 192.168.1.108 -
{ip6_address1}eg 0000::0000:0000:0000:0000Use
nmcli --terse --fields=general,ap,ip4,ip6 device showfor a full list of supported NetworkManager fields to use. Not all of NetworkManager fields will be usable. Seeman nmclifor more information.
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
nmclicli configuration utility for NetworkManager
Examples:
# specify devices to use
networkmanager {
devices = ['e*'] # ethernet only
devices = ['w*'] # wireless only
devices = [] # ethernet, wireless, lo, etc
}
author Kevin Pulo <kev@pulo.com.au>
license BSD
ns_checker

Display DNS resolution success on a configured domain.
This module launch a simple query on each nameservers for the specified domain. Nameservers are dynamically retrieved. The FQDN is the only one mandatory parameter. It's also possible to add additional nameservers by appending them in nameservers list.
The default resolver can be overwritten with my_resolver.nameservers parameter.
Configuration parameters:
-
cache_timeouthow often we refresh this module in seconds (default 300) -
domaindomain name to check (default '') -
formatoutput format string (default '{total_count} NS {status}') -
lifetimeresolver lifetime (default 0.3) -
nameserversspecify a list of reference DNS nameservers (default []) -
resolversspecify a list of DNS resolvers to use (default [])
Format placeholders:
-
{nok_count}The number of failed name servers -
{ok_count}The number of working name servers -
{status}The overall status of the name servers (OK or NOK) -
{total_count}The total number of name servers
Color options:
-
color_badOne or more lookups have failed -
color_goodAll lookups have succeeded
Requires:
dnspythona dns toolkit for python
author nawadanp
nvidia_smi


Display NVIDIA properties currently exhibiting in the NVIDIA GPUs.
nvidia-smi, short for NVIDIA System Management Interface program, is a cross platform tool that supports all standard NVIDIA driver-supported Linux distros.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default '{format_gpu}') -
format_gpudisplay format for NVIDIA GPUs (default '{gpu_name} [\?color=temperature.gpu {temperature.gpu}°C] ' '[\?color=memory.used_percent {memory.used_percent}%]') -
format_gpu_separatorshow separator if more than one (default ' ') -
memory_unitspecify memory unit, eg 'KiB', 'MiB', 'GiB', otherwise auto (default None) -
thresholdsspecify color thresholds to use (default [(0, 'good'), (65, 'degraded'), (75, 'orange'), (85, 'bad')])
Format placeholders:
{format_gpu}format for NVIDIA GPUs
format_gpu placeholders:
-
{index}Zero based index of the GPU. -
{count}The number of NVIDIA GPUs in the system -
{driver_version}The version of the installed NVIDIA display driver -
{gpu_name}The official product name of the GPU -
{gpu_uuid}Globally unique immutable identifier of the GPU -
{memory.free}Total free memory -
{memory.free_unit}Total free memory unit -
{memory.total}Total installed GPU memory -
{memory.total_unit}Total installed GPU memory unit -
{memory.used}Total memory allocated by active contexts -
{memory.used_percent}Total memory allocated by active contexts percentage -
{memory.used_unit}Total memory unit -
{temperature.gpu}Core GPU temperature in degrees CUse
python /path/to/nvidia_smi.py --list-propertiesfor a full list of supported NVIDIA properties to use. Not all of supported NVIDIA properties will be usable. Seenvidia-smi --help-query-gpufor more information.
Color thresholds:
format_gpuxxx: print a color based on the value of NVIDIAxxxproperty
Requires:
nvidia-smicommand line interface to query NVIDIA devices
Examples:
# display nvidia properties
nvidia_smi {
format_gpu = '{gpu_name} [\?color=temperature.gpu {temperature.gpu}°C] '
format_gpu += '[\?color=memory.used_percent {memory.used} {memory.used_unit}'
format_gpu += '[\?color=darkgray&show \|]{memory.used_percent:.1f}%]'
}
author lasers
online_status


Determine if you have an Internet Connection.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default '{icon}') -
icon_offshow when connection is offline (default '■') -
icon_onshow when connection is online (default '●') -
timeouttime to wait for a response, in seconds (default 2) -
urlspecify URL to connect when checking for a connection (default 'https://www.google.com')
Format placeholders:
{icon}connection status
Color options:
-
color_offConnection offline, defaults to color_bad -
color_onConnection online, defaults to color_good
author obb
pingdom



Display response times of the configured Pingdom checks.
We also verify the status of the checks and colorize if needed. Pingdom API doc : https://www.pingdom.com/features/api/documentation/
Configuration parameters:
-
app_keycreate an APP KEY on pingdom first (default '') -
cache_timeouthow often to refresh the check from pingdom (default 600) -
checkscomma separated pindgom check names to display (default '') -
formatdisplay format for this module (default '{pingdom}') -
loginpingdom login (default '') -
max_latencymaximal latency before coloring the output (default 500) -
passwordpingdom password (default '') -
request_timeoutpindgom API request timeout (default 10)
Format placeholders:
{pingdom}pingdom response times
Color options:
-
color_badSite is down -
color_degradedLatency exceeded max_latency
Requires:
requestshttps://pypi.python.org/pypi/requests
author ultrabug
playerctl



Display song/video and control players supported by playerctl
Playerctl is a command-line utility for controlling media players that implement the MPRIS D-Bus Interface Specification. With Playerctl you can bind player actions to keys and get metadata about the currently playing song or video.
Configuration parameters:
-
button_loopmouse button to cycle the loop status of the player (default None) -
button_nextmouse button to skip to the next track (default None) -
button_pausemouse button to pause the playback (default None) -
button_playmouse button to play the playback (default None) -
button_play_pausemouse button to play/pause the playback (default 1) -
button_previousmouse button to skip to the previous track (default None) -
button_seek_backwardmouse button to playback's position backward (default None) -
button_seek_forwardmouse button to playback's position forward (default None) -
button_shufflemouse button to toggle the shuffle mode of the player (default None) -
button_stopmouse button to stop the playback (default 3) -
button_volume_downmouse button to decrease the volume of the player (default None) -
button_volume_upmouse button to increase the volume of the player (default None) -
formatdisplay format for this module (default '{format_player}') -
format_playerdisplay format for players (default '[\?color=status [\?if=status=Playing > ][\?if=status=Paused || ]' '[\?if=status=Stopped .. ][[{artist}][\?soft - ][{title}|{player}]]]') -
format_player_separatorshow separator if more than one player (default ' ') -
playerslist of players to track. An empty list tracks all players (default []) -
replacementsspecify a list/dict of string placeholders to modify (default None) -
seek_deltatime (in seconds) to change the playback's position by (default 5) -
thresholdsspecify color thresholds to use for different placeholders (default {"status": [("Playing", "good"), ("Paused", "degraded"), ("Stopped", "bad")]}) -
volume_deltapercentage (from 0 to 100) to change the player's volume by (default 10)Not all players support every button action
Format placeholders:
{format_player}format for players
Format player placeholders:
-
{album}album name -
{artist}artist name -
{duration}length of track/video in [HH:]MM:SS, e.g. 03:22 -
{loop}loop status of the player, e.g. None, playlist, Track -
{player}name of the player -
{position}elapsed time in [HH:]MM:SS, e.g. 00:17 -
{shuffle}boolean indicating if the player's shuffle mode is on -
{status}playback status, e.g. Playing, Paused, Stopped -
{title}track/video title -
{trackNumber}position of the track in the album or playlist -
{volume}volume level of the player from 0 to 100Not all media players support every placeholder
Requires:
-
playerctlmpris media player controller and lib for spotify, vlc, audacious, bmp, xmms2, and others. -
python-gobjectPython Bindings for GLib/GObject/GIO/GTK+
author jdholtz
pomodoro


Use Pomodoro technique to get things done easily.
Button 1 starts/pauses countdown. Button 2 switch Pomodoro/Break. Button 3 resets timer.
Configuration parameters:
-
display_bardisplay time in bars when True, otherwise in seconds (default False) -
formatdefine custom time format. See placeholders below (default '{ss}') -
format_activeformat to display when timer is active (default 'Pomodoro [{format}]') -
format_breakformat to display during break (default 'Break #{breakno} [{format}]') -
format_break_stoppedformat to display during a break that is stopped (default 'Break #{breakno} ({format})') -
format_separatorseparator between minutes:seconds (default ':') -
format_stoppedformat to display when timer is stopped (default 'Pomodoro ({format})') -
num_progress_barsnumber of progress bars (default 5) -
pomodorosspecify a number of pomodoros (intervals) (default 4) -
sound_break_endbreak end sound (file path) (default None) -
sound_pomodoro_endpomodoro end sound (file path) (default None) -
sound_pomodoro_startpomodoro start sound (file path) (default None) -
timer_breaknormal break time (seconds) (default 300) -
timer_long_breaklong break time (seconds) (default 900) -
timer_pomodoropomodoro time (seconds) (default 1500)
Format placeholders:
-
{bar}display time in bars -
{breakno}current break number -
{ss}display time in total seconds (1500) -
{mm}display time in total minutes (25) -
{mmss}display time in (hh-)mm-ss (25:00)
Color options:
-
color_badPomodoro not running -
color_degradedPomodoro break -
color_goodPomodoro active
Examples:
pomodoro {
format = "{mmss} {bar}"
}
author Fandekasp (Adrien Lemaire), rixx, FedericoCeratto, schober-ch, ricci
process_status


Display status of a process on your system.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default '{icon}') -
fullmatch against the full command line (default False) -
icon_offshow this if a process is not running (default '■') -
icon_onshow this if a process is running (default '●') -
processspecify a process name to use (default None)
Format placeholders:
-
{icon}process icon -
{process}process name
Color options:
-
color_badNot running -
color_goodRunning
author obb, Moritz Lüdecke
prometheus

Displays result of a Prometheus query.
Configuration parameters:
-
colorText colour. Supports py3status colour names. Examples: GOOD, DEGRADED, BAD, #E9967A (default None) -
formatFormatting of query result. Can refer to all labels from the query result. Query value placeholder __v. (default "{__v:.0f}") -
joinIf query returned multiple rows, join them using this string. If you want to show just one, update your query. (default None) -
queryThe PromQL query (default None) -
query_intervalRe-query interval in seconds. (default 60) -
serverstr, URL pointing at your Prometheus(-compatible) server, example: http://prom.int.mydomain.net:9090 (default None) -
unitsDict with py3.format_units arguments, if you want human-readable unit formatting. Example: {"unit": "Wh", "si": True} If used, __v placeholder will contain formatted output. __n and __u will contain number and unit separately if you want to more finely control formatting. (default None)
Dynamic format placeholders: All query result labels are available as format placeholders. The vector values themselves are in placeholder __v. (Or __n and __u if you specified units).
Examples: # If blackbox exporter ran into any failures, show it. If everything # is healthy this will produce 0 rows hence not shown. query = "probe_success == 0" format = "💀 {job} {instance} 💀" color = "bad"
# Basic Prometheus stat
query = "sum(prometheus_sd_discovered_targets)"
format = "{__v:.0f} targets monitored"
color = "ok"
author github.com/Wilm0r
rainbow

Add color cycling fun to your i3bar.
This is the most pointless yet most exciting module you can imagine.
It allows color cycling of modules. Imagine the joy of having the current time change through the colors of the rainbow.
If you were completely insane you could also use it to implement the i3bar equivalent of the <blink> tag and cause yourself endless headaches and the desire to vomit.
The color for the contained module(s) is changed and cycles through your chosen gradient by default this is the colors of the rainbow. This module will increase the amount of updates that py3status needs to do so should be used sparingly.
Configuration parameters:
-
cycle_timeHow often we change this color in seconds (default 1) -
forceIf True then the color will always be set. If false the color will only be changed if it has not been set by a module. (default False) -
formatdisplay format for this module (default '{output}') -
gradientThe colors we will cycle through, This is a list of hex values (default [ '#FF0000', '#FFFF00', '#00FF00', '#00FFFF', '#0000FF', '#FF00FF', '#FF0000', ]) -
multi_colorIf True then each module the rainbow contains will be colored differently (default True) -
stepsNumber of steps between each color in the gradient (default 10)
Format placeholders:
{output}rainbow output
Examples:
# show time colorfully
order += "rainbow time"
rainbow time {
time {}
}
# blinking text black/white
order += "rainbow blink_time"
rainbow blink_time {
gradient = [
'#FFFFFF',
'#000000',
]
steps = 1
time {}
}
author tobes
rate_counter

Display time spent and calculate the price of your service.
Configuration parameters:
-
cache_timeouthow often to update in seconds (default 5) -
config_filefile path to store the time already spent and restore it the next session (default '~/.i3/py3status/counter-config.save') -
formatoutput format string (default 'Time: {days} day {hours}:{mins:02d} Cost: {total}') -
format_moneyoutput format string (default '{price}$') -
hour_priceyour price per hour (default 30) -
taxtax value (1.02 = 2%) (default 1.02)
Format placeholders:
-
{days}The number of whole days in running timer -
{hours}The remaining number of whole hours in running timer -
{mins}The remaining number of whole minutes in running timer -
{secs}The remaining number of seconds in running timer -
{subtotal}The subtotal cost (time * rate) -
{tax}The tax cost, based on the subtotal cost -
{total}The total cost (subtotal + tax) -
{total_hours}The total number of whole hours in running timer -
{total_mins}The total number of whole minutes in running timer
format_money placeholders:
{price}numeric value of money
Color options:
-
color_runningRunning, default color_good -
color_stoppedStopped, default color_bad
author Amaury Brisou <py3status AT puzzledge.org>
rss_aggregator

Display unread feeds in your favorite RSS aggregator.
Configuration parameters:
-
aggregatorfeed aggregator used. Supported values areowncloudandttrss. Other aggregators might be supported in future releases. Contributions are welcome. (default 'owncloud') -
cache_timeouthow often to run this check (default 60) -
feed_idslist of IDs of feeds to watch, see note below (default []) -
folder_idslist of IDs of folders ro watch (default []) -
formatformat to display (default 'Feed: {unseen}') -
passwordlogin password (default None) -
serveraggregator server to connect to (default 'https://yourcloudinstance.com') -
userlogin user (default None)
Format placeholders:
{unseen}sum of numbers of unread feed elements
Color options:
-
color_new_itemstext color when there is new items (default color_good) -
color_errortext color when there is an error (default color_bad)
Requires:
requestspython module from pypi https://pypi.python.org/pypi/requests
Notes: You can also decide to check only for specific feeds or folders of feeds. To use this feature, you have to first get the IDs of those feeds or folders. You can get those IDs by clicking on the desired feed or folder and watching the URL.
For OwnCloud/NextCloud with News application:
https://yourcloudinstance.com/index.php/apps/news/#/items/feeds/FEED_ID
https://yourcloudinstance.com/index.php/apps/news/#/items/folders/FOLDER_ID
For Tiny Tiny RSS 1.6 or newer:
https://yourttrssinstance.com/index.php#f=FEED_ID&c=0
https://yourttrssinstance.com/index.php#f=FOLDER_ID&c=1
If both feeds list and folders list are left empty, all unread feed items
will be counted. You may use both feeds list and folders list, but given
feeds shouldn't be included in given folders, else unread count number
behavior is unpredictable. Same warning when aggregator allows subfolders:
the folders list shouldn't include a folder and one of its subfolder.
author raspbeguy
rt

Display number of ongoing tickets from RT queues.
Configuration parameters:
-
cache_timeouthow often we refresh this module in seconds (default 300) -
dbdatabase to use (default '') -
formatsee placeholders below (default 'general: {General}') -
hostdatabase host to connect to (default '') -
passwordlogin password (default '') -
threshold_criticalset bad color above this threshold (default 20) -
threshold_warningset degraded color above this threshold (default 10) -
timeouttimeout for database connection (default 5) -
userlogin user (default '')
Format placeholders:
{YOUR_QUEUE_NAME}number of ongoing RT tickets (open+new+stalled)
Color options:
-
color_badExceeded threshold_critical -
color_degradedExceeded threshold_warning
Requires: PyMySQL: https://pypi.org/project/PyMySQL/ or MySQL-python: https://pypi.org/project/MySQL-python/
It features thresholds to colorize the output and forces a low timeout to limit the impact of a server connectivity problem on your i3bar freshness.
author ultrabug
scratchpad



Display number of scratchpad windows and urgency hints.
Configuration parameters:
-
cache_timeoutrefresh interval for i3-msg or swaymsg (default 5) -
formatdisplay format for this module (default "⌫ [\?color=scratchpad {scratchpad}]") -
thresholdsspecify color thresholds to use (default [(0, "darkgray"), (1, "violet")])
Format placeholders:
-
{scratchpad}number of scratchpads -
{urgent}number of urgent scratchpads
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Optional:
i3ipcan improved python library to control i3wm and sway
Examples:
# hide zero scratchpad
scratchpad {
format = '[\?not_zero ⌫ [\?color=scratchpad {scratchpad}]]'
}
# hide non-urgent scratchpad
scratchpad {
format = '[\?not_zero ⌫ {urgent}]'
}
# bring up scratchpads on clicks
scratchpad {
on_click 1 = 'scratchpad show'
}
# add more colors
scratchpad {
thresholds = [
(0, "darkgray"), (1, "violet"), (2, "deepskyblue"), (3, "lime"),
(4, "yellow"), (5, "orange"), (6, "red"), (7, "tomato"),
]
}
author shadowprince (counter), cornerman (async)
license Eclipse Public License (counter), BSD (async)
screenshot


Take screenshots and upload them to a given server.
Configuration parameters:
-
file_lengthgenerated file_name length (default 4) -
formatdisplay format for this module (default '\?color=good [{basename}|\?show SHOT]') -
save_pathDirectory where to store your screenshots (default '~/Pictures') -
screenshot_commandthe command used to generate the screenshot (default 'gnome-screenshot -f') -
upload_paththe remote path where to push the screenshot (default None) -
upload_serveryour server address (default None) -
upload_useryour ssh user (default None)
Format placeholders:
{basename}generated basename, eg qs60.jpg
Examples:
# push screenshots to a server
screenshot {
save_path = "~/Pictures/"
upload_user = "erol"
upload_server = "puzzledge.org"
upload_path = "/files"
# scp $HOME/Pictures/$UUID.jpg erol@puzzledge.org:/files
}
author Amaury Brisou <py3status AT puzzledge.org>
scroll

Scroll modules.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 1) -
lengthspecify a length of characters to scroll (default 25)
Format placeholders:
{output}output
Examples:
scroll {
length = 30
playerctl {}
networkmanager {}
static_string {
format = "some long long text"
}
}
author farnoy
selinux



Display SELinux state.
This module displays the state of SELinux on your machine: Enforcing (good), Permissive (degraded), or Disabled (bad).
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default 'SELinux: {state}') -
state_disabledshow when no SELinux policy is loaded. (default 'disabled') -
state_enforcingshow when SELinux security policy is enforced. (default 'enforcing') -
state_permissiveshow when SELinux prints warnings instead of enforcing. (default 'permissive')
Format placeholders:
{state}SELinux state
Color options:
-
color_badEnforcing -
color_degradedPermissive -
color_goodDisabled
Requires:
libselinux-pythonSELinux python bindings for libselinux
author bstinsonmhk
license BSD
spaceapi


Display status of a given hackerspace.
Configuration parameters:
-
button_urlmouse button to open URL sent in space's API (default 3) -
cache_timeoutrefresh interval for this module (default 60) -
formatdisplay format for this module (default '{state}[ {lastchanged}]') -
format_lastchangeddisplay format for time (default 'since %H:%M') -
state_closedshow when hackerspace is closed (default 'closed') -
state_openshow when hackerspace is open (default 'open') -
urlspecify JSON URL of a hackerspace to retrieve from (default 'https://status.chaospott.de/status.json')
Format placeholders:
-
{state}Hackerspace state -
{lastchanged}Time
format_lastchanged conversion: '%' Strftime characters to be translated
Color options:
-
color_closedSpace closed, defaults to color_bad -
color_openSpace open, defaults to color_good
author timmszigat
license WTFPL <http://www.wtfpl.net/txt/copying/>
speedtest



Perform a bandwidth test with speedtest-cli.
Use middle-click to start the speed test.
Configuration parameters:
-
button_sharemouse button to share an URL (default None) -
formatdisplay format for this module (default "speedtest[\?if=elapsed&color=elapsed_time " "{elapsed_time}s][ [\?color=download ↓{download}Mbps] " "[\?color=upload ↑{upload}Mbps]]") -
thresholdsspecify color thresholds to use (default {"upload": [(0, "violet")], "ping": [(0, "#fff381")], "download": [(0, "cyan")], "elapsed_time": [(0, "#1cbfff")]})
Control placeholders:
{elapsed}elapsed time state, eg False, True
Format placeholders:
-
{bytes_sent}bytes sent during test (in MB), eg 52.45 -
{bytes_received}bytes received during test (in MB), eg 70.23 -
{client_country}client country code, eg FR -
{client_ip}client ip, eg 78.194.13.7 -
{client_isp}client isp, eg Free SAS -
{client_ispdlavg}client isp download average, eg 0 -
{client_isprating}client isp rating, eg 3.7 -
{client_ispulavg}client isp upload average, eg 0 -
{client_lat}client latitude, eg 48.8534 -
{client_loggedin}client logged in, eg 0 -
{client_lon}client longitude, eg 2.3487999999999998 -
{client_rating}client rating, eg 0 -
{download}download speed (in MB), eg 20.23 -
{elapsed_time}elapsed time since speedtest start -
{ping}ping time in ms to speedtest server -
{server_cc}server country code, eg FR -
{server_country}server country, eg France -
{server_d}server distance, eg 2.316599376968091 -
{server_host}server host, eg speedtest.telecom-paristech.fr:8080 -
{server_id}server id, eg 11977 -
{share}share, eg share url -
{timestamp}timestamp, eg 2018-08-30T16:27:25.318212Z -
{server_lat}server latitude, eg 48.8742 -
{server_latency}server latency, eg 8.265 -
{server_lon}server longitude, eg 2.3470 -
{server_name}server name, eg Paris -
{server_sponsor}server sponsor, eg Télécom ParisTech -
{server_url}server url, eg http://speedtest.telecom-paristech... -
{upload}upload speed (in MB), eg 20.23
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
speedtest-cliCommand line interface for testing Internet bandwidth
Examples:
# show detailed elapsed_time|download/upload
speedtest {
format = "speedtest[\?soft ][\?if=elapsed [\?color=darkgray [time "
format += "[\?color=elapsed_time {elapsed_time} s]]]|[\?color=darkgray "
# format += "ping [\?color=ping {ping} ms] "
format += "download [\?color=download {download}Mbps] "
format += "upload [\?color=upload {upload}Mbps]]]"
}
# show everything
speedtest {
format = "speedtest[\?soft ][\?color=darkgray "
format += "[time [\?color=elapsed_time {elapsed_time} s]][\?soft ]"
format += "[ping [\?color=ping {ping} ms] "
format += "download [\?color=download {download}Mbps] "
format += "upload [\?color=upload {upload}Mbps]]]"
}
# minimal
speedtest {
format = "speedtest[\?soft ][\?if=elapsed "
format += "[\?color=elapsed_time {elapsed_time}]|"
# format += "[\?color=ping {ping}] "
format += "[[\?color=download {download}] [\?color=upload {upload}]]]"
}
# don't hide data on reset
speedtest {
format = "speedtest[\?soft ][\?color=darkgray time "
format += "[\?color=elapsed_time {elapsed_time} s] "
# format += "ping [\?color=ping {ping} ms] "
format += "download [\?color=download {download}Mbps] "
format += "upload [\?color=upload {upload}Mbps]]"
}
# don't hide data on reset, minimal
speedtest {
format = "speedtest[\?soft ][[\?color=elapsed_time {elapsed_time}] "
# format += "[\?color=ping {ping}] "
format += "[\?color=download {download}] [\?color=upload {upload}]]"
}
author Cyril Levis (@cyrinux)
spotify



Display song currently playing in Spotify.
Configuration parameters:
-
button_nextbutton to switch to next song (default None) -
button_play_pausebutton to toggle play/pause (default None) -
button_previousbutton to switch to previous song (default None) -
cache_timeouthow often to update the bar (default 5) -
dbus_clientUsed to override which app is used as a client for spotify. If you use spotifyd as a client, set this to 'org.mpris.MediaPlayer2.spotifyd' (default 'org.mpris.MediaPlayer2.spotify') -
formatsee placeholders below (default '{artist} : {title}') -
format_downdefine output if spotify is not running (default 'Spotify not running') -
format_stoppeddefine output if spotify is not playing (default 'Spotify stopped') -
replacementsspecify a list/dict of string placeholders to modify (default None)
Format placeholders:
-
{album}album name -
{artist}artiste name (first one) -
{playback}state of the playback: Playing, Paused -
{time}time duration of the song -
{title}name of the song
Color options:
-
color_offlineSpotify is not running, defaults to color_bad -
color_pausedSong is stopped or paused, defaults to color_degraded -
color_playingSong is playing, defaults to color_good
Requires:
-
python-dbusto access dbus in python -
spotifya proprietary music streaming service
Examples:
spotify {
button_next = 4
button_play_pause = 1
button_previous = 5
format = "{title} by {artist} -> {time}"
format_down = "no Spotify"
# sanitize
replacements = {
"album": [("\s?[\(\[\-,;/][^)\],;/]*?(bonus|demo|edit|explicit|extended|feat|mono|remaster|stereo|version)[^)\],;/]*[\)\]]?", "")],
"title": [("\s?[\(\[\-,;/][^)\],;/]*?(bonus|demo|edit|explicit|extended|feat|mono|remaster|stereo|version)[^)\],;/]*[\)\]]?", "")]
}
}
author Pierre Guilbert, Jimmy Garpehäll, sondrele, Andrwe
sql

Display data stored in MariaDB, MySQL, sqlite3, and hopefully more.
Configuration parameters:
-
cache_timeoutrefresh cache_timeout for this module (default 10) -
databasespecify database name to import (default None) -
formatdisplay format for this module (default '{format_row}') -
format_rowdisplay format for SQL rows (default None) -
format_separatorshow separator if more than one (default ' ') -
parametersspecify connection parameters to use (default None) -
queryspecify command to query a database (default None) -
thresholdsspecify color thresholds to use (default [])
Format placeholders:
-
{row}number of SQL rows -
{format_row}format for SQL rows Parameters can be placeholders too, eg {host}, {passd}
Format_row placeholders:
{field}placeholders will have the value returned by the query for the field
Color thresholds:
-
formatrow: print a color based on the number of SQL rows -
format_rowfield: print a color based on the value offieldplaceholder
Requires:
-
mariadbfast sql database server, drop-in replacement for mysql -
mysql-pythonmysql support for python -
sqlitea c library that implements an sql database engine
Examples:
# specify database name to import
sql {
database = 'sqlite3' # from sqlite3 import connect
database = 'MySQLdb' # from MySQLdb import connect
database = '...' # from ... import connect
}
# specify connection parameters to use
http://mysql-python.sourceforge.net/MySQLdb.html#functions-and-attributes
https://docs.python.org/3/library/sqlite3.html#module-functions-and-constants
sql {
name = 'MySQLdb'
format = '{host} {passd} ...'
parameters = {
'host': 'host',
'passwd': 'password',
'...': '...',
}
}
# specify command to query a database
sql {
query = 'SHOW SLAVE STATUS'
query = 'SELECT * FROM cal_todos'
query = '...'
}
# display number of seconds behind master with MySQLdb
sql {
database = 'MySQLdb'
format_row = '\?color=seconds_behind_master {host} is '
format_row += '[{seconds_behind_master}s behind|\?show master]'
parameters = {
'host': 'localhost',
'passwd': '********'
}
query = 'SHOW SLAVE STATUS'
thresholds = [
(0, 'deepskyblue'), (100, 'good'), (300, 'degraded'), (600, 'bad')
]
}
# display thunderbird tasks with sqlite3
sql {
database = 'sqlite3'
format_row = '{title}'
format_separator = ', '
query = 'SELECT * FROM cal_todos'
parameters = '~/.thunderbird/user.default/calendar-data/local.sqlite'
}
author cereal2nd
license BSD
static_string

Display static text.
Configuration parameters:
formatdisplay format for this module (default 'Hello, world!')
author frimdo ztracenastopa@centrum.cz
sway_idle

Display sway inhibit idle status.
This Module shows an indicator, if an idle is inhibited by an inhibitor.
For more information about inhibit idle see man 5 sway
Configuration parameters:
-
cache_timeoutHow often we refresh this module in seconds (default 1) -
formatDisplay format (default 'Inhibit Idle: {inhibit_idle}')
Format placeholders:
{inhibit_idle}Returns 'True' if idle is inhibited, 'False' else.
Example:
sway_idle {
format = "Inhibit Idle: [\?if=inhibit_idle=True True]|False"
}
author Valentin Weber <valentin+py3status@wv2.ch>
license BSD
sysdata

Display system RAM, SWAP and CPU utilization.
Configuration parameters:
-
cache_timeouthow often we refresh this module in seconds (default 10) -
cpu_freq_unitthe unit of CPU frequency to use in report, case insensitive. ['kHz', 'MHz', 'GHz'] (default 'GHz') -
cpu_temp_unitspecify cpu temperature unit ['C', 'F', 'K'] (default 'C') -
cpusspecify a list of CPUs to use (default ['cpu?'])* -
formatoutput format string (default '[\?color=cpu_used_percent CPU: {cpu_used_percent}%], ' '[\?color=mem_used_percent Mem: {mem_used}/{mem_total} ' '{mem_total_unit} ({mem_used_percent}%)]') -
format_cpudisplay format for CPUs (default '\?color=used_percent {used_percent}%') -
format_cpu_separatorshow separator if more than one (default ' ') -
mem_unitthe unit of memory to use in report, case insensitive. ['dynamic', 'KiB', 'MiB', 'GiB'] (default 'GiB') -
swap_unitthe unit of swap to use in report, case insensitive. ['dynamic', 'KiB', 'MiB', 'GiB'] (default 'GiB') -
thresholdsspecify color thresholds to use (default [(0, "good"), (40, "degraded"), (75, "bad")])
Format placeholders:
-
{cpu_freq_avg}average CPU frequency across all cores -
{cpu_freq_max}highest CPU clock frequency -
{cpu_freq_unit}unit for frequency -
{cpu_temp}cpu temperature -
{cpu_temp_unit}cpu temperature unit -
{cpu_used_percent}cpu used percentage -
{format_cpu}format for CPUs -
{load1}load average over the last minute -
{load5}load average over the five minutes -
{load15}load average over the fifteen minutes -
{mem_total}total memory -
{mem_total_unit}memory total unit, eg GiB -
{mem_used}used memory -
{mem_used_unit}memory used unit, eg GiB -
{mem_used_percent}used memory percentage -
{mem_free}free memory -
{mem_free_unit}free memory unit, eg GiB -
{mem_free_percent}free memory percentage -
{swap_total}total swap -
{swap_total_unit}swap total memory unit, eg GiB -
{swap_used}used swap -
{swap_used_unit}swap used memory unit, eg GiB -
{swap_used_percent}used swap percentage -
{swap_free}free swap -
{swap_free_unit}free swap unit, eg GiB -
{swap_free_percent}free swap percentage
format_cpu placeholders:
-
{name}cpu name, eg cpu, cpu0, cpu1, cpu2, cpu3 -
{used_percent}cpu used percentage, eg 88.99
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
lm_sensorsa tool to read cpu temperature
Examples:
# specify a list of cpus to use. see "grep cpu /proc/stat"
sysdata {
cpus = [] # avg + all CPUs
cpus = ['cpu'] # avg # same as {cpu_used_percent}
cpus = ['cpu0', 'cpu2'] # selective CPUs # full
cpus = ['cpu?*'] # all CPUs # fnmatch (default)
}
# display per cpu percents
sysdata {
format = "{format_cpu}"
format_cpu = "{name} [\?color=used_percent {used_percent}%]"
}
# customize per cpu padding, precision, etc
sysdata {
format = "CPU {format_cpu}"
format_cpu = "[\?min_length=4 [\?color=used_percent {used_percent:.0f}%]]"
}
# display per cpu histogram
sysdata {
format = "CPU Histogram [\?color=cpu_used_percent {format_cpu}]"
format_cpu = "[\?if=used_percent>80 ⡇|[\?if=used_percent>60 ⡆"
format_cpu += "|[\?if=used_percent>40 ⡄|[\?if=used_percent>20 ⡀"
format_cpu += "|⠀]]]]"
format_cpu_separator = ""
thresholds = [(0, "good"), (60, "degraded"), (80, "bad")]
cache_timeout = 1
}
author Shahin Azad <ishahinism at Gmail>, shrimpza, guiniol, JackDoan <me at jackdoan dot com>, farnoy
systemd



Display status of a service on your system.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 5) -
formatdisplay format for this module (default '\?if=!hide {unit}: {status}') -
hide_extensionsuppress extension of the systemd unit (default False) -
hide_if_defaultsuppress the output if the systemd unit is in default state 'off' the output is never suppressed 'on' the output is suppressed if the unit is (enabled and active) or (disabled and inactive) 'active' the output is suppressed if the unit is active 'inactive' the output is suppressed if the unit is inactive (default 'off') -
unitspecify the systemd unit to use (default 'dbus.service') -
userspecify if this is a user service (default False)
Format placeholders:
-
{unit}unit name, eg sshd.service -
{status}unit status, eg active, inactive, not-found
Color options:
-
color_goodunit active -
color_badunit inactive -
color_degradedunit not-found
Requires:
-
dbus-pythonto interact with dbus -
pygobjectwhich in turn requires libcairo2-dev, libgirepository1.0-dev
Examples:
# show the status of vpn service
# left click to start, right click to stop
systemd vpn {
unit = 'vpn.service'
on_click 1 = 'exec sudo systemctl start vpn'
on_click 3 = 'exec sudo systemctl stop vpn'
}
author Adrian Lopez <adrianlzt@gmail.com>
license BSD
systemd_suspend_inhibitor


Turn on and off systemd suspend inhibitor.
Configuration parameters:
-
formatdisplay format for this module (default '[\?color=state SUSPEND [\?if=state OFF|ON]]') -
lock_typesspecify state to inhibit, comma separated list https://www.freedesktop.org/wiki/Software/systemd/inhibit/ (default ['handle-lid-switch', 'idle', 'sleep']) -
thresholdsspecify color thresholds to use (default [(True, 'bad'), (False, 'good')])
Format placeholders:
{state}systemd suspend inhibitor state, eg True, False
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
author Cyrinux https://github.com/cyrinux
license BSD
taskwarrior

Display tasks currently running in taskwarrior.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 5) -
filterspecify one or more criteria to use (default 'status:pending') -
formatdisplay format for this module (default '{descriptions}') -
reportreport to export, for TaskWarrior 2.6.0 and above (default '')
Format placeholders:
-
{descriptions}descriptions of active tasks -
{tasks}number of active tasks
Requires task: https://taskwarrior.org/download/
author James Smith https://jazmit.github.io
license BSD
thunderbird_todos

Display number of todos and more for Thunderbird.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 60) -
formatdisplay format for this module (default '{format_todo}') -
format_datetimespecify strftime formatting to use (default {}) -
format_separatorshow separator if more than one (default ' ') -
format_tododisplay format for todos (default '\?if=!todo_completed {title}') -
profilespecify a profile path, otherwise first available profile eg '~/.thunderbird/abcd1234.default' (default None) -
sortspecify a tuple, eg ('placeholder_name', reverse_boolean) to sort by; excluding placeholder indexes (default ()) -
thresholdsspecify color thresholds to use (default [])
Format placeholders:
-
{todo_total}eg 5 -
{todo_completed}eg 2 -
{todo_incompleted}eg 3 -
{format_todo}format for todos
format_todo placeholders:
-
{index_total}eg 1, 2, 3 -
{index_completed}eg 1, 2, 3 -
{index_incompleted}eg 1, 2, 3 -
{alarm_last_ack}eg None, 1513291952000000 -
{cal_id}eg 966bd855-5e71-4168-8072-c98f244ed825 -
{flags}eg 4, 276 -
{ical_status}eg None, IN-PROCESS, COMPLETED -
{id}eg 87e9bfc9-eaad-4aa6-ad5f-adbf6d7a11a5 -
{last_modified}eg 1513276147000000 -
{offline_journal}eg None -
{priority}eg None, # None=None, 0=None, 1=High, 5=Normal, 9=Low -
{privacy}eg None, CONFIDENTIAL -
{recurrence_id}eg None -
{recurrence_id_tz}eg None, UTC -
{time_created}eg 1513276147000000 -
{title}eg New Task -
{todo_complete}eg None -
{todo_completed}eg None, 1513281528000000 -
{todo_completed_tz}eg None, UTC -
{todo_due}eg None, 1513292400000000 -
{todo_due_tz}eg None, America/Chicago -
{todo_entry}eg None, 1513292400000000 -
{todo_entry_tz}eg None, America/Chicago -
{todo_stamp}eg 1513276147000000
format_datetime placeholders: KEY: alarm_last_ack, last_modified, time_created, todo, todo_completed, todo_entry, todo_stamp VALUE: % strftime characters to be translated, eg '%b %d' ----> 'Dec 14' SEE EXAMPLE BELOW: "show incompleted titles with last modified time"
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
thunderbirdstandalone mail and news reader
Examples:
# show number of incompleted titles
thunderbird_todos {
format = '{todo_incompleted} incompleted todos'
}
# show rainbow number of incompleted titles
thunderbird_todos {
format = '\?color=todo_incompleted {todo_incompleted} todos'
thresholds = [
(1, '#bababa'), (2, '#ffb3ba'), (3, '#ffdfba'), (4, '#ffffba'),
(5, '#baefba'), (6, '#baffc9'), (7, '#bae1ff'), (8, '#bab3ff')
]
}
# show rainbow incompleted titles
thunderbird_todos {
format_todo = '\?if=!todo_completed&color=index_incompleted {title}'
thresholds = [
(1, '#bababa'), (2, '#ffb3ba'), (3, '#ffdfba'), (4, '#ffffba'),
(5, '#baefba'), (6, '#baffc9'), (7, '#bae1ff'), (8, '#bab3ff')
]
}
# show incompleted titles with last modified time
thunderbird_todos {
format_todo = '\?if=!todo_completed {title} {last_modified}'
format_datetime = {
'last_modified': '\?color=degraded last modified %-I:%M%P'
}
}
# show 'No todos'
thunderbird_todos {
format = '{format_todo}|No todos'
}
# show completed titles and incompleted titles
thunderbird_todos {
format_todo = '\?if=todo_completed&color=good {title}|\?color=bad {title}'
}
# make todo blocks
thunderbird_todos {
format = 'TODO {format_todo}'
format_todo = '\?if=todo_completed&color=good ▰|\?color=bad ▰'
format_separator = ''
}
# display incompleted titles with any priority
thunderbird_todos {
format_todo = '\?if=!todo_completed [\?if=priority>0 {title}]'
}
# colorize titles based on priorities
thunderbird_todos {
format_todo = '\?if=!todo_completed [\?color=priority {title}]'
thresholds = [(0, None), (1, 'red'), (5, None), (9, 'deepskyblue')]
}
# sort todos
thunderbird_todos {
sort = ('last_modified', True) # sort by modified time: recent first
sort = ('priority', True) # sort by priority: high to low
sort = ('title', False) # sort by title: ABC to abc
}
# add your snippets here
thunderbird_todos {
format = '...'
}
author mrt-prodz, lasers
timer



A simple countdown timer.
This is a very basic countdown timer. You can change the timer length as well as pausing, restarting and resetting it. Currently this is more of a demo of a composite.
Each part of the timer can be changed independently hours, minutes, seconds using mouse buttons 4 and 5 (scroll wheel). Button 1 starts/pauses the countdown. Button 2 resets timer.
Configuration parameters:
-
formatdisplay format for this module (default 'Timer {timer}') -
soundplay sound file path when the timer ends (default None) -
timenumber of seconds to start countdown with (default 60)
Format placeholders:
{timer}display hours:minutes:seconds
author tobes
timewarrior



Track your time with Timewarrior.
Timewarrior is a time tracking utility that offers simple stopwatch features as well as sophisticated calendar-base backfill, along with flexible reporting. See https://taskwarrior.org/docs/timewarrior for more information.
Configuration parameters:
-
cache_timeoutrefresh interval for this module, otherwise auto (default None) -
filterspecify interval and/or tag to filter (default '1day') -
formatdisplay format for this module (default '[Timew {format_time}]|No Timew') -
format_datetimespecify strftime characters to format (default {}) -
format_durationdisplay format for time duration (default '\?not_zero [{days}d ][{hours}:]{minutes}:{seconds}') -
format_tagdisplay format for tags (default '\?color=state_tag {name}') -
format_tag_separatorshow separator if more than one (default ' ') -
format_timedisplay format for tracked times (default '[\?color=state_time [{format_tag} ]{format_duration}]') -
format_time_separatorshow separator if more than one (default ' ') -
thresholdsspecify color thresholds to use (default {'state_tag': [(0, 'darkgray'), (1, 'darkgray')], 'state_time': [(0, 'darkgray'), (1, 'degraded')]})
Format placeholders:
-
{format_time}format for tracked times -
{tracking}time tracking state, eg False, True
format_time placeholders:
-
{state}time tracking state, eg False, True -
{format_tag}format for tags -
{format_duration}format for time duration -
{start}start date, eg 20171021T010203Z -
{end}end date, eg 20171021T010203Z
format_tag placeholders:
{name}tag name, eg gaming, studying, gardening
format_datetime placeholders:
-
keystart, end -
valuestrftime characters, eg '%b %d' ----> 'Oct 06'
format_duration placeholders:
-
{days}days -
{hours}hours -
{minutes}minutes -
{seconds}seconds
Color thresholds:
-
format_timestate_time: print color based on the state of time tracking -
format_tagstate_tag: print color based on the state of time tracking
Requires:
timewfeature-rich time tracking utility
Recommendations:
We can refresh a module using py3-cmd command.
An excellent example of using this command in a function.
```
~/.{bash,zsh}{rc,_profile}
---------------------------
function timew () {
command timew "$@" && py3-cmd refresh timewarrior
}
```
With this, you can consider giving `cache_timeout` a much larger number,
eg 3600 (an hour), so the module does not need to be updated that often.
Examples:
# show times matching the filter, see documentation for more filters
timewarrior {
filter = ':day' # filter times not in 24 hours of current day
filter = '12hours' # filter times not in 12 hours of current time
filter = '5min' # filter times not in 5 minutes of current time
filter = '1sec' # filter times not in 1 second of current time
filter = '5pm to 11:59pm # filter times not in 5pm to 11:59pm range
}
# intervals
timewarrior {
# if you are printing other intervals too with '1day' filter or so,
# then you may want to add this too for better bar readability
format_time_separator = ', '
# you also can change the thresholds with different colors
thresholds = {
'state_tag': [(0, 'darkgray'), (1, 'degraded')],
'state_time': [(0, 'darkgray'), (1, 'degraded')],
}
}
# cache_timeout
timewarrior {
# auto refresh every 10 seconds when there is no active time tracking
# auto refresh every second when there is active time tracking
cache_timeout = None
# refresh every minute when there is no active time tracking
# refresh every second when there is active time tracking
cache_timeout = 60
# explicit refresh every 20 seconds when there is no active time tracking
# explicit refresh every 5 seconds when there is active time tracking
cache_timeout = (20, 5)
}
# add your snippets here
timewarrior {
format = "..."
}
author lasers
tor_rate

Display transfer rates of a tor instance.
Configuration parameters:
-
cache_timeoutAn integer specifying the cache life-time of the modules output in seconds (default 2) -
control_addressThe address on which the Tor daemon listens for control connections (default "127.0.0.1") -
control_passwordThe password to use for the Tor control connection (default None) -
control_portThe port on which the Tor daemon listens for control connections (default 9051) -
formatA string describing the output format for the module (default "↑ {up} ↓ {down}") -
format_valueA string describing how to format the transfer rates (default "[\?min_length=12 {rate:.1f} {unit}]") -
hide_socket_errorsHide errors connecting to Tor control socket (default False) -
rate_unitThe unit to use for the transfer rates (default "B/s") -
si_unitsA boolean value selecting whether or not to use SI units (default False)
Format placeholders:
-
{down}The incoming transfer rate -
{up}The outgoing transfer rate
format_value placeholders:
-
{rate}The current transfer-rate's value -
{unit}The current transfer-rate's unit
Requires:
stempython controller library for tor https://pypi.org/project/stem
Examples:
tor_rate {
cache_timeout = 10
format = "IN: {down} | OUT: {up}"
control_port = 1337
control_password = "TertiaryAdjunctOfUnimatrix01"
si_units = True
}
author Felix Morgner <felix.morgner@gmail.com>
license 3-clause-BSD
transmission




Display number of torrents and more.
Configuration parameters:
-
argumentsadditional arguments for the transmission-remote (default None) -
button_nextmouse button to switch next torrent (default None) -
button_previousmouse button to switch previous torrent (default None) -
button_runmouse button to run the command on current torrent (default [(1, '--start'), (2, '--verify'), (3, '--stop')]) -
cache_timeoutrefresh interval for this module (default 20) -
formatdisplay format for this module (default '{format_torrent}') -
format_separatorshow separator if more than one (default ' ') -
format_torrentdisplay format for torrents (default '[\?if=is_focused&color=bad X] {status} {id} {name} {done}%') -
thresholdsspecify color thresholds to use (default [])
Format placeholders:
-
{torrent}number of torrents -
{format_torrent}format for torrents -
{up}summary up traffic -
{down}summary down traffic -
{have}summary download
format_torrent placeholders:
-
{index}torrent index, eg 1 -
{id}torrent id, eg 2 -
{done}torrent percent, eg 100% -
{have}torrent download, 253 KB -
{eta}torrent estimated time, eg Done, 1 min, etc -
{up}torrent up traffic -
{down}torrent down traffic -
{ratio}torrent seed ratio -
{status}torrent status, eg Idle, Downloading, Stopped, Verifying, etc -
{name}torrent name, eg py3status-3.8.tar.gz
Color options:
color_badcurrent torrent
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
transmission-clifast, easy, and free bittorrent client (cli tools, daemon, web client)
Examples:
# add arguments
transmission {
# We use 'transmission-remote --list'
# See `transmission-remote --help' for more information.
# Not all of the arguments will work here.
arguments = '--auth username:password --port 9091'
}
# see 'man transmission-remote' for more buttons
transmission {
button_run = [
(1, '--start'),
(2, '--verify'),
(3, '--stop'),
(8, '--remove'),
(9, '--exit'),
]
}
# open web-based transmission client
transmission {
on_click 1 = 'exec xdg-open http://username:password@localhost:9091'
}
# add buttons
transmission {
button_next = 5
button_previous = 4
}
# see 'man transmission-remote' for more buttons
transmission {
# specify a script to run when a torrent finishes
on_click 9 = 'exec transmission-remote --torrent-done-script ~/file'
# use the alternate limits?
on_click 9 = 'exec transmission-remote --alt-speed'
on_click 10 = 'exec transmission-remote --no-alt-speed'
}
# show summary statistcs - up, down, have
transmission {
format = '{format_torrent}'
format += '[\?color=#ffccff [\?not_zero Up:{up}]'
format += '[\?not_zero Down:{down}][\?not_zero Have:{have}]]'
}
# add a format that sucks less than the default plain format
transmission {
format_torrent = '[\?if=is_focused&color=bad X ]'
format_torrent += '[[\?if=status=Idle&color=degraded {status}]'
format_torrent += '|[\?if=status=Stopped&color=bad {status}]'
format_torrent += '|[\?if=status=Downloading&color=good {status}]'
format_torrent += '|[\?if=status=Verifying&color=good {status}]'
format_torrent += '|\?color=degraded {status}]'
format_torrent += ' {name} [\?color=done {done}]'
}
# show percent thresholds
transmission {
format_torrent = '{name} [\?color=done {done}]'
thresholds = [(0, 'bad'), (1, 'degraded'), (100, 'good')]
}
# download the rainbow
transmission {
format_torrent = '[\?if=is_focused&color=bad X ]'
format_torrent += '{status} [\?color=index {name}] [\?color=done {done}%]'
thresholds = {
'done': [(0, '#ffb3ba'), (1, '#ffffba'), (100, '#baefba')],
'index': [
(1, '#ffb3ba'), (2, '#ffdfba'), (3, '#ffffba'),
(4, '#baefba'), (5, '#baffc9'), (6, '#bae1ff'),
(7, '#bab3ff')
]
}
}
author lasers
twitch


Display if a Twitch channel is currently streaming or not.
Configuration parameters:
-
cache_timeouthow often we refresh this module in seconds (default 60) -
client_idYour client id. Create your own key at https://dev.twitch.tv (default None) -
client_secretYour client secret. (default None) -
formatDisplay format when online (default "{display_name} is live!") -
format_offlineDisplay format when offline (default "{display_name} is offline.") -
format_tagTag formatting (default "{name}") -
localesList of locales to try for tag translations, eg. ["cs-cz", "en-uk", "en-us"]. If none is specified, auto-detect from environment, with a fallback to "en-us". (default []) -
stream_namename of streamer(twitch.tv/<stream_name>) (default None) -
tag_delimiterstring to write between tags (default " ") -
traceenable trace level debugging (default False)
Stream format placeholders:
-
{display_name}User's display name., eg Ultrabug -
{is_streaming}(bool) True if streaming, fields prefixed with stream_ are available. -
{tags}List of tags -
{user_id}User's id -
{user_login}User's login name, eg xisumavoid -
{user_display_name}(same as {display_name}) -
{user_type}"staff", "admin", "global_mod", or "" -
{user_broadcaster_type}"partner", "affiliate", or "". -
{user_description}User's channel description. -
{user_profile_image_url}URL of the user's profile image. -
{user_offline_image_url}URL of the user's offline image. -
{user_view_count}Total number of views of the user's channel. -
{user_created_at}Date when the user was created. -
{stream_id}Stream ID. -
{stream_game_id}ID of the game being played on the stream. -
{stream_game_name}Name of the game being played. -
{stream_title}Stream title. -
{stream_viewer_count}Number of viewers watching the stream at the time of last update. -
{stream_started_at}Stream start UTC timestamp. -
{stream_language}Stream language. A language value is either the ISO 639-1 two-letter code or “other”. -
{stream_thumbnail_url}Thumbnail URL of the stream. All image URLs have variable width and height. You can replace {width} and {height} with any values to get that size image -
{stream_is_mature}Indicates if the broadcaster has specified their channel contains mature content that may be inappropriate for younger audiences. -
{stream_runtime}(string) Stream runtime as a human readable, non-localized string. eg "3h 5m" -
{stream_runtime_seconds}(int) Stream runtime in seconds.
Tag format placeholders: (see locales) {name} The tag name {desc} The tag description
Color options:
-
color_badStream offline -
color_goodStream is live
Client ID: Example settings when creating your app at https://dev.twitch.tv
Name: <your_name>_py3status
OAuth Redirect URI: https://localhost
Application Category: Application Integration
author Alex Caswell horatioesf@virginmedia.com
author Julian Picht julian.picht@gmail.com
license BSD
uname

Display system information.
Configuration parameters:
formatdisplay format for this module (default '{system} {release}')
Format placeholders:
-
{system}system/OS name, e.g. 'Linux', 'Windows', or 'Java' -
{node}computer’s network name (may not be fully qualified!) -
{release}system’s release, e.g. '2.2.0' or 'NT' -
{version}system’s release version, e.g. '#3 on degas' -
{machine}machine type, e.g. 'x86_64' -
{processor}the (real) processor name, e.g. 'amdk6'
author ultrabug (inspired by ndalliard)
uptime

Display system uptime.
Configuration parameters:
formatdisplay format for this module (default 'up {days} days {hours} hours {minutes} minutes')
Format placeholders:
-
{decades}decades -
{years}years -
{weeks}weeks -
{days}days -
{hours}hours -
{minutes}minutes -
{seconds}secondsIf you don't use a placeholder, its value will be carried over to the next placeholder. For example, an uptime of 1 hour 30 minutes will give you 90 if {minutes} or 1:30 if {hours}:{minutes}.
You also can specify strftime characters to print system up since with or without placeholders. See
man strftimefor more information.
Examples:
# show uptime without zeroes
uptime {
format = 'up [\?if=weeks {weeks} weeks ][\?if=days {days} days ]
[\?if=hours {hours} hours ][\?if=minutes {minutes} minutes ]'
}
# show uptime in multiple formats using group module
group uptime {
format = "up {output}"
uptime {
format = '[\?if=weeks {weeks} weeks ][\?if=days {days} days ]
[\?if=hours {hours} hours ][\?if=minutes {minutes} minutes]'
}
uptime {
format = '[\?if=weeks {weeks}w ][\?if=days {days}d ]
[\?if=hours {hours}h ][\?if=minutes {minutes}m]'
}
uptime {
format = '[\?if=days {days}, ][\?if=hours {hours}:]
[\?if=minutes {minutes:02d}]'
}
}
# specify strftime characters to display system up since
uptime {
format = "{days}d {hours}:{minutes:02d}:{seconds:02d}"
format += ", up since %Y-%m-%d %H:%M:%S"
}
author Alexis "Horgix" Chotard <alexis.horgix.chotard@gmail.com>, Volkov "BabyWolf" Semjon <Volkov.BabyWolf.Semjon@gmail.com>
license BSD
usbguard

Allow or Reject newly plugged USB devices using USBGuard.
Configuration parameters:
-
formatdisplay format for this module (default '{format_device}') -
format_button_allowdisplay format for allow button filter (default '[Allow]') -
format_button_rejectdisplay format for reject button filter (default '[Reject]') -
format_devicedisplay format for USB devices (default '{format_button_reject} [{name}|{usb_id}] {format_button_allow}') -
format_device_separatorshow separator if more than one (default ' ')
Format placeholders:
-
{device}number of USB devices -
{format_device}format for USB devices
format_device:
-
{format_button_allow}button to allow the device -
{format_button_reject}button to reject the device -
{id}eg 1, 2, 5, 6, 7, 22, 23, 33 -
{policy}eg allow, block, reject -
{usb_id}eg 054c:0268 -
{name}eg Poker II, PLAYSTATION(R)3 Controller -
{serial}eg 0000:00:00.0 -
{port}eg usb1, usb2, usb3, 1-1, 4-1.2.1 -
{interface}eg 00:00:00:00 00:00:00 00:00:00 -
{hash}eg ihYz60+8pxZBi/cm+Q/4Ibrsyyzq/iZ9xtMDAh53sng -
{parent_hash}eg npSDT1xuEIOSLNt2RT2EbFrE8XRZoV29t1n7kg6GxXg
Requires:
-
python-gobjectPython Bindings for GLib/GObject/GIO/GTK+ -
usbguardUSB device authorization policy framework
author @cyrinux, @maximbaz
license BSD
vnstat

Display vnstat statistics.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 180) -
formatdisplay format for this module (default '{total}') -
initial_multiset to 1 to disable first bytes (default 1024) -
left_align(default 0) -
multiplier_topif value is greater, divide it with unit_multi and get next unit from units (default 1024) -
precision(default 1) -
statistics_typed for daily, m for monthly (default 'd') -
thresholdsthresholds to use for color changes (default []) -
unit_multivalue to divide if rate is greater than multiplier_top (default 1024)
Format placeholders:
-
{down}download -
{total}total -
{up}upload
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
vnstata console-based network traffic monitor
Examples:
# colorize thresholds
vnstat {
format = '[\?color=total {total}]'
thresholds = [
(838860800, "degraded"), # 838860800 B -> 800 MiB
(943718400, "bad"), # 943718400 B -> 900 MiB
]
}
author shadowprince
license Eclipse Public License
volume_status


Volume control.
Configuration parameters:
-
blocksa string, where each character represents a volume level (default "_▁▂▃▄▅▆▇█") -
button_downbutton to decrease volume (default 5) -
button_mutebutton to toggle mute (default 1) -
button_upbutton to increase volume (default 4) -
cache_timeouthow often we refresh this module in seconds. (default 10) -
cardCard to use. amixer supports this. (default None) -
channelchannel to track. Default value is backend dependent. (default None) -
commandChoose between "amixer", "pamixer" or "pactl". If None, try to guess based on available commands. (default None) -
deviceDevice to use. Defaults value is backend dependent. "aplay -L", "pactl list sinks short", "pamixer --list-sinks" (default None) -
formatFormat of the output. (default '[\?if=is_input 😮|♪]: {percentage}%') -
format_mutedFormat of the output when the volume is muted. (default '[\?if=is_input 😶|♪]: muted') -
is_inputIs this an input device or an output device? (default False) -
max_volumeAllow the volume to be increased past 100% if available. pactl and pamixer supports this. (default 120) -
thresholdsThreshold for percent volume. (default [(0, 'bad'), (20, 'degraded'), (50, 'good')]) -
volume_deltaPercentage amount that the volume is increased or decreased by when volume buttons pressed. (default 5)
Format placeholders:
-
{icon}Character representing the volume level, as defined by the 'blocks' -
{percentage}Percentage volume
Color options:
color_mutedVolume is muted, if not supplied color_bad is used if set toNonethen the threshold color will be used.
Requires:
-
alsa-utilsan alternative implementation of linux sound support -
pamixerpulseaudio command-line mixer like amixer
Notes: If you are changing volume state by external scripts etc and want to refresh the module quicker than the i3status interval, send a USR1 signal to py3status in the keybinding. Example: killall -s USR1 py3status
Examples:
# Set thresholds to rainbow colors
volume_status {
thresholds = [
(0, "#FF0000"),
(10, "#E2571E"),
(20, "#FF7F00"),
(30, "#FFFF00"),
(40, "#00FF00"),
(50, "#96BF33"),
(60, "#0000FF"),
(70, "#4B0082"),
(80, "#8B00FF"),
(90, "#FFFFFF")
]
}
author <Jan T> <jans.tuomi@gmail.com>
license BSD
vpn_status


Drop-in replacement for i3status run_watch VPN module.
Expands on the i3status module by displaying the name of the connected vpn using pydbus. Asynchronously updates on dbus signals unless check_pid is True.
Configuration parameters:
-
cache_timeoutHow often to refresh in seconds when check_pid is True. (default 10) -
check_pidIf True, act just like the default i3status module. (default False) -
formatFormat of the output. (default 'VPN: {format_vpn}|VPN: no') -
format_vpndisplay format for vpns (default '{name}') -
format_vpn_separatorshow separator if more than one VPN (default ', ') -
pidfileSame as i3status pidfile, checked when check_pid is True. (default '/sys/class/net/vpn0/dev_id')
Format placeholders:
{format_vpn}format for VPNs
Format VPN placeholders:
-
{name}The name and/or status of the VPN. -
{ipv4}The IPv4 address of the VPN -
{ipv6}The IPv6 address of the VPN
Color options:
-
color_badVPN connected -
color_goodVPN down
Requires:
-
dbus-pythonto interact with dbus -
pygobjectwhich in turn requires libcairo2-dev, libgirepository1.0-dev
author Nathan Smith <nathan AT praisetopia.org>
wanda_the_fish



Display a fortune-telling, swimming fish.
Wanda has no use what-so-ever. It only takes up disk space and compilation time, and if loaded, it also takes up precious bar space, memory, and cpu cycles. Anybody found using it should be promptly sent for a psychiatric evaluation.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 0) -
formatdisplay format for this module (default '{nomotion}[{fortune} ]{wanda}{motion}') -
fortune_timeoutrefresh interval for fortune (default 60)
Format placeholders:
-
{fortune}one of many aphorisms or vague prophecies -
{wanda}name of one of the most commonly kept freshwater aquarium fish -
{motion}biologically propelled motion through a liquid medium -
{nomotion}opposite behavior of motion to prevent modules from shifting
Optional:
fortune-modthe fortune cookie program from bsd games
Examples:
# disable motions when not in use
wanda_the_fish {
format = '[\?if=fortune {nomotion}][{fortune} ]'
format += '{wanda}[\?if=fortune {motion}]'
}
# no updates, no motions, yes fortunes, you click
wanda_the_fish {
format = '[{fortune} ]{wanda}'
cache_timeout = -1
}
# wanda moves, fortunes stays
wanda_the_fish {
format = '[{fortune} ]{nomotion}{wanda}{motion}'
}
# wanda is swimming too fast, slow down wanda
wanda_the_fish {
cache_timeout = 2
}
author lasers
watson

Display the current status of the watson time-tracking tool.
Configuration parameters:
-
cache_timeoutNumber of seconds before state is re-read (default 10) -
formatThe format for module output. (default 'Project {project}{tag_str} started') -
state_filePath to the file which watson uses to track its own state (default '~/.config/watson/state')
Format placeholders:
-
{project}Name of the active project -
{tag_str}String-representation of the list of active tags
Requires:
https://github.com/TailorDev/Watsoncommandline time tracking tool
author Markus Sommer (https://github.com/CryptoCopter)
license BSD
weather_owm


Display ultimately customizable weather.
This module allows you to specify an icon for nearly every weather scenario imaginable. The default configuration options lump many of the icons into a few groups, and due to the limitations of UTF-8, this is really as expressive as it gets.
This module uses OpenWeatherMap API (https://openweathermap.org).
Requires a 3.0 API key for OpenWeatherMap (OWM) with a subscription which this module will try as hard as it can to stay under the free tier limit.
Setting location or city allows you to specify the location for the weather
you want displaying.
I would highly suggest you install an additional font, such as the incredible (and free!) Weather Icons font (https://erikflowers.github.io/weather-icons), which has icons for most weather scenarios. But, this will still work with the i3bar default font, Deja Vu Sans Mono font, which has Unicode support. You can see the (limited) weather icon support within Unicode in the defaults.
For more information, see the documentation (https://openweathermap.org/weather-conditions) on what weather conditions are supported. See the configuration options for how to specify each weather icon.
Configuration parameters:
-
api_keyYour OpenWeatherMap API key See https://openweathermap.org/appid. Required! (default None) -
cache_timeoutThe time between API polling in seconds It is recommended to keep this at a higher value to avoid rate limiting with the API's. (default 1800) -
cityThe city to display for location information. If set, implicitly disables the Geo API for determining city name. (default None) -
countryThe country to display for location information. If set, implicitly disables the Geo API for determining country name. (default None) -
forecast_daysNumber of days to include in the forecast, including today (regardless of the 'forecast_include_today' flag) (default 3) -
forecast_include_todayInclude today in the forecast? (Boolean) (default False) -
formatHow to display the weather This also dictates the type of forecast. The placeholders here refer to the format_[...] variables found below. Available placeholders: icon, city, clouds, rain, snow, wind, humidity, pressure, temperature, sunrise, sunset, main, description, forecast (default '{city} {icon} {temperature}[ {rain}], {description} {forecast}') -
format_cloudsFormatting for cloud coverage (percentage) Available placeholders: icon, coverage (default '{icon} {coverage}%') -
format_forecastFormatting for future forecasts Available placeholders: See 'format' This is similar to the 'format' field, but contains information for future weather. Notably, this does not include information about sunrise or sunset times. (default '{icon}') -
format_forecast_separatorSeparator between entries in the forecast (default ' ') -
format_humidityFormatting for humidity (percentage) Available placeholders: icon, humidity (default '{icon} {humidity}%') -
format_pressureFormatting for atmospheric pressure Available placeholders: icon, pressure, sea_level (default '{icon} {pressure} hPa') -
format_rainFormatting for rain volume over the past 3 hours Available placeholders: icon, amount (default '[\?if=amount {icon} {amount:.0f} {unit}]') -
format_snowFormatting for snow volume over the past 3 hours Available placeholders: icon, amount (default '[\?if=amount {icon} {amount:.0f} {unit}]') -
format_sunriseFormatting for sunrise time Note that this format accepts strftime/strptime placeholders to populate the output with the time information. Available placeholders: icon (default '{icon} %-I:%M %p') -
format_sunsetFormatting for sunset time This format accepts strftime/strptime placeholders to populate the output with the time information. Available placeholders: icon (default '{icon} %-I:%M %p') -
format_temperatureFormatting for temperature Available placeholders: current, icon, max, min (default '{icon} [\?color=all {current:.0f}°{unit}]') -
format_windFormatting for wind degree and speed The 'gust' option represents the speed of wind gusts in the wind unit. Available placeholders: icon, degree, speed, gust, direction (default '[\?if=speed {icon} {speed:.0f} {unit}]') -
icon_atmosphereIcon for atmospheric conditions, like fog, smog, etc. (default '🌫') -
icon_cloudIcon for clouds (default '☁') -
icon_extremeIcon for extreme weather (default '⚠') -
icon_humidityIcon for humidity (default '●') -
icon_pressureIcon for pressure (default '◌') -
icon_rainIcon for rain (default '🌧') -
icon_snowIcon for snow (default '❄') -
icon_sunIcon for sunshine (default '☼') -
icon_sunriseIcon for sunrise (default '⇑') -
icon_sunsetIcon for sunset (default '⇓') -
icon_temperatureIcon for temperature (default '○') -
icon_thunderstormIcon for thunderstorms (default '⛈') -
icon_windIcon for wind or breeze (default '☴') -
iconsA dictionary relating weather code to icon See https://openweathermap.org/weather-conditions for a complete list of supported icons. This will fall-back to the listed icon if there is no specific icon present. However, options included here take precedent over the above 'icon_{...}' options. There are multiple ways to specify individual icons based on the id:- Use the key '601' to reference the condition with id = 601 (snow)
- Use the key '230_232' to reference a span of conditions inclusive, in this case conditions (230, 231, 232) (thunderstorm with drizzle) (default None)
-
langAn ISO 639-1 code for your language (two letters) (default 'en') -
locationA tuple of floats describing the desired weather location The tuple should follow the form (latitude, longitude), and if set, implicitly disables the Geo API for determining location. (default None) -
thresholdsConfigure temperature colors based on limits The numbers specified inherit the unit of the temperature as configured. The default below is intended for Fahrenheit. If the set value is empty or None, the feature is disabled. You can specify this parameter using a dictionary:- Keys are names. You have the option of 'current', 'min', 'max', or 'all' to specify a threshold. The first three are tied to the various temperature values, the last sets the same threshold for all outputs. If both 'all' and one of the first three are set (lets say 'min' for this example), the threshold will default to be the value in 'min', not 'all'. This goes for any configuration
- The values are lists of pairs, with temperature (in the configured unit) as the first and the color as the second
- To use the thresholds color, place '\?color=all' in the formatting string for temperature, replacing 'all' with any of the valid threshold names for different coloring effects
- To have smooth transitions between colors, consider setting the 'gradients' configuration parameter to 'True', either in the global configuration, or in the module configuration! (default {'all': [(-100, '#0FF'), (0, '#00F'), (50, '#0F0'), (150, '#FF0')]})
-
unit_rainUnit for rain fall When specified, a unit may be any combination of upper and lower case, such as 'Ft', and still be considered valid as long as it is in the below options. Options: mm, cm, in (default 'in') -
unit_snowUnit for snow fall Options: mm, cm, in (default 'in') -
unit_temperatureUnit for temperature Options: c, f, k (default 'F') -
unit_windUnit for wind speed Options: fsec, msec, mph, kmh, knot (default 'mph')
Format placeholders:
-
{icon}The icon associated with a formatting section -
format_clouds -
{coverage}Cloud coverage percentage -
format_humidity -
{humidity}Humidity percentage -
format_pressure -
{pressure}Current atmospheric pressure in Pascals -
{sea_level}Sea-level atmospheric pressure in Pascals. -
format_rain -
{amount}Rainfall in the specified unit -
{unit}The unit specified -
format_snow -
{amount}Snowfall in the specified unit -
{unit}The unit specified -
format_temperature -
{current}Current temperature -
{max}Maximum temperature in the configured unit -
{min}Minimum temperature -
{unit}The unit specified -
format_wind -
{degree}Current wind heading -
{direction}Letter reprents direction e.g. N,NE,E etc -
{gust}Wind gusts speed in the specified unit -
{speed}Wind speed -
{unit}The unit specified format only: -
{city}The name of the city where the weather is -
{country}The name of the country where the weather is -
{forecast}Output of format_forecast format, format_forecast: -
{clouds}Output of format_clouds -
{description}Natural description of the current weather -
{humidity}Output of format_humidity -
{main}Short description of the current weather -
{pressure}Output of format_pressure -
{snow}Output of format_snow -
{sunrise}Output of format_sunrise -
{sunset}Output of format_sunset -
{temperature}Output of format_temperature -
{wind}Output of format_wind
Examples:
# change icons
weather_owm {
api_key = <my api key>
icons = {
'200': "☔"
'230_232': "🌧"
}
}
# set a city
weather_owm {
api_key = <my api key>
city = 'London'
}
# set a location
weather_owm {
api_key = <my api key>
location = (48.9342, 2.3548) # Saint-Denis
}
author alexoneill
@licence MIT
whatismyip



Display public IP address and online status.
Configuration parameters:
-
button_refreshmouse button to refresh this module (default 2) -
button_togglemouse button to toggle between states (default 1) -
cache_timeouthow often we refresh this module in seconds (default 60) -
expecteddefine expected values for format placeholders, and usecolor_degradedto show the output of this module if any of them does not match the actual value. This should be a dict eg {'country': 'France'} (default None) -
formatavailable placeholders are {ip} and {country}, as well as any other key in JSON fetched fromurl_geo(default '{ip}') -
hide_when_offlinehide the module output when offline (default False) -
icon_offwhat to display when offline (default '■') -
icon_onwhat to display when online (default '●') -
modedefault mode to display is 'ip' or 'status' (click to toggle) (default 'ip') -
url_geoIP to check for geo location (must output json) (default 'https://ifconfig.co/json')
Format placeholders:
-
{icon}eg ●, ■ -
{country}eg France -
{country_iso}eg FR -
{ip}eg 123.45.67.890 -
{ip_decimal}eg 1234567890 -
{city}eg Paris any other key in JSON fetched fromurl_geo
Color options:
-
color_badOffline -
color_degradedOutput is unexpected (IP/country mismatch, etc.) -
color_goodOnline
Examples:
# ip choices
whatismyip {
url_geo = "https://ifconfig.co/json"
# url_geo = "https://api.ip2location.io"
# url_geo = "https://ipinfo.io/json"
# url_geo = "http://ip-api.com/json"
}
author ultrabug, Cyril Levis (@cyrinux)
whoami

Display logged-in username.
Configuration parameters:
formatdisplay format for this module (default '{username}')
Format placeholders:
-
{hostname}display current hostname -
{username}display current username
Inspired by i3 FAQ: https://faq.i3wm.org/question/1618/add-user-name-to-status-bar.1.html
author ultrabug
wifi

Display WiFi bit rate, quality, signal and SSID using iw.
Configuration parameters:
-
bitrate_badBad bit rate in Mbit/s (default 26) -
bitrate_degradedDegraded bit rate in Mbit/s (default 53) -
blocksa string, where each character represents quality level (default "_▁▂▃▄▅▆▇█") -
cache_timeoutUpdate interval in seconds (default 10) -
devicespecify name or MAC address of device to use, otherwise auto (default None) -
down_colorOutput color when disconnected, possible values: "good", "degraded", "bad" (default "bad") -
formatDisplay format for this module (default 'W: {bitrate} {bitrate_unit} {signal_percent}% {ssid}|W: down') -
signal_badBad signal strength in percent (default 29) -
signal_degradedDegraded signal strength in percent (default 49) -
thresholdsspecify color thresholds to use (default [])
Format placeholders:
-
{bitrate}Display bitrate -
{bitrate_unit}Display bitrate unit -
{device}Display device name -
{freq_ghz}Network frequency in Ghz -
{freq_mhz}Network frequency in Mhz -
{icon}Character representing the quality based on bitrate, as defined by the 'blocks' -
{ip}Display IP address -
{signal_dbm}Display signal in dBm -
{signal_percent}Display signal in percent -
{ssid}Display SSID
Color options:
-
color_badSignal strength signal_bad or lower -
color_degradedSignal strength signal_degraded or lower -
color_goodSignal strength above signal_degraded
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
-
iwcli configuration utility for wireless devices -
iponly for {ip}. may be part of iproute2: ip routing utilities
Notes:
Some distributions require commands to be run with privileges. You can
give commands some root rights to run without a password by editing
sudoers file, i.e., sudo visudo, and add a line that requires sudo.
'<user> ALL=(ALL) NOPASSWD:/sbin/iw dev,/sbin/iw dev [a-z] link'
'<user> ALL=(ALL) NOPASSWD:/sbin/ip addr list [a-z]'
author Markus Weimar <mail@markusweimar.de>
license BSD
window


Display window properties (i.e. title, class, instance).
Configuration parameters:
-
cache_timeoutrefresh interval for i3-msg or swaymsg (default 0.5) -
formatdisplay format for this module (default "{title}") -
hide_titlehide title on containers with window title (default False) -
max_widthspecify width to truncate title with ellipsis (default None)
Format placeholders:
-
{class}window class -
{instance}window instance -
{title}window title
Requires:
i3ipcan improved python library to control i3wm and sway
Examples:
# show alternative instead of empty title
window_title {
format = '{title}|♥'
}
author shadowprince (counter), Anon1234 (async)
license Eclipse Public License (counter), BSD (async)
wwan


Display WWANs, IP addresses, signals, properties and sms.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 5) -
formatdisplay format for this module (default '\?color=state WW: [\?if=state_name=connected ' '({signal_quality_0}% at {m3gpp_operator_name}) ' '[{format_ipv4}[\?soft ]{format_ipv6}]|{state_name}]' '[ SMS {messages} [{format_message}]]') -
format_ipv4display format for ipv4 network (default '[{address}]') -
format_ipv6display format for ipv6 network (default '[{address}]') -
format_messagedisplay format for SMS messages (default '\?if=index<2 {number} [\?max_length=10 {text}...]') -
format_message_separatorshow separator if more than one (default ' ') -
format_notificationspecify notification to use (default None) -
format_statsdisplay format for statistics (default '{duration_hms}') -
modemspecify a modem device to use, otherwise auto (default None) -
thresholdsspecify color thresholds to use (default [(0, 'bad'), (11, 'good')])
Format placeholders:
-
{access_technologies}network speed, in bit, eg 192 -
{access_technologies_name}network speed names, eg LTE -
{current_bands}modem band, eg 1 -
{current_bands_name}modem band name, eg GSM/GPRS/EDGE 900 MHz -
{format_ipv4}format for ipv4 network config -
{format_ipv6}format for ipv6 network config -
{format_message}format for SMS messages -
{format_stats}format for network connection statistics -
{interface_name}network interface name, eg wwp0s20f0u2i12 -
{m3gpp_registration_state_name}network registration state name, eg HOME -
{m3gpp_registration_state}network registration state, eg 1 -
{m3gpp_operator_code}network operator code, eg 496 -
{m3gpp_operator_name}network operator name, eg Py3status Telecom -
{message}number of messages, eg 2 -
{messages}total number of messages, eg 30 -
{signal_quality_0}signal quality percentage, eg 88 -
{signal_quality_1}signal quality refreshed, eg True/False -
{state}network state, eg 0, 7, 11 -
{state_name}network state name, eg searching, connected
format_ipv4 placeholders:
-
{address}ip address -
{dns1}dns1 -
{dns2}dns2 -
{gateway}gateway -
{mtu}mtu -
{prefix}netmask prefix
format_ipv6 placeholders:
-
{address}ip address -
{dns1}dns1 -
{dns2}dns2 -
{gateway}gateway -
{mtu}mtu -
{prefix}netmask prefix
format_message placeholders:
-
{index}message index -
{text}text received, eg: 'hello how are you?' -
{number}contact number, eg: '+33601020304'
format_stats placeholders:
-
{duration}time since connected, in seconds, eg 171 -
{duration_hms}time since connected, in [hh:]mm:ss, eg 02:51 -
{tx_bytes}transmit bytes -
{rx_bytes}receive bytes
Color thresholds:
formatxxx: print a color based on the value ofxxxplaceholder
Requires:
-
modemmanagermobile broadband modem management service -
networkmanagernetwork connection manager and user applications -
dbus-pythonPython bindings for dbus
Examples:
# show state names, eg initializing, searching, registered, connecting.
wwan {
format = '\?color=state WWAN: {state_name}'
}
# show state names, and when connected, show network information too.
wwan {
format = 'WWAN:[\?color=state [ {format_ipv4}]'
format += '[ {format_ipv6}] {state_name}]'
}
# show internet access technologies name with up/down state.
wwan {
format = 'WWAN: [\?color=state [{access_technologies_name}]'
format += '[\?soft ][\?if=state_name=connected up|down]]'
}
# show SMS messages only
wwan {
format = '[SMS: {format_message}]'
}
# SMS counter
wwan {
format = 'SMS: {message}/{messages}'
}
# add starter pack thresholds. you do not need to add them all.
wwan {
thresholds = {
'access_technologies': [
(2, 'bad'), (32, 'orange'), (512, 'degraded'), (16384, 'good')
],
'signal_quality_0': [
(0, 'bad'), (10, 'orange'), (30, 'degraded'), (50, 'good')
],
'signal_quality_1': [
(False, 'darkgrey'), (True, 'degraded')
],
'state': [
(-1, 'bad'), (4, 'orange'), (5, 'degraded'), (11, 'good')
]
}
}
# customize WWAN format
wwan {
format = 'WWAN: [\?color=state {state_name}] '
format += '[\?if=m3gpp_registration_state_name=HOME {m3gpp_operator_name} ] '
format += '[\?if=m3gpp_registration_state_name=ROAMING {m3gpp_operator_name} ]'
format += '[\?color=access_technologies {access_technologies_name} ]'
format += '[([\?color=signal_quality_0 {signal_quality_0}]]'
format += '[\?if=!signal_quality_1&color=signal_quality_1 \[!\]|] '
format += '[\?if=state_name=connected [{format_ipv4}] [{format_stats}]]')
}
# notify users when an event occur... such as new messages, change in state,
# disconnected, etc. you need to specify formatting correctly so it does not
# return anything. otherwise, you always get notifications.
wwan {
# notify users on low signal percent 25%
format_notification = '\?if=signal_quality_0<25 Low signal'
# notify users on connected state
format_notification = '[\?if=state_name=connected Connected.]'
format_notification += '[\?if=state_name=disconnected Disconnected.]'
# message notification
format_message = '[\?if=index=1 [{number}] [{text}]]'
format_notification = '[\?if=message>0 {format_message}]'
}
author Cyril Levis (@cyrinux), girst (https://gir.st/)
wwan_status


Display network and IP address for newer Huwei modems.
It is tested for Huawei E3276 (usb-id 12d1:1506) aka Telekom Speed Stick LTE III but may work on other devices too.
Configuration parameters:
-
baudrateThere should be no need to configure this, but feel free to experiment. (default 115200) -
cache_timeoutHow often we refresh this module in seconds. (default 5) -
consider_3G_degradedIf set to True, only 4G-networks will be considered 'good'; 3G connections are shown as 'degraded', which is yellow by default. Mostly useful if you want to keep track of where there is a 4G connection. (default False) -
format_downWhat to display when the modem is not plugged in (default 'WWAN: down') -
format_errorWhat to display when modem can't be accessed. (default 'WWAN: {error}') -
format_no_serviceWhat to display when the modem does not have a network connection. This allows to omit the (then meaningless) network generation. (default 'WWAN: {status} {ip}') -
format_upWhat to display upon regular connection (default 'WWAN: {status} ({netgen}) {ip}') -
interfaceThe default interface to obtain the IP address from. For wvdial this is most likely ppp0. For netctl it can be different. (default 'ppp0') -
modemThe device to send commands to. (default '/dev/ttyUSB1') -
modem_timeoutThe timespan between querying the modem and collecting the response. (default 0.4)
Color options:
-
color_badError or no connection -
color_degradedLow generation connection eg 2G -
color_goodGood connection
Requires:
-
netifacesportable module to access network interface information -
pyserialmultiplatform serial port module for python
author Timo Kohorst timo@kohorst-online.com
PGP: B383 6AE6 6B46 5C45 E594 96AB 89D2 209D DBF3 2BB5
xkb_input




Switch inputs.
Configuration parameters:
-
button_nextmouse button to cycle next layout (default 4) -
button_prevmouse button to cycle previous layout (default 5) -
cache_timeoutrefresh interval for this module; xkb-switch and swaymsg will listen for new updates instead (default 10) -
formatdisplay format for this module (default '{format_input}') -
format_inputdisplay format for inputs (default '[{alias}][\?soft ][\?color=s {s}[ {v}]]') -
format_input_separatorshow separator if more than one (default ' ') -
inputsspecify a list of inputs to use in swaymsg (default []) -
switcherspecify xkb-switch, xkblayout-state, xkbgroup, or swaymsg to use, otherwise auto (default None) -
thresholdsspecify color thresholds to use (default [("fr", "lightgreen"), ("ru", "lightcoral"), ("ua", "khaki"), ("us", "lightskyblue")])
Format placeholders:
-
{format_input}format for inputs -
{input}number of inputs, eg 1 -
{switcher}eg, xkb-switch, xkblayout-state, xkbgroup, swaymsg
format_input placeholders:
-
xkb-switch -
xkblayout-state -
xkbgroup -
swaymsg -
{c}layout number, eg, 0 -
{n}layout name, eg, English (US) -
{s}layout symbol, eg, us -
{v}layout variant, eg, basic -
{e}layout variant, {v} or {s}, eg, dvorak -
{C}layout count, eg, 2 -
swaymsg -
{alias}custom string or {name} -
{identifier}eg, 162:253 USB-HID Keyboard -
{name}eg, Trackball, Keyboard, etc -
{vendor}eg, 320 -
{product}eg, 556 -
{type}eg, pointer, keyboard, touchpad, etc -
{xkb_layout_names}eg, English (US), French, Russian -
{xkb_active_layout_index}eg, 0, 1, 2, etc -
{xkb_active_layout_name}eg, English (US) -
{send_events}eg, True -
{accel_speed}eg, 0.0 -
{accel_profile}eg, adaptive -
{natural_scroll}eg, adaptive -
{left_handed}eg, False -
{middle_emulation}eg, False -
{scroll_method}eg, None -
{scroll_button}eg, 274Use `swaymsg -r -t get_inputs` to get a list of current sway inputs and for a list of placeholders. Not all of placeholders will be usable.
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
Requires:
-
xkb-switchprogram that allows to query and change the xkb layout state -
xkblayout-statea command-line program to get/set the current keyboard layout -
xkbgroupquery and change xkb layout state -
swaymsgsend messages to sway window manager
Examples:
# sway users: for best results, add switcher to avoid false positives with `pgrep i3`
# because sway users can be using scripts, tools, et cetera with `i3` in its name.
xkb_input {
switcher = "swaymsg"
}
# sway users: specify inputs to fnmatch
xkb_input {
# display logitech identifiers
inputs = [{"identifier": "*Logitech*"}]
# display logi* keyboards only
inputs = [{"name": "Logi*", "type": "keyb*"}]
# display pointers only
inputs = [{"type": "pointer"}]
}
# sway users: display inputs, optional aliases, et cetera
xkb_input {
inputs = [
{"identifier": "1625:3192:Heng_Yu_Technology_Poker_II", "alias": "Poker 2"},
{"identifier": "0012:021:USB-HID_Keyboard", "alias": "Race 3"},
{"identifier": "0123:45678:Logitech_MX_Ergo", "alias": "MX Ergo", "type": "pointer"},
]
}
# i3 users: display inputs - see https://wiki.archlinux.org/index.php/X_keyboard_extension
# $ setxkbmap -layout "us,fr,ru" # install xkb-group to enable a listener thread
author lasers, saengowp, javiertury
xrandr




Control screen layout.
This modules allows you to handle your screens outputs directly from your bar! - Detect and propose every possible screen combinations - Switch between combinations using click events and mouse scroll - Activate the screen or screen combination on a single click - It will detect any newly connected or removed screen automatically
For convenience, this module also proposes some added features: - Dynamic parameters for POSITION and WORKSPACES assignment (see below) - Automatic fallback to a given screen or screen combination when no more screen is available (handy for laptops) - Automatically apply this screen combination on start: no need for xorg! - Automatically move workspaces to screens when they are available - Define your own subset of output combinations to use
Configuration parameters:
-
cache_timeouthow often to (re)detect the outputs (default 10) -
commanda custom command to be run after display configuration changes (default None) -
fallbackwhen the current output layout is not available anymore, fallback to this layout if available. This is very handy if you have a laptop and switched to an external screen for presentation and want to automatically fallback to your laptop screen when you disconnect the external screen. (default True) -
fixed_widthshow output as fixed width (default True) -
force_on_changeswitch display layout to the leftmost combination mode of the given list whenever it is available. The combination modes are checked from left (high priority) to right (less priority) until one matches. Example: We have a laptop with internal screen and we are often moving from our desk where another screen is available. We want the layout to follow our changes so that we do not have to switch manually. So whenever we plug at our desk, we want the second monitor to be used, and whenever we go away we want everything back on the laptop screen automatically:force_on_change = ["eDP1+DP1", "eDP1"]NOTES: Click controls will overrideforce_on_changeuntil the layout changes in the background so you can still manually control your layout changes on the bar. Use theforce_on_startto handle initial layout setup on module startup along with this feature to benefit from fully dynamic and automated changes of screen layouts. (default []) -
force_on_startswitch to the given combination mode if available when the module starts (saves you from having to configure xorg) (default None) -
formatdisplay format for xrandr (default '{output}') -
hide_if_single_combinationhide if only one combination is available (default False) -
icon_cloneicon used to display a 'clone' combination (default '=') -
icon_extendicon used to display a 'extend' combination (default '+') -
on_udev_drmdynamic variable to watch fordrmudev subsystem events to trigger specified action. (default 'refresh_and_freeze') -
output_combinationsstring used to define your own subset of output combinations to use, instead of generating every possible combination automatically. Provide the values in the format that this module uses, splitting the combinations using '|' character. The combinations will be rotated in the exact order as you listed them. When an output layout is not available any more, the configurations are automatically filtered out. Example: Assuming the default values foricon_cloneandicon_extendare used, and assuming you have two screens 'eDP1' and 'DP1', the following setup will reduce the number of output combinations from four (every possible one) down to two.output_combinations = "eDP1|eDP1+DP1"(default None)
Dynamic configuration parameters:
-
<OUTPUT>_iconuse this icon instead of OUTPUT name as text Example: DP1_icon = "🖵" -
<OUTPUT>_posapply the given position to the OUTPUT Example: DP1_pos = "-2560x0" Example: DP1_pos = "above eDP1" Example: DP1_pos = "below eDP1" Example: DP1_pos = "left-of LVDS1" Example: DP1_pos = "right-of eDP1" -
<OUTPUT>_workspacescomma separated list of workspaces to move to the given OUTPUT when it is activated Example: DP1_workspaces = "1,2,3" -
<OUTPUT>_rotaterotate the output as told Example: DP1_rotate = "left" -
<OUTPUT>_modedefine the mode (resolution) for the output if not specified use --auto : preferred mode Example: eDP1_mode = "2560x1440" -
<OUTPUT>_primaryapply the primary to the OUTPUT Example: DP1_primary = True
Format placeholders:
{output}xrandr output
Color options:
-
color_badDisplayed layout unavailable -
color_degradedUsing a fallback layout -
color_goodDisplayed layout active
Notes:
Some days are just bad days. Running xrandr --query command can
cause unexplainable brief screen freezes due to an overall combination
of computer hardware, installed software, your choice of linux distribution,
and/or some other unknown factors such as recent system updates.
Configuring `cache_timeout` with a different number, eg `3600` (an hour)
or `-1` (runs once) can be used to remedy this issue. See issue #580.
Examples:
# start with a preferable setup
xrandr {
force_on_start = "eDP1+DP1"
DP1_pos = "left-of eDP1"
VGA_workspaces = "7"
}
author ultrabug
xrandr_rotate


Control screen rotation.
Configuration parameters:
-
cache_timeouthow often to refresh this module. (default 10) -
formata string that formats the output, can include placeholders. (default '{icon}') -
hide_if_disconnecteda boolean flag to hide icon whenscreenis disconnected. It has no effect unlessscreenoption is also configured. (default False) -
horizontal_icona character to represent horizontal rotation. (default 'H') -
horizontal_rotationa horizontal rotation for xrandr to use. Available options: 'normal' or 'inverted'. (default 'normal') -
screendisplay output name to rotate, as detected by xrandr. If not provided, all enabled screens will be rotated. (default None) -
vertical_icona character to represent vertical rotation. (default 'V') -
vertical_rotationa vertical rotation for xrandr to use. Available options: 'left' or 'right'. (default 'left')
Format placeholders:
-
{icon}a rotation icon, specified byhorizontal_iconorvertical_icon. -
{screen}a screen name, specified byscreenoption or detected automatically if only one screen is connected, otherwise 'ALL'.
Color options:
-
color_degradedScreen is disconnected -
color_goodDisplayed rotation is active
author Maxim Baz (https://github.com/maximbaz)
license BSD
xscreensaver


Control Xscreensaver.
This script is useful for people who let Xscreensaver manage DPMS settings. Xscreensaver has its own DPMS variables separate from xset. DPMS can be safely turned off in xset as long as Xscreensaver is running. Settings can be managed using "xscreensaver-demo".
Configuration parameters:
-
button_activatemouse button to activate Xscreensaver (default 3) -
button_togglemouse button to toggle Xscreensaver (default 1) -
cache_timeoutrefresh interval for this module (default 15) -
formatdisplay format for this module (default '{icon}') -
icon_offshow when Xscreensaver is not running (default 'XSCR') -
icon_onshow when Xscreensaver is running (default 'XSCR')
Format placeholders:
{icon}Xscreensaver icon
Color options:
-
color_onEnabled, defaults to color_good -
color_offDisabled, defaults to color_bad
author neutronst4r, lasers
xsel

Display X selection.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 0.5) -
commandthe clipboard command to run (default 'xsel --output') -
formatdisplay format for this module (default '{selection}') -
log_filespecify the clipboard log to use (default None) -
max_sizestrip the selection to this value (default 15) -
symmetricshow beginning and end of the selection string with respect to configured max_size. (default True)
Format placeholders:
{selection}output from clipboard command
Requires:
xsela command-line program to retrieve/set the X selection
Examples:
xsel {
max_size = 50
command = "xsel --clipboard --output"
on_click 1 = "exec xsel --clear --clipboard"
log_file = "~/.local/share/xsel/clipboard_log"
}
author Sublim3 umbsublime@gamil.com
license BSD
yandexdisk_status



Display Yandex.Disk status.
Configuration parameters:
-
cache_timeoutrefresh interval for this module (default 10) -
formatdisplay format for this module (default 'Yandex.Disk: {status}') -
status_busyshow when Yandex.Disk is busy (default None) -
status_offshow when Yandex.Disk isn't running (default 'Not started') -
status_onshow when Yandex.Disk is idling (default 'Idle')
Format placeholders:
{status}Yandex.Disk status
Color options:
-
color_badNot started -
color_degradedIdle -
color_goodBusy
Requires:
yandex-diskcommand line interface for Yandex.Disk
author Vladimir Potapev (github:vpotapev)
license BSD
yubikey

Show an indicator when YubiKey is waiting for a touch.
Configuration parameters:
-
formatDisplay format for the module. (default '[YubiKey[\?if=is_gpg ][\?if=is_u2f ]]') -
socket_pathA path to the yubikey-touch-detector socket file. (default '$XDG_RUNTIME_DIR/yubikey-touch-detector.socket')
Control placeholders:
-
{is_gpg}a boolean, True if YubiKey is waiting for a touch due to a gpg operation. -
{is_u2f}a boolean, True if YubiKey is waiting for a touch due to a pam-u2f request.
Requires:
github.com/maximbaz/yubikey-touch-detectortool to detect when YubiKey is waiting for a touch
author Maxim Baz (https://github.com/maximbaz)
license BSD
zypper_updates

Display number of pending updates for OpenSUSE Linux.
Configuration parameters:
-
cache_timeoutHow often we refresh this module in seconds (default 600) -
formatDisplay format to use (default 'zypper: [\?color=update {update}]') -
thresholdsspecify color thresholds to use (default [(0, 'good'), (50, 'degraded'), (100, 'bad')])
Format placeholders:
{updates}number of pending zypper updates
Color thresholds:
xxxprint a color based on the value ofxxxplaceholder
author Ioannis Bonatakis <ybonatakis@suse.com>
license BSD