-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_i3_blocks
More file actions
47 lines (37 loc) · 824 Bytes
/
dot_i3_blocks
File metadata and controls
47 lines (37 loc) · 824 Bytes
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
# i3blocks config file lives in ~/.config/i3blocks.conf
#
# https://vivien.github.io/i3blocks
# Global properties
separator=true
separator_block_width=15
[vol]
label=vol
command=amixer get Master | awk -F'[][]' 'NR==6 {print $2}'
interval=1
[wlan]
label=wlan0
command=ip a|grep -A3 wlan|awk '/inet / {print $2}'
interval=60
[fs_home]
label=/home:
command=df -h /home | awk 'NR==2 {print $3 "/" $2}'
interval=60
[fs_root]
label=/:
command=df -h / | awk 'NR==2 {print $3 "/" $2}'
interval=60
[mem_usage]
label=mem
command=free -h | awk '/^Mem/ {print $3 "/" $2}'
interval=10
[cpu_usage]
label=cpu
command=top -bn1 | grep "Cpu(s)" | awk '{printf "%.1f%\n",$2 + $4}'
interval=5
[cpu_temp]
label=temp
command=sensors | awk '/^CPUTIN/ {print $2}'
interval=5
[time]
command=date '+%a %Y-%m-%d %H:%M:%S'
interval=1