From d966c37ccff570a7338515bd7699b25671f8214b Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 13 Jul 2024 21:22:20 -0400 Subject: [PATCH] aly/hyprland: removed unused scratchpads --- homeManagerModules/apps/default.nix | 1 + homeManagerModules/apps/zed/default.nix | 32 +++++++++++++++++++++++++ homeManagerModules/options.nix | 11 +++++++++ homes/aly/windowManagers/default.nix | 6 ----- 4 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 homeManagerModules/apps/zed/default.nix diff --git a/homeManagerModules/apps/default.nix b/homeManagerModules/apps/default.nix index 4bb725a0..1c648975 100644 --- a/homeManagerModules/apps/default.nix +++ b/homeManagerModules/apps/default.nix @@ -22,5 +22,6 @@ ./vsCodium ./waybar ./wlogout + ./zed ]; } diff --git a/homeManagerModules/apps/zed/default.nix b/homeManagerModules/apps/zed/default.nix new file mode 100644 index 00000000..d4f67284 --- /dev/null +++ b/homeManagerModules/apps/zed/default.nix @@ -0,0 +1,32 @@ +{ + pkgs, + lib, + config, + ... +}: let + cfg = config.ar.home.apps.zed; +in { + config = lib.mkIf cfg.enable { + home.packages = [cfg.package]; + + cfg.settings = lib.mkDefault { + "buffer_font_family" = "NotoSansM Nerd Font"; + "auto_update" = false; + "vim_mode" = false; + "theme" = "Adwaita Pastel Dark"; + "ui_font_size" = 16; + "buffer_font_size" = 14; + "autosave" = "on_focus_change"; + "indent_guides" = { + "enabled" = true; + "line_width" = 1; + "coloring" = "indent_aware"; + "background_coloring" = "disabled"; + }; + }; + + xdg.configFile."zed/settings.json".text = + lib.generators.toJSON {} + cfg.settings; + }; +} diff --git a/homeManagerModules/options.nix b/homeManagerModules/options.nix index 4464340d..3ca019bc 100644 --- a/homeManagerModules/options.nix +++ b/homeManagerModules/options.nix @@ -53,6 +53,17 @@ in { vsCodium.enable = lib.mkEnableOption "VSCodium text editor."; waybar.enable = lib.mkEnableOption "Waybar wayland panel."; wlogout.enable = lib.mkEnableOption "Wlogout session prompt."; + + zed = { + enable = lib.mkEnableOption "Zed text editor."; + package = lib.mkPackageOption pkgs "zed-editor" {}; + + settings = lib.mkOption { + description = "Zed settings."; + default = {}; + type = lib.types.attrs; + }; + }; }; defaultApps = { diff --git a/homes/aly/windowManagers/default.nix b/homes/aly/windowManagers/default.nix index e74fcfce..ea28fcef 100644 --- a/homes/aly/windowManagers/default.nix +++ b/homes/aly/windowManagers/default.nix @@ -52,12 +52,6 @@ bind = SUPER SHIFT, N, movetoworkspace, special:notes workspace = special:notes, on-created-empty:${lib.getExe' pkgs.obsidian "obsidian"} # windowrulev2 = workspace special:notes,class:(obsidian) - - # # Scratchpad Music - # bind = SUPER, P, togglespecialworkspace, music - # bind = SUPER SHIFT, P, movetoworkspace, special:music - # workspace = special:music, on-created-empty:${lib.getExe' pkgs.plexamp "plexamp"} - # windowrulev2 = workspace special:music,class:(Plexamp) ''; }; }