# 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.
# Change $SCRIPT_DIR to the location of your scripts!
command=~/.config/i3blocks/scripts/$BLOCK_NAME/$BLOCK_NAME
separator_block_width=15
markup=none

#[i3-focusedwindow]
#interval=persist

[clipboard]
command=xclip -o -selection clipboard | tr -dc '[:print:]' | awk '{print (length($0) > 90 ? substr($0, 1, 47) "..." : $0)}'
color=#666666
interval=1

[volume]
label=(
interval=1
signal=10
#STEP=5%

[cpu-zero]
markup=pango
interval=1

[mem]
#label=::
command=free | awk '/Mem/ {mem_usage = ($3/$2) * 100.0} /Swap/ {swap_usage = ($3/$2) * 100.0} END {printf "%.0f%% <span color=\"#cc99cc\">%.0f%%</span>", mem_usage, swap_usage}'
color=#99cccc
markup=pango
interval=7

[disk]
command=df -h --output=used,avail / | awk 'NR==2{printf("%s / %s\n", $1, $2)}'
interval=30

#[network]
#command=nmcli -t -f active,name connection show | grep '^yes' | cut -d: -f2
#color=#aaaaaa
#interval=7
#separator=false

#[iface]
##IFACE=wlan0
#color=#00FF00
#interval=7
##separator=false

[bt-zero]
markup=pango
interval=7

[wifi-zero]
markup=pango
interval=7
#separator=false

#[bandwidth]
##INTERFACE=eth0
#interval=7

[batterybar]
#label=BAT
markup=pango
interval=30

[time]
command=date '+%Y %m %d %H:%M '
interval=7
separator=true

#[temperature]
#label=TEMP
#interval=10