Files
dotfiles/i3/.config/i3blocks/config
2025-04-08 06:36:33 +03:00

37 lines
701 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=echo TS: $(ip a show tailscale0 | rg "inet (\d+\.\d+\.\d+\.\d+)" -or '$1')
interval=30
[wthr]
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 '+%Y-%m-%d %H:%M:%S'
interval=1