summaryrefslogtreecommitdiff
path: root/i3blocks.conf
blob: 25986a6ecf7f2a9bd659bbd16972a1d978dec195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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=30

[weather]
command=curl -Ss 'https://wttr.in?0&T&Q' | cut -c 16- | head -2 | xargs echo
interval=1800
# color=#c0caf5

[brightness]
command=echo " $(brightnessctl get | awk '{print $0 / 24000 * 100}')"
signal=11
interval=once
# color=#c0caf5

[volume]
command=i3blocks_volume
# echo "vol: $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{printf "%s", substr($5, 1, length($5) - 1)}')"
# command=echo "vol: $(wpctl get-volume 50 | awk '{print $2*100}')"
signal=10
interval=once
# color=#c0caf5

[date]
command=date '+%a, %b %d'
interval=once
# color=#c0caf5
# color=#c0caf5

[time]
command=date '+%H:%M:%S'
interval=1
# color=#c0caf5

# [battery]
# command=echo "bat: $(sudo cat /sys/class/power_supply/BAT0/capacity)%"
# interval=30
# color=#c0caf5