74 lines
3.3 KiB
Plaintext
74 lines
3.3 KiB
Plaintext
|
#!/usr/bin/env sh
|
||
|
|
||
|
source "$HOME/.config/sketchybar/colors.sh" # Loads all defined colors
|
||
|
source "$HOME/.config/sketchybar/icons.sh" # Loads all defined icons
|
||
|
|
||
|
ITEM_DIR="$HOME/.config/sketchybar/items" # Directory where the items are configured
|
||
|
PLUGIN_DIR="$HOME/.config/sketchybar/plugins" # Directory where all the plugin scripts are stored
|
||
|
|
||
|
FONT="SF Pro" # Needs to have Regular, Bold, Semibold, Heavy and Black variants
|
||
|
SPACE_CLICK_SCRIPT="yabai -m space --focus \$SID 2>/dev/null" # The script that is run for clicking on space components
|
||
|
|
||
|
PADDINGS=3 # All paddings use this value (icon, label, background)
|
||
|
|
||
|
POPUP_BORDER_WIDTH=2
|
||
|
POPUP_CORNER_RADIUS=11
|
||
|
|
||
|
SHADOW=on
|
||
|
|
||
|
HELPER=git.felix.helper
|
||
|
# Start the helper process
|
||
|
killall helper
|
||
|
# cd $HOME/.config/sketchybar/helper && make
|
||
|
$HOME/.config/sketchybar/helper/helper $HELPER > /dev/null 2>&1 &
|
||
|
|
||
|
# Setting up the general bar appearance and default values
|
||
|
sketchybar --bar height=39 \
|
||
|
color=$BAR_COLOR \
|
||
|
shadow=$SHADOW \
|
||
|
position=top \
|
||
|
sticky=on \
|
||
|
padding_right=$((10 - $PADDINGS)) \
|
||
|
padding_left=18 \
|
||
|
corner_radius=9 \
|
||
|
y_offset=10 \
|
||
|
margin=10 \
|
||
|
blur_radius=20 \
|
||
|
notch_width=0 \
|
||
|
\
|
||
|
--default updates=when_shown \
|
||
|
icon.font="$FONT:Bold:14.0" \
|
||
|
icon.color=$ICON_COLOR \
|
||
|
icon.padding_left=$PADDINGS \
|
||
|
icon.padding_right=$PADDINGS \
|
||
|
label.font="$FONT:Semibold:13.0" \
|
||
|
label.color=$LABEL_COLOR \
|
||
|
label.padding_left=$PADDINGS \
|
||
|
label.padding_right=$PADDINGS \
|
||
|
background.padding_right=$PADDINGS \
|
||
|
background.padding_left=$PADDINGS \
|
||
|
popup.background.border_width=2 \
|
||
|
popup.background.corner_radius=11 \
|
||
|
popup.background.border_color=$POPUP_BORDER_COLOR \
|
||
|
popup.background.color=$POPUP_BACKGROUND_COLOR \
|
||
|
popup.background.shadow.drawing=$SHADOW
|
||
|
|
||
|
# Left
|
||
|
source "$ITEM_DIR/apple.sh"
|
||
|
source "$ITEM_DIR/spaces.sh"
|
||
|
source "$ITEM_DIR/front_app.sh"
|
||
|
|
||
|
# Center
|
||
|
source "$ITEM_DIR/spotify.sh"
|
||
|
|
||
|
# Right
|
||
|
source "$ITEM_DIR/github.sh"
|
||
|
source "$ITEM_DIR/calendar.sh"
|
||
|
source "$ITEM_DIR/cpu.sh"
|
||
|
source "$ITEM_DIR/volume.sh"
|
||
|
|
||
|
############## FINALIZING THE SETUP ##############
|
||
|
sketchybar --update
|
||
|
|
||
|
echo "sketchybar configuation loaded.."
|