Skip to content

Commit

Permalink
feat: bat theme
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Dec 2, 2024
1 parent d7dba37 commit befce97
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions user/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rec
anyrun = callPackage ./wrapped/anyrun {inherit theme;};
waybar = callPackage ./wrapped/waybar {inherit theme;};
mako = callPackage ./wrapped/mako {inherit theme;};
bat = callPackage ./wrapped/bat {inherit theme;};
};

shell = pkgs:
Expand Down
2 changes: 2 additions & 0 deletions user/theme/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ pkgs: rec {
accent = regular.blue;
wallpaper = ./wall.jpg;

bat = "Nord";

nvim = {
enable = true;
# uses generated base16 them if set to false
Expand Down
13 changes: 13 additions & 0 deletions user/wrapped/bat/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
pkgs,
theme,
...
}:
pkgs.symlinkJoin {
name = "bat-wrapped";
paths = [pkgs.bat];
buildInputs = [pkgs.makeWrapper];
postBuild = ''
wrapProgram $out/bin/bat --add-flags "--theme=${theme.bat}"
'';
}
2 changes: 1 addition & 1 deletion user/wrapped/zsh/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ in rec {
# imagine using mp3
ytopus = "yt-dlp -x --embed-metadata --audio-quality 0 --audio-format opus --embed-metadata --embed-thumbnail";

cat = "${getExe pkgs.bat} --plain";
cat = "bat --plain";

kys = "shutdown now";

Expand Down

0 comments on commit befce97

Please sign in to comment.