diff --git a/darwin/flake.nix b/darwin/flake.nix index 2c9f931..64d5afb 100644 --- a/darwin/flake.nix +++ b/darwin/flake.nix @@ -21,7 +21,6 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - sketchybar-config.url = "github:kcraft059/sketchybar-config"; catppuccin.url = "github:catppuccin/nix"; }; diff --git a/darwin/sketchybar.nix b/darwin/sketchybar.nix new file mode 100644 index 0000000..637453a --- /dev/null +++ b/darwin/sketchybar.nix @@ -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 + ''; + }; +} diff --git a/darwin/yabari.nix b/darwin/yabari.nix index d75a295..4d78afc 100644 --- a/darwin/yabari.nix +++ b/darwin/yabari.nix @@ -67,8 +67,4 @@ ctrl - q : open -a kitty --args --directory="~" ''; }; - - services.sketchybar = { - enable = true; - }; }