blob: 2a61f2f91323a3c5e68922ec2d1745caab3513da (
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
|
#!/bin/bash
# cpu_top=(
# label.font="$FONT:Semibold:7"
# label=CPU
# icon.drawing=off
# width=0
# padding_right=10
# y_offset=6
# )
#
# cpu_percent=(
# label.font="$FONT:Heavy:12"
# label=CPU
# y_offset=-4
# padding_right=10
# width=55
# icon.drawing=off
# update_freq=4
# mach_helper="$HELPER"
# )
#
# cpu_sys=(
# width=0
# graph.color=$RED
# graph.fill_color=$RED
# label.drawing=off
# icon.drawing=off
# background.height=30
# background.drawing=on
# background.color=$TRANSPARENT
# y_offset=3
# )
#
# cpu_user=(
# graph.color=$BLUE
# label.drawing=off
# icon.drawing=off
# background.height=30
# background.drawing=on
# background.color=$TRANSPARENT
# background.padding_left=10
# y_offset=3
# )
#
# sketchybar --add item cpu.top right \
# --set cpu.top "${cpu_top[@]}" \
# \
# --add item cpu.percent right \
# --set cpu.percent "${cpu_percent[@]}" \
# \
# --add graph cpu.sys right 75 \
# --set cpu.sys "${cpu_sys[@]}" \
# \
# --add graph cpu.user right 75 \
# --set cpu.user "${cpu_user[@]}"
source "$HOME/.config/sketchybar/colors.sh"
cpu_percent=(
label.font="$FONT:Heavy:12"
label=CPU%
label.color="$TEXT"
icon="$CPU"
icon.font.size=16
icon.color="$BLUE"
icon.padding_right=-2
padding_right=-2
update_freq=2
mach_helper="$HELPER"
)
sketchybar --add item cpu.percent right \
--set cpu.percent "${cpu_percent[@]}"
|