Text · 4870 bytes Raw Blame History
1 #!/bin/zsh
2 # espadonne (mfw) v. minimal sketchybar config
3 #
4 # has battery indicator w. 7 FA duotone icons
5 # and color coding,
6 # date/time + weekday
7 # CPU%
8 # aerospace summary
9 # and main memory usage %
10 #
11 # NOTE: it's my most careless config
12 # but it doesn't make one think of liqui-
13 # -fied wasps, which is always good in my book.
14 # ie, this one is esp. helterskelter
15 #
16
17 PLUGDIR="/Users/matthewwolffe/.config/sketchybar/plugins"
18
19 # :::
20 # :::: 'GLOBALS' ::::
21 # ::::: ::::::::: :::::
22 #
23 sketchybar --load-font "/Users/matthewwolffe/Library/Fonts/Font Awesome 6 Pro-Thin-100.otf"
24 sketchybar --load-font "/Users/matthewwolffe/Library/Fonts/Font Awesome 6 Pro-Light-300.otf"
25 sketchybar --load-font "/Users/matthewwolffe/Library/Fonts/Font Awesome 6 Pro-Regular-400.otf"
26 sketchybar --load-font "/Users/matthewwolffe/Library/Fonts/Font Awesome 6 Duotone-Thin-100.otf"
27 sketchybar --load-font "/Users/matthewwolffe/Library/Fonts/Font Awesome 6 Duotone-Regular-100.otf"
28
29 sketchybar \
30 --bar \
31 color=0xcc3B4252 \
32 blur_radius=20 \
33 display=all \
34 height=32 \
35 shadow=off \
36 --default \
37 icon.color=0xff98E6EB \
38 label.color=0xffFFFFFF \
39 icon.font="Font Awesome 6 Duotone:Thin:18" \
40
41 # :::
42 # :::: LEFT - TAKE IT BACK NOW Y'ALL ::::
43 # ::::: ::::::::::::::::::::::::::::: :::::
44 #
45
46 # YYYY.MM.DD (DAY-NAME)
47 sketchybar --add item clock left \
48 --set clock \
49 updates=on \
50 update_freq=10 \
51 label.padding_left=10 \
52 script="$PLUGDIR/clock.sh LEFT" \
53
54 # separator
55 sketchybar --add item filler0 left \
56 --set filler0 \
57 label.padding_right=10 \
58 label.padding_left=10 \
59 label="||" \
60
61 # :::
62 # :::: AEROSPACE SUMMARY ::::
63 # ::::: ::::::::::::::::: :::::
64 #
65 # see corresponding scripts for info
66 sketchybar --add item wkspc_count left \
67 --set wkspc_count \
68 updates=on \
69 update_freq=2 \
70 icon=$'\ue3aa' \
71 icon.padding_left=10 \
72 icon.padding_right=10 \
73 label.padding_right=5 \
74 icon.color=0xff8AED9C \
75 script="$PLUGDIR/wkspc.sh count" \
76 icon.font="Font Awesome 6 Duotone:Regular:18" \
77
78 sketchybar --add item filler1 left \
79 --set filler1 \
80 label.padding_right=5 \
81 label.padding_left=5 \
82 label="::" \
83
84 sketchybar --add item wkspc_act left \
85 --set wkspc_act \
86 updates=on \
87 update_freq=2 \
88 label.padding_left=5 \
89 label.padding_right=5 \
90 script="$PLUGDIR/wkspc.sh focus" \
91
92 sketchybar --add item wkspc_other left \
93 --set wkspc_other \
94 updates=on \
95 update_freq=2 \
96 label.padding_left=5 \
97 label.padding_right=5 \
98 script="$PLUGDIR/wkspc.sh others" \
99
100
101 # :::
102 # :::: SLIIIDE TO THE RIGHT ::::
103 # ::::: :::::::::::::::::::: :::::
104 #
105
106 # 24 hour time
107 sketchybar --add item time right \
108 --set time \
109 updates=on \
110 update_freq=10 \
111 label.padding_right=10 \
112 script="$PLUGDIR/clock.sh" \
113 icon.color=0xffff7700 \
114
115 # battery level
116 sketchybar --add item batt right \
117 --set batt \
118 updates=on \
119 update_freq=60 \
120 script="$PLUGDIR/batt.sh" \
121 icon.padding_right=5 \
122 label.padding_right=10
123
124 # wifi status
125 sketchybar --add item wifi right \
126 --set wifi \
127 update_freq=5 \
128 script="$PLUGDIR/wifi.sh" \
129 icon.padding_right=5 \
130 label.padding_right=10
131
132 # cpu usage
133 sketchybar --add item cpu right \
134 --set cpu \
135 updates=on \
136 update_freq=5 \
137 icon=$'\uf2db' \
138 icon.padding_right=5 \
139 label.padding_right=10 \
140 script="$PLUGDIR/cpu.sh" \
141
142 # system memory used (as
143 # reported by memory_pressure command )
144 sketchybar --add item mem right \
145 --set mem \
146 updates=on \
147 update_freq=5 \
148 icon=$'\uf70a' \
149 icon.padding_right=5 \
150 label.padding_right=10 \
151 script="$PLUGDIR/mem.sh" \
152
153 # separator
154 sketchybar --add item filler2 right \
155 --set filler2 \
156 label.padding_right=20 \
157 label="||" \
158
159 # tailscale popup menu
160 sketchybar --add item ssh_menu right \
161 --set ssh_menu \
162 update_freq=30 \
163 script="$PLUGDIR/ssh-quick-connect.sh" \
164 icon=$'\uf489' \
165 icon.padding_right=5 \
166 label.padding_right=10 \
167 --subscribe ssh_menu mouse.clicked
168
169 # server statistics
170 # (load average and memory usage)
171 # over SSH
172 sketchybar --add item srv_right right \
173 --set srv_right \
174 update_freq=30 \
175 script="$PLUGDIR/server-stats.sh kohaku" \
176 icon=$'\uf1c0' \
177 icon.padding_right=10 \
178 label.padding_right=20
179
180 # server statistics
181 # (load average and memory usage)
182 # over SSH
183 sketchybar --add item srv_right2 right \
184 --set srv_right2 \
185 update_freq=30 \
186 script="$PLUGDIR/server-stats.sh almanta" \
187 icon=$'\uf1c0' \
188 icon.padding_right=10 \
189 label.padding_right=20
190
191 sketchybar --update