blob: 2c0d8476ec75dcf17efb9c5c48a63c759012af14 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# i3blocks config file
# 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.
command=/usr/lib/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=none
# Volume indicator
[volume]
label=♪
interval=once
#instance=Master
#instance=PCM
command=amixer -c 1 get Master | /usr/bin/grep -E -o '[0-9]*%' | head -n 1
interval=30
signal=10
[brightness]
label=☼
command=xbacklight | awk -F. '{print $1}'
interval=once
signal=10
[disk]
label=/
instance=/
interval=300
# 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=
interval=20
separator=false
signal=11
[wifi]
instance=wlp4s0
label=W:
interval=20
separator=false
signal=11
[ipv6]
label=
command=ip -6 a show scope global | grep -q global && echo -e "ipv6\nipv6\n#A8FF00" || echo -e "ipv4\nipv4\n#cc0000"
interval=20
signal=11
[bandwidth]
#instance=eth0
interval=30
signal=11
[load_average]
interval=20
# Battery indicator
#
# The battery instance defaults to 0.
[battery]
#label=bat
label=⚡
#instance=1
interval=30
separator=false
[power]
label=
command=zsh -c '[[ $(cat /sys/class/power_supply/BAT0/status) == "Discharging" ]] && printf "%.2f W" $(( $(cat /sys/class/power_supply/BAT0/power_now) / 1000000.0 )) || echo ""'
color=77bb33
interval=30
signal=10
# Date Time
#
[time]
command=date '+%Y-%m-%d %H:%M'
interval=60
# 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=
interval=60
# Key indicators
#
# Add the following bindings to i3 config file:
#
# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks
#[keyindicator]
#instance=CAPS
#interval=once
#signal=11
#[keyindicator]
#instance=NUM
#interval=once
#signal=11
|