aly/hyprland: removed unused scratchpads

This commit is contained in:
Aly Raffauf 2024-07-13 21:22:20 -04:00
parent 087b61ef4b
commit d966c37ccf
4 changed files with 44 additions and 6 deletions

View file

@ -22,5 +22,6 @@
./vsCodium
./waybar
./wlogout
./zed
];
}

View file

@ -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;
};
}

View file

@ -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 = {

View file

@ -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)
'';
};
}