Changed: Sketchybar

This commit is contained in:
2025-10-23 08:31:57 +02:00
parent c3197b86a9
commit ced4c6e050
3 changed files with 49 additions and 5 deletions

View File

@@ -21,7 +21,6 @@
inputs.nixpkgs.follows = "nixpkgs";
};
sketchybar-config.url = "github:kcraft059/sketchybar-config";
catppuccin.url = "github:catppuccin/nix";
};

49
darwin/sketchybar.nix Normal file
View File

@@ -0,0 +1,49 @@
{ ... }:
{
programs.sketchybar = {
enable = true;
config = ''
# Define colors
export ROSEWATER="0xf5e0dcff"
export FLAMINGO="0xf2cdcdff"
export PINK="0xf5c2e7ff"
export MAUVE="0xcba6f7ff"
export RED="0xf38ba8ff"
export MAROON="0xeba0acff"
export PEACH="0xfab387ff"
export YELLOW="0xf9e2afff"
export GREEN="0xa6e3a1ff"
export TEAL="0x94e2d5ff"
export SKY="0x89dcebff"
export SAPPHIRE="0x74c7ecff"
export BLUE="0x89b4faff"
export LAVENDER="0xb4befeff"
export TEXT="0xcdd6f4ff"
export SUBTEXT1="0xbac2deff"
export SUBTEXT2="0xa6adc8ff"
export OVERLAY2="0x9399b2ff"
export OVERLAY1="0x7f849cff"
export OVERLAY0="0x6c7086ff"
export SURFACE2="0x585b70ff"
export SURFACE1="0x45475aff"
export SURFACE0="0x313244ff"
export BASE="0x1e1e2eff"
export MANTLE="0x181825ff"
export CRUST="0x11111bff"
# Configure bar
sketchybar --bar height=32 \
position=top \
padding_left=10 \
padding_right=10 \
color=$CRUST
sketchybar --add item clock
sketchybar --set clock \
script="$(date +'%a %b %d, %I:%M %p')" \
update_freq=10 \
label.color=$TEXT \
label.font.size=16
'';
};
}

View File

@@ -67,8 +67,4 @@
ctrl - q : open -a kitty --args --directory="~"
'';
};
services.sketchybar = {
enable = true;
};
}