-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sh
72 lines (54 loc) · 1.06 KB
/
config.sh
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
# shellcheck shell=bash
# shellcheck disable=2034
interval=1
kernel="$(uname -sr)"
kern() {
local full_text="$kernel"
local color="#fab387"
block
}
backlight() {
local full_text="BRIGHTNESS: %percentage"
local color="#f9e2af"
block_backlight "intel_backlight" "actual_brightness"
}
battery() {
local full_text="BAT: %status %percentage"
local color="#94e2d5"
block_battery "BAT1" "CHR" "DIS" "FULL"
}
loadavg() {
local full_text="LOADAVG: %load1 / %load5 / %load15"
local color="#f38ba8"
block_loadavg
}
mem() {
local full_text="MEM: %memavail SWAP: %swapavail"
local color="#74c7ec"
block_mem
}
disk() {
local full_text="DISK: %avail"
local color="#f2c2e7"
block_disk "/"
}
vol() {
local full_text="VOL: %vol%mutestatus"
local color="#cba6f7"
block_pwvol "@DEFAULT_SINK@" " [MUTED]"
}
datetime() {
local full_text="%date"
local color="#a6e3a1"
block_datetime "%c" "printf"
}
update() {
kern
backlight
loadavg
mem
disk
vol
battery
datetime
}