mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 12:23:56 -05:00
aly/hyprland: removed unused scratchpads
This commit is contained in:
parent
087b61ef4b
commit
d966c37ccf
|
@ -22,5 +22,6 @@
|
||||||
./vsCodium
|
./vsCodium
|
||||||
./waybar
|
./waybar
|
||||||
./wlogout
|
./wlogout
|
||||||
|
./zed
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
32
homeManagerModules/apps/zed/default.nix
Normal file
32
homeManagerModules/apps/zed/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -53,6 +53,17 @@ in {
|
||||||
vsCodium.enable = lib.mkEnableOption "VSCodium text editor.";
|
vsCodium.enable = lib.mkEnableOption "VSCodium text editor.";
|
||||||
waybar.enable = lib.mkEnableOption "Waybar wayland panel.";
|
waybar.enable = lib.mkEnableOption "Waybar wayland panel.";
|
||||||
wlogout.enable = lib.mkEnableOption "Wlogout session prompt.";
|
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 = {
|
defaultApps = {
|
||||||
|
|
|
@ -52,12 +52,6 @@
|
||||||
bind = SUPER SHIFT, N, movetoworkspace, special:notes
|
bind = SUPER SHIFT, N, movetoworkspace, special:notes
|
||||||
workspace = special:notes, on-created-empty:${lib.getExe' pkgs.obsidian "obsidian"}
|
workspace = special:notes, on-created-empty:${lib.getExe' pkgs.obsidian "obsidian"}
|
||||||
# windowrulev2 = workspace special:notes,class:(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)
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue