Added: Darwin Config

This commit is contained in:
2025-09-27 16:18:13 +02:00
parent 26461fbf13
commit aa3e1cedce
5 changed files with 270 additions and 128 deletions

View File

@@ -67,99 +67,4 @@
ctrl - q : open -a kitty --args --directory="~"
'';
};
services.sketchybar = {
enable = true;
config = ''
# Bar configuration (batched together for efficiency)
sketchybar --bar color=0x1e1e2e \
border_color=0xffff9e2e \
position=top \
height=25 \
notch_display_height=0 \
margin=0 \
y_offset=0 \
corner_radius=0 \
border_width=2 \
blur_radius=0 \
padding_left=0 \
padding_right=2 \
notch_width=200 \
notch_offset=0 \
display=all \
hidden=off \
topmost=off \
sticky=on \
font_smoothing=off \
shadow=off
# Default item properties
sketchybar --default updates=when_shown \
icon.font="Hack Nerd Font:Bold:14.0" \
icon.color=0xffcdd6f4 \
label.font="Hack Nerd Font:Regular:12.0" \
label.color=0xffcdd6f4
# Left items - Date and time
sketchybar --add item date left \
--set date icon= \
label="$(date '+%a %d %b')" \
script='while true; do sketchybar --set date label="$(date "+%a %d %b")"; sleep 300; done' \
update_freq=300
sketchybar --add item time left \
--set time icon= \
label="$(date '+%H:%M')" \
script='while true; do sketchybar --set time label="$(date "+%H:%M")"; sleep 60; done' \
update_freq=60
# Center items - Active window title
sketchybar --add item title center \
--set title label="Desktop" \
script='sketchybar --set title label="$INFO"'
# Right items - System info
sketchybar --add item cpu right \
--set cpu icon= \
label="?" \
script='~/.config/sketchybar/plugins/cpu.sh' \
update_freq=5
sketchybar --add item ram right \
--set ram icon= \
label="?" \
script='~/.config/sketchybar/plugins/ram.sh' \
update_freq=5
sketchybar --add item battery right \
--set battery icon= \
label="?" \
script='~/.config/sketchybar/plugins/battery.sh' \
update_freq=10
sketchybar --add item volume right \
--set volume icon= \
label="?" \
script='~/.config/sketchybar/plugins/volume.sh' \
update_freq=1
sketchybar --add item wifi right \
--set wifi icon= \
label="?" \
script='~/.config/sketchybar/plugins/wifi.sh' \
update_freq=10
# Spacing items
sketchybar --add item spacer_left left \
--set spacer_left width=10
sketchybar --add item spacer_right right \
--set spacer_right width=10
# Subscribe to events
sketchybar --subscribe title front_app_switched \
volume volume_change \
battery power_source_change system_woke
'';
};
}