add more homebrew packages

This commit is contained in:
Ray Andrew 2025-04-09 01:22:26 -05:00
parent b9eea0f86b
commit 5ea7d41fee
Signed by: rayandrew
SSH key fingerprint: SHA256:XYrYrxF0Z3A72n8P/p6mqPRNQZT22F88XcLsG+kX4xw
3 changed files with 82 additions and 11 deletions

View file

@ -31,7 +31,7 @@ in
enable = true; enable = true;
settings = { settings = {
enable-normalization-flatten-containers = false; enable-normalization-flatten-containers = false;
enable-normalization-opposite-orientation-for-nested-containers = true; enable-normalization-opposite-orientation-for-nested-containers = false;
accordion-padding = 0; accordion-padding = 0;
on-focused-monitor-changed = [ "move-mouse monitor-lazy-center" ]; on-focused-monitor-changed = [ "move-mouse monitor-lazy-center" ];
default-root-container-layout = "tiles"; default-root-container-layout = "tiles";
@ -77,15 +77,20 @@ in
alt-shift-v = "split horizontal"; alt-shift-v = "split horizontal";
# alt-v = "join-with down"; # alt-v = "join-with down";
# alt-shift-v = "join-with right"; # alt-shift-v = "join-with right";
alt-h = "focus left"; alt-h = "focus --boundaries-action wrap-around-the-workspace left";
alt-l = "focus right"; alt-l = "focus --boundaries-action wrap-around-the-workspace right";
alt-j = "focus down"; alt-j = "focus --boundaries-action wrap-around-the-workspace down";
alt-k = "focus up"; alt-k = "focus --boundaries-action wrap-around-the-workspace up";
alt-shift-h = "move left"; alt-shift-h = "move left";
alt-shift-l = "move right"; alt-shift-l = "move right";
alt-shift-j = "move down"; alt-shift-j = "move down";
alt-shift-k = "move up"; alt-shift-k = "move up";
cmd-h = [ ]; # Disable "hide application"
cmd-alt-h = [ ]; # Disable "hide others"
cmd-q = [ ]; # Disable "quit"
cmd-shift-q = [ ]; # Disable "logout"
alt-1 = "workspace 1"; alt-1 = "workspace 1";
alt-2 = "workspace 2"; alt-2 = "workspace 2";
alt-3 = "workspace 3"; alt-3 = "workspace 3";
@ -138,6 +143,7 @@ in
# "workspace 10" # "workspace 10"
]; ];
alt-shift-c = "reload-config";
alt-tab = "workspace-back-and-forth"; alt-tab = "workspace-back-and-forth";
alt-shift-tab = "move-workspace-to-monitor --wrap-around next"; alt-shift-tab = "move-workspace-to-monitor --wrap-around next";
alt-r = "mode resize"; alt-r = "mode resize";
@ -219,23 +225,69 @@ in
}; };
on-window-detected = [ on-window-detected = [
# workspace
# media
{ {
"if".app-id = "com.spotify.client"; "if".app-id = "com.spotify.client";
run = [ "move-node-to-workspace 7" ]; run = [ "move-node-to-workspace 7" ];
} }
# browser
{ {
"if".app-id = "app.zen-browser.zen"; "if".app-id = "app.zen-browser.zen";
run = [ "move-node-to-workspace 10" ]; run = [ "move-node-to-workspace 10" ];
} }
{ {
"if".app-id = "com.mitchellh.ghostty"; "if".app-id = "app.mozilla.firefox";
run = [ "layout tiling" ]; run = [ "move-node-to-workspace 10" ];
} }
{
"if".app-id = "com.google.Chrome";
run = [ "move-node-to-workspace 10" ];
}
{
"if".app-id = "org.chromium.Chromium";
run = [ "move-node-to-workspace 10" ];
}
# communications
{ {
"if".app-id = "com.tinyspeck.slackmacgap"; "if".app-id = "com.tinyspeck.slackmacgap";
run = [ "move-node-to-workspace 9" ]; run = [ "move-node-to-workspace 9" ];
} }
{
"if".app-id = "com.microsoft.teams2";
run = [ "move-node-to-workspace 9" ];
}
# special app's layout
## tiling
{
"if".app-id = "com.mitchellh.ghostty";
run = [ "layout tiling" ];
}
## floating
{
"if".app-id = "com.renfei.SnippetsLab";
run = [ "layout floating" ];
}
{
"if".app-id = "com.colliderli.iina";
run = [ "layout tiling" ];
}
{
"if".app-id = "com.apple.ActivityMonitor";
run = [ "layout floating" ];
}
{
"if".app-id = "com.apple.calculator";
run = [ "layout floating" ];
}
{
"if".app-id = "com.apple.finder";
run = [ "layout floating" ];
}
{
"if".app-id = "com.1password.1password";
run = [ "layout floating" ];
}
]; ];
}; };
}; };

View file

@ -30,6 +30,9 @@
contexts = mkEnableOption "Enable Contexts"; contexts = mkEnableOption "Enable Contexts";
forklift = mkEnableOption "Enable Forklift 4"; forklift = mkEnableOption "Enable Forklift 4";
flux = mkEnableOption "Enable f.lux"; flux = mkEnableOption "Enable f.lux";
cleanshot = mkEnableOption "Enable cleanshot";
snippets-lab = mkEnableOption "Enable SnippetsLab";
iina = mkEnableOption "Enable IINA";
}; };
config = lib.mkMerge [ config = lib.mkMerge [
@ -62,6 +65,11 @@
"Amphetamine" = 937984704; "Amphetamine" = 937984704;
}; };
}) })
(lib.mkIf config.custom.brew.snippets-lab {
homebrew.masApps = {
"SnippetsLab" = 1006087419;
};
})
# casks # casks
(lib.mkIf config.custom.brew.zen-browser { (lib.mkIf config.custom.brew.zen-browser {
homebrew.casks = [ homebrew.casks = [
@ -163,5 +171,15 @@
"flux" "flux"
]; ];
}) })
(lib.mkIf config.custom.brew.cleanshot {
homebrew.casks = [
"cleanshot"
];
})
(lib.mkIf config.custom.brew.iina {
homebrew.casks = [
"iina"
];
})
]; ];
} }

View file

@ -11,8 +11,6 @@
... ...
}: }:
{ {
imports = [ ];
custom = { custom = {
aerospace.enable = true; aerospace.enable = true;
sketchybar.enable = true; sketchybar.enable = true;
@ -38,12 +36,15 @@
ice = true; ice = true;
contexts = true; contexts = true;
flux = true; flux = true;
cleanshot = true;
snippets-lab = true;
iina = true;
}; };
}; };
hm.custom = { hm.custom = {
emacs.enable = true; emacs.enable = true;
latex.enable = false; latex.enable = true;
gui = { gui = {
default.enable = true; default.enable = true;
darwin.enable = true; darwin.enable = true;