<commit_before>m4_include(user_config.m4)m4_dnl
m4_include(env_config.m4)m4_dnl
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
# full_text
# instance
# interval
# label
# min_width
# name
# separator
# separator_block_width
# short_text
# signal
# urgent

# Global properties
#
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
m4_define(m4_I3BLOCKS_DIR,??[[<<m4_user_config_XDG_CONFIG_HOME/i3blocks/scripts>>]]??)
command=m4_I3BLOCKS_DIR/$BLOCK_NAME
align=left
color=#ffffff
separator=false
separator_block_width=15

[music-label]
command=[ -n "$(m4_I3BLOCKS_DIR/music)" ] && echo '♫' || echo ''
color=#00ffff
separator_block_width=4
interval=5

# Song information
[music]
interval=5
signal=10

# Volume indicator
#
# The first parameter sets the step (and units to display)
# The second parameter overrides the mixer selection
# See the script for details.
[volume-label]
full_text=🔊
color=#00ffff
separator_block_width=4

[volume]
instance=Master
interval=once
signal=1

m4_ifdef(??[[<<m4_user_config_OPEN_WEATHER_MAP_API_KEY>>]]??,m4_dnl
[weather-label]
command=m4_I3BLOCKS_DIR/weather 'm4_user_config_OPEN_WEATHER_MAP_API_KEY' --name '??[[<<m4_user_config_OPEN_WEATHER_MAP_CITY>>]]??' --units 'm4_user_config_OPEN_WEATHER_MAP_UNITS' --fmt '%i'
interval=600
color=#00ffff
separator_block_width=4

[weather]
command=m4_I3BLOCKS_DIR/weather 'm4_user_config_OPEN_WEATHER_MAP_API_KEY' --name '??[[<<m4_user_config_OPEN_WEATHER_MAP_CITY>>]]??' --units 'm4_user_config_OPEN_WEATHER_MAP_UNITS' --fmt '%t %s (%c)' --sfmt '%t'
interval=600)

# CPU usage
#
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[cpu_usage-label]
full_text=CPU
color=#00ffff
separator_block_width=4

[cpu_usage -w 80 -c 95]
m4_ifdef(??[[<<m4_env_config_I3BLOCKS_CPU_POPUP>>]]??,m4_dnl
command=m4_I3BLOCKS_DIR/$BLOCK_NAME && ( if [ "$BLOCK_BUTTON" == "1" ]; then m4_env_config_I3BLOCKS_CPU_POPUP; fi ))
interval=10
min_width=99.99%
align=right

m4_define(GPU_USAGE, ??[[<<m4_ifelse($1,-1,,??[[<<GPU_USAGE(m4_eval($1-1))
[gpu-usage $1 80 95]
interval=10
min_width=100%
align=right
>>]]??)>>]]??)
m4_ifdef(??[[<<m4_env_config_NVIDIA_SMI>>]]??,m4_dnl
# GPU usage
[gpu-usage-label]
full_text=GPU
color=#00ffff
separator_block_width=4
GPU_USAGE(m4_eval(m4_env_config_NUM_GPUS - 1)))

# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
[memory-label]
full_text=MEM
color=#00ffff
separator_block_width=4

[memory]
m4_ifdef(??[[<<m4_env_config_I3BLOCKS_MEM_POPUP>>]]??,m4_dnl
command=m4_I3BLOCKS_DIR/$BLOCK_NAME && ( if [ "$BLOCK_BUTTON" == "1" ]; then m4_env_config_I3BLOCKS_MEM_POPUP; fi ))
interval=30

# [memory-label]
# full_text=SWAP
# color=#00ffff
# separator_block_width=4
#
# [memory]
# instance=swap
# interval=30

# # Disk usage
# [disk]
# label=ROOT
# instance=/
# interval=30

# # The directory defaults to $HOME if the instance is not specified.
# # The script may be called with a optional argument to set the alert
# # (defaults to 10 for 10%).
# [disk]
# label=HOME
# interval=30

# Temperature
#
# Support multiple chips, though lm-sensors.
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[temperature-label]
full_text=🌡
color=#00ffff
separator_block_width=4

[temperature]
interval=10

# # Network interface monitoring
# #
# # If the instance is not specified, use the interface used for default route.
# # The address can be forced to IPv4 or IPv6 with -4 or -6 switches.
# [iface-label]
# full_text=🖧
# color=#00ffff
# separator_block_width=4
#
# [iface]
# #instance=wlan0
# #color=#00FF00
# interval=10
m4_ifdef(??[[<<m4_env_config_WIRELESS_INTERFACE>>]]??,m4_dnl

[wifi-label]
full_text=📶
color=#00ffff
separator_block_width=4

[wifi]
instance=m4_env_config_WIRELESS_INTERFACE
interval=10
separator_block_width=9

[ssid]
instance=m4_env_config_WIRELESS_INTERFACE
interval=60
separator_block_width=4
)
m4_ifdef(??[[<<m4_env_config_BATTERY_0>>]]??,m4_dnl

# Battery indicator
#
# The battery instance defaults to 0.
[battery-label]
interval=30
color=#00ffff
separator_block_width=4

[battery]
command=m4_I3BLOCKS_DIR/battery | sed 's/\(CHR\|DIS\) \?//'
BAT_NUMBER=0
interval=30)
m4_ifdef(??[[<<m4_env_config_BATTERY_1>>]]??,m4_dnl
[battery]
command=m4_I3BLOCKS_DIR/battery | sed 's/\(CHR\|DIS\) \?//'
BAT_NUMBER=1
interval=30)

# Date
[date-label]
full_text=📅
color=#00ffff
separator_block_width=4

[date-calendar m4_ifdef(??[[<<m4_env_config_GSIMPLECAL>>]]??,gsimplecal)]
interval=60

[time-label]
full_text=🕒
color=#00ffff
separator_block_width=4

[time]
command=date '+%X'
interval=5

# OpenVPN support
#
# Support multiple VPN, with colors.
#[openvpn]
#interval=20<commit_msg>i3blocks: Use text-style icons<commit_after>m4_include(user_config.m4)m4_dnl
m4_include(env_config.m4)m4_dnl
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
# full_text
# instance
# interval
# label
# min_width
# name
# separator
# separator_block_width
# short_text
# signal
# urgent

# Global properties
#
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
m4_define(m4_I3BLOCKS_DIR,??[[<<m4_user_config_XDG_CONFIG_HOME/i3blocks/scripts>>]]??)
command=m4_I3BLOCKS_DIR/$BLOCK_NAME
align=left
color=#ffffff
separator=false
separator_block_width=15

[music-label]
command=[ -n "$(m4_I3BLOCKS_DIR/music)" ] && echo '♫' || echo ''
color=#00ffff
separator_block_width=4
interval=5

# Song information
[music]
interval=5
signal=10

# Volume indicator
#
# The first parameter sets the step (and units to display)
# The second parameter overrides the mixer selection
# See the script for details.
[volume-label]
full_text=🔊︎
color=#00ffff
separator_block_width=4

[volume]
instance=Master
interval=once
signal=1

m4_ifdef(??[[<<m4_user_config_OPEN_WEATHER_MAP_API_KEY>>]]??,m4_dnl
[weather-label]
command=m4_I3BLOCKS_DIR/weather 'm4_user_config_OPEN_WEATHER_MAP_API_KEY' --name '??[[<<m4_user_config_OPEN_WEATHER_MAP_CITY>>]]??' --units 'm4_user_config_OPEN_WEATHER_MAP_UNITS' --fmt '%i'
interval=600
color=#00ffff
separator_block_width=4

[weather]
command=m4_I3BLOCKS_DIR/weather 'm4_user_config_OPEN_WEATHER_MAP_API_KEY' --name '??[[<<m4_user_config_OPEN_WEATHER_MAP_CITY>>]]??' --units 'm4_user_config_OPEN_WEATHER_MAP_UNITS' --fmt '%t %s (%c)' --sfmt '%t'
interval=600)

# CPU usage
#
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[cpu_usage-label]
full_text=CPU
color=#00ffff
separator_block_width=4

[cpu_usage -w 80 -c 95]
m4_ifdef(??[[<<m4_env_config_I3BLOCKS_CPU_POPUP>>]]??,m4_dnl
command=m4_I3BLOCKS_DIR/$BLOCK_NAME && ( if [ "$BLOCK_BUTTON" == "1" ]; then m4_env_config_I3BLOCKS_CPU_POPUP; fi ))
interval=10
min_width=99.99%
align=right

m4_define(GPU_USAGE, ??[[<<m4_ifelse($1,-1,,??[[<<GPU_USAGE(m4_eval($1-1))
[gpu-usage $1 80 95]
interval=10
min_width=100%
align=right
>>]]??)>>]]??)
m4_ifdef(??[[<<m4_env_config_NVIDIA_SMI>>]]??,m4_dnl
# GPU usage
[gpu-usage-label]
full_text=GPU
color=#00ffff
separator_block_width=4
GPU_USAGE(m4_eval(m4_env_config_NUM_GPUS - 1)))

# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
[memory-label]
full_text=MEM
color=#00ffff
separator_block_width=4

[memory]
m4_ifdef(??[[<<m4_env_config_I3BLOCKS_MEM_POPUP>>]]??,m4_dnl
command=m4_I3BLOCKS_DIR/$BLOCK_NAME && ( if [ "$BLOCK_BUTTON" == "1" ]; then m4_env_config_I3BLOCKS_MEM_POPUP; fi ))
interval=30

# [memory-label]
# full_text=SWAP
# color=#00ffff
# separator_block_width=4
#
# [memory]
# instance=swap
# interval=30

# # Disk usage
# [disk]
# label=ROOT
# instance=/
# interval=30

# # The directory defaults to $HOME if the instance is not specified.
# # The script may be called with a optional argument to set the alert
# # (defaults to 10 for 10%).
# [disk]
# label=HOME
# interval=30

# Temperature
#
# Support multiple chips, though lm-sensors.
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[temperature-label]
full_text=🌡
color=#00ffff
separator_block_width=4

[temperature]
interval=10

# # Network interface monitoring
# #
# # If the instance is not specified, use the interface used for default route.
# # The address can be forced to IPv4 or IPv6 with -4 or -6 switches.
# [iface-label]
# full_text=🖧
# color=#00ffff
# separator_block_width=4
#
# [iface]
# #instance=wlan0
# #color=#00FF00
# interval=10
m4_ifdef(??[[<<m4_env_config_WIRELESS_INTERFACE>>]]??,m4_dnl

[wifi-label]
full_text=📶︎
color=#00ffff
separator_block_width=4

[wifi]
instance=m4_env_config_WIRELESS_INTERFACE
interval=10
separator_block_width=9

[ssid]
instance=m4_env_config_WIRELESS_INTERFACE
interval=60
separator_block_width=4
)
m4_ifdef(??[[<<m4_env_config_BATTERY_0>>]]??,m4_dnl

# Battery indicator
#
# The battery instance defaults to 0.
[battery-label]
interval=30
color=#00ffff
separator_block_width=4

[battery]
command=m4_I3BLOCKS_DIR/battery | sed 's/\(CHR\|DIS\) \?//'
BAT_NUMBER=0
interval=30)
m4_ifdef(??[[<<m4_env_config_BATTERY_1>>]]??,m4_dnl
[battery]
command=m4_I3BLOCKS_DIR/battery | sed 's/\(CHR\|DIS\) \?//'
BAT_NUMBER=1
interval=30)

# Date
[date-label]
full_text=📅
color=#00ffff
separator_block_width=4

[date-calendar m4_ifdef(??[[<<m4_env_config_GSIMPLECAL>>]]??,gsimplecal)]
interval=60

[time-label]
full_text=🕒︎
color=#00ffff
separator_block_width=4

[time]
command=date '+%X'
interval=5

# OpenVPN support
#
# Support multiple VPN, with colors.
#[openvpn]
#interval=20
{'fraction_non_alphanumeric': 0.13660157036440507, 'fraction_numerical': 0.03996376082142138, 'mean_word_length': 6.7677873338545735, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2620370', 'n_tokens_mistral': 4173, 'n_tokens_neox': 3921, 'n_words': 816}