Skip to content

Commit

Permalink
fix ice-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
shelken committed Sep 22, 2024
1 parent 018f212 commit 28634ce
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 6 deletions.
6 changes: 3 additions & 3 deletions home/darwin/wm/ice-bar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ in {
# };
# };

home.packages = with pkgs; [
ice-bar
];
# home.packages = with pkgs; [
# ice-bar
# ];
};
}
5 changes: 4 additions & 1 deletion hosts/mio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ in {
imports = [
./apps.nix
];
shelken.wm.aerospace.enable = true;
shelken.wm = {
aerospace.enable = true;
iceBar.enable = true;
};
}
5 changes: 4 additions & 1 deletion hosts/yuuko/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ in {
imports = [
./apps.nix
];
shelken.wm.aerospace.enable = true;
shelken.wm = {
aerospace.enable = true;
iceBar.enable = true;
};
}
2 changes: 1 addition & 1 deletion modules/darwin/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ in {
# "iina" # video player
"raycast" # macOS 12+ (HotKey: alt/option + space)search, calculate and run scripts(with many plugins)
"stats" # beautiful system status monitor in menu bar
# "appcleaner" # app uninstall
"appcleaner" # app uninstall
# "applite" # homebrew ui; need macOS 13+
# "hiddenbar" # menubar plugin
# "picgo" # picbed
Expand Down
4 changes: 4 additions & 0 deletions modules/darwin/wm/aerospace.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ in {
casks = [
"aerospace"
];
brews = [
# janky borders; for aerospace; need macOS 14+
"borders"
];
};
};
}
1 change: 1 addition & 0 deletions modules/darwin/wm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
./skhd.nix
./yabai.nix
./aerospace.nix
./ice-bar.nix
# ./sketchybar.nix
];
}
26 changes: 26 additions & 0 deletions modules/darwin/wm/ice-bar.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
lib,
mylib,
config,
# options,
...
}: let
inherit (lib) mkIf;
inherit (mylib) mkBoolOpt;
cfg = config.shelken.wm.iceBar;
in {
options.shelken.wm.iceBar = {
enable = mkBoolOpt false "Whether or not to enable.";
};

config = mkIf cfg.enable {
# 版本差异的
homebrew = {
casks = [
"jordanbaird-ice"
];
brews = [
];
};
};
}

0 comments on commit 28634ce

Please sign in to comment.