dotfiles/i3/.config/i3blocks/config

38 lines
740 B
Plaintext

# i3blocks configuration file
#
# The i3blocks man page describes the usage of the binary,
# and its website describes the configuration:
#
# https://vivien.github.io/i3blocks
# Global properties
separator=true
separator_block_width=15
[battery1]
command=~/.dotfiles/bin/battery 0
interval=30
[battery2]
command=~/.dotfiles/bin/battery 1
interval=30
[tailscale]
command=~/.config/i3blocks/tscale #echo TS: $(ip a show tailscale0 | rg "inet (\d+\.\d+\.\d+\.\d+)" -or '$1')
interval=30
[wthr]
color=#c0c0c0
command=curl -Ss 'https://wttr.in?0&T&Q' | cut -c 16- | head -2 | xargs echo
interval=3600
[layout]
command=/usr/lib/i3blocks/key_layout/key_layout
label=lang:
interval=1
[time]
command=date '+%d.%m.%Y %H:%M'
interval=10