forked from unsecretised/Sketchybar-Config
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsketchybarrc
More file actions
executable file
·281 lines (253 loc) · 11.6 KB
/
sketchybarrc
File metadata and controls
executable file
·281 lines (253 loc) · 11.6 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
# Kanagawa x Catppuccin Fusion Theme for SketchyBar
# A dreamy blend of nature-inspired minimalism and vibrant pastels
# Background opacities kept minimal (≤20%) for that clean, floating aesthetic
PLUGIN_DIR="$CONFIG_DIR/plugins"
# Color Palette - Kanagawa x Catppuccin Fusion
# Kanagawa base colors
SUMI_INK_0="0x1f1f28" # Dark background
SUMI_INK_1="0x16161d" # Darker background
SUMI_INK_2="0x2a2a37" # Medium background
WAVE_BLUE_1="0x7e9cd8" # Blue accent
WAVE_BLUE_2="0x7fb4ca" # Light blue
SPRING_BLUE="0x7fb4ca" # Spring blue
CRYSTAL_BLUE="0x7aa89f" # Crystal blue
# Catppuccin vibrant accents
ROSEWATER="0xf5e0dc" # Warm white
FLAMINGO="0xf2cdcd" # Light pink
PINK="0xf5c2e7" # Pink
MAUVE="0xcba6f7" # Purple
RED="0xf38ba8" # Red
MAROON="0xeba0ac" # Maroon
PEACH="0xfab387" # Orange
YELLOW="0xf9e2af" # Yellow
GREEN="0xa6e3a1" # Green
TEAL="0x94e2d5" # Teal
SKY="0x89dceb" # Sky blue
SAPPHIRE="0x74c7ec" # Sapphire
BLUE="0x89b4fa" # Blue
LAVENDER="0xb4befe" # Lavender
##### Bar Appearance #####
# Ultra-minimal bar with subtle gradient hint
sketchybar --bar position=top \
height=34 \
color=0x00${SUMI_INK_0:2} \
shadow=on
sticky=on \
padding_left=8 \
padding_right=8 \
corner_radius=0 \
border_width=0
##### Defaults - Kanagawa x Catppuccin Fusion #####
default=(
padding_left=8
padding_right=8
icon.font="JetBrainsMono Nerd Font:Bold:16.0"
label.font="JetBrainsMono Nerd Font:Medium:13.0"
background.color=0x20${SUMI_INK_1:2}
background.corner_radius=8
background.height=26
background.border_width=1
background.border_color=0x30${WAVE_BLUE_1:2}
icon.color=0xff${SKY:2}
label.color=0xff${ROSEWATER:2}
icon.padding_left=6
icon.padding_right=6
label.padding_left=6
label.padding_right=6
icon.font.size=15.0
label.font.size=13.0
)
sketchybar --default "${default[@]}"
##### Apple Logo - Catppuccin Rainbow #####
sketchybar --add item applelogo left \
--set applelogo icon= \
icon.font="JetBrainsMono Nerd Font:Bold:14.0" \
icon.color=0xff${PINK:2} \
background.color=0x18${MAUVE:2} \
background.corner_radius=12 \
background.border_width=1 \
background.border_color=0x40${PINK:2} \
label.drawing=off \
padding_left=10 \
padding_right=10
##### Rift Workspaces in SketchyBar #####
SPACE_ICONS=("一" "二" "三" "四" "五" "六" "七" "八" "九" "十")
SPACE_COLORS=(
"${PEACH:2}" "${GREEN:2}" "${SKY:2}" "${MAUVE:2}" "${YELLOW:2}"
"${TEAL:2}" "${PINK:2}" "${LAVENDER:2}" "${SAPPHIRE:2}" "${MAROON:2}"
)
RIFT_DATA="$(rift-cli query workspaces)"
workspace_count=$(printf '%s\n' "$RIFT_DATA" | jq 'length')
max_spaces=${#SPACE_ICONS[@]}
if [ "$workspace_count" -gt "$max_spaces" ]; then
workspace_count=$max_spaces
fi
for (( i=0; i<workspace_count; i++ )); do
sid=$((i + 1))
color_index=$((i % ${#SPACE_COLORS[@]}))
space_color="${SPACE_COLORS[color_index]}"
space=(
icon="${SPACE_ICONS[i]}"
icon.font="JetBrainsMono Nerd Font:Bold:14.0"
icon.color=0xff$space_color
icon.highlight_color=0xff${ROSEWATER:2}
icon.padding_left=8
icon.padding_right=6
# Workspace pill background
background.color=0x18${SUMI_INK_2:2}
background.corner_radius=11
background.border_width=1
background.border_color=0x50$space_color
background.height=26
# Label: will hold multiple app icons
label.drawing=on
label.color=0xff${ROSEWATER:2}
label.font="JetBrainsMono Nerd Font:Medium:13.0"
# A bit more space inside pill
label.padding_left=6
label.padding_right=0
)
sketchybar --add item "rift_space.$sid" left \
--set "rift_space.$sid" "${space[@]}"
done
# Initial update of workspace labels
sketchybar --add item rift_updater left \
--set rift_updater script="$PLUGIN_DIR/rift_workspaces.sh" \
update_freq=3 \
drawing=off
##### Left Items - Dreamy Pastels #####
sketchybar --add item front_app left \
--set front_app icon.drawing=off \
background.color=0x18${TEAL:2} \
background.corner_radius=8 \
background.border_width=1 \
background.border_color=0x40${TEAL:2} \
label.color=0xff${ROSEWATER:2} \
label.font="JetBrainsMono Nerd Font:Medium:13.0" \
script="$PLUGIN_DIR/front_app.sh" \
--subscribe front_app front_app_switched
sketchybar --add item bluetooth left \
--set bluetooth icon= \
icon.color=0xff${BLUE:2} \
background.color=0x15${SUMI_INK_2:2} \
background.corner_radius=8 \
background.border_width=1 \
background.border_color=0x40${BLUE:2} \
update_freq=5 \
script="$PLUGIN_DIR/bluetooth.sh" \
label.drawing=off \
--subscribe bluetooth mouse.clicked
##### Right Items - Kanagawa Nature Vibes #####
sketchybar --add item clock right \
--set clock icon= \
icon.color=0xff${LAVENDER:2} \
icon.font="JetBrainsMono Nerd Font:Bold:16.0" \
label.color=0xff${ROSEWATER:2} \
background.color=0x18${LAVENDER:2} \
background.corner_radius=8 \
background.border_width=1 \
background.border_color=0x40${LAVENDER:2} \
update_freq=1 \
script="$PLUGIN_DIR/clock.sh"
sketchybar --add item volume right \
--set volume icon= \
icon.color=0xff${YELLOW:2} \
label.color=0xff${ROSEWATER:2} \
background.color=0x18${YELLOW:2} \
background.corner_radius=8 \
background.border_width=1 \
background.border_color=0x40${YELLOW:2} \
script="$PLUGIN_DIR/volume.sh" \
--subscribe volume volume_change
sketchybar --add item battery right \
--set battery icon= \
icon.color=0xff${GREEN:2} \
label.color=0xff${ROSEWATER:2} \
background.color=0x18${GREEN:2} \
background.corner_radius=8 \
background.border_width=1 \
background.border_color=0x40${GREEN:2} \
update_freq=120 \
script="$PLUGIN_DIR/battery.sh" \
--subscribe battery system_woke power_source_change
##### Spotify - Dreamy Music Vibes (Similar to Original) #####
SPOTIFY_EVENT="com.spotify.client.PlaybackStateChanged"
POPUP_SCRIPT="sketchybar -m --set \$NAME popup.drawing=toggle"
sketchybar --add event spotify_change $SPOTIFY_EVENT \
--add item spotify.name right \
--set spotify.name icon= \
icon.color=0xff${GREEN:2} \
label="Umang" \
label.color=0xff${ROSEWATER:2} \
background.color=0x20${SUMI_INK_2:2} \
background.corner_radius=10 \
background.border_width=1 \
background.border_color=0x50${GREEN:2} \
click_script="$POPUP_SCRIPT" \
popup.horizontal=on \
popup.align=center \
popup.background.color=0x20${SUMI_INK_0:2} \
popup.background.corner_radius=15 \
popup.background.border_width=2 \
popup.background.border_color=0x60${WAVE_BLUE_1:2}
# Spotify Controls - Catppuccin Pastels
sketchybar --add item spotify.back popup.spotify.name \
--set spotify.back icon= \
icon.color=0xff${SKY:2} \
icon.highlight_color=0xff${BLUE:2} \
background.color=0x20${SUMI_INK_2:2} \
background.corner_radius=8 \
background.border_width=1 \
background.border_color=0x40${SKY:2} \
label.drawing=off \
script="$PLUGIN_DIR/spotify.sh" \
--subscribe spotify.back mouse.clicked
sketchybar --add item spotify.play popup.spotify.name \
--set spotify.play icon= \
icon.color=0xff${GREEN:2} \
icon.highlight_color=0xff${PEACH:2} \
background.color=0x20${SUMI_INK_2:2} \
background.corner_radius=8 \
background.border_width=1 \
background.border_color=0x40${GREEN:2} \
label.drawing=off \
updates=on \
script="$PLUGIN_DIR/spotify.sh" \
--subscribe spotify.play mouse.clicked spotify_change
sketchybar --add item spotify.next popup.spotify.name \
--set spotify.next icon= \
icon.color=0xff${SKY:2} \
icon.highlight_color=0xff${BLUE:2} \
background.color=0x20${SUMI_INK_2:2} \
background.corner_radius=8 \
background.border_width=1 \
background.border_color=0x40${SKY:2} \
label.drawing=off \
script="$PLUGIN_DIR/spotify.sh" \
--subscribe spotify.next mouse.clicked
sketchybar --add item spotify.shuffle popup.spotify.name \
--set spotify.shuffle icon= \
icon.color=0xff${PINK:2} \
icon.highlight_color=0xff${GREEN:2} \
background.color=0x20${SUMI_INK_2:2} \
background.corner_radius=8 \
background.border_width=1 \
background.border_color=0x40${PINK:2} \
label.drawing=off \
script="$PLUGIN_DIR/spotify.sh" \
--subscribe spotify.shuffle mouse.clicked
sketchybar --add item spotify.repeat popup.spotify.name \
--set spotify.repeat icon= \
icon.color=0xff${MAUVE:2} \
icon.highlight_color=0xff${TEAL:2} \
background.color=0x20${SUMI_INK_2:2} \
background.corner_radius=8 \
background.border_width=1 \
background.border_color=0x40${MAUVE:2} \
label.drawing=off \
script="$PLUGIN_DIR/spotify.sh" \
--subscribe spotify.repeat mouse.clicked
##### Finalize #####
echo "🌸 Kanagawa x Catppuccin theme loaded successfully!"
echo "✨ Enjoy your dreamy, minimalist status bar!"
sketchybar --update