Hyprland configs, adding mount points for other hard drives, adjusting btrfs subvolume use.

This commit is contained in:
2025-10-13 15:50:19 -05:00
parent 151ec8427e
commit 344ba2af68
7 changed files with 203 additions and 16 deletions

123
modules/home/hyprland.nix Normal file
View File

@@ -0,0 +1,123 @@
{ pkgs, lib, ... }:
let
startupScript = pkgs.pkgs.writeShellScriptBin "start" ''
${pkgs.waybar}/bin/waybar &
${pkgs.swww}/bin/swww init &
sleep 1
'';
in
{
wayland.windowManager.hyprland = {
enable = true;
settings = {
exec-once = ''${startupScript}/bin/start'';
decoration = {
#shadow_offset = "0.5";
#"col.shadow" = "rgba(00000099)";
};
monitor = [
"DP-2, preferred, auto-right, auto"
"DP-3, preferred, auto-left, auto"
",preferred,auto,auto"
];
"$mod" = "SUPER";
"$terminal" = "alacritty";
"$browser" = "firefox";
general = {
gaps_in = 5;
gaps_out = 20;
border_size = 2;
resize_on_border = true;
layout = "master";
};
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
"$mod ALT, mouse:272, resizewindow"
];
bind = [
"$mod, return, exec, $terminal"
"$mod, W, exec, $browser"
"$mod, Q, killactive,"
"$mod, M, exit,"
"$mod, E, exec, $fileManager"
"$mod, V, togglefloating,"
"$mod, R, exec, $menu"
"$mod, P, pseudo, # dwindle"
"$mod, J, togglesplit, # dwindle"
"$mod, left, movefocus, l"
"$mod, right, movefocus, r"
"$mod, up, movefocus, u"
"$mod, down, movefocus, d"
"$mod, 1, workspace, 1"
"$mod, 2, workspace, 2"
"$mod, 3, workspace, 3"
"$mod, 4, workspace, 4"
"$mod, 5, workspace, 5"
"$mod, 6, workspace, 6"
"$mod, 7, workspace, 7"
"$mod, 8, workspace, 8"
"$mod, 9, workspace, 9"
"$mod, 0, workspace, 10"
"$mod SHIFT, 1, movetoworkspace, 1"
"$mod SHIFT, 2, movetoworkspace, 2"
"$mod SHIFT, 3, movetoworkspace, 3"
"$mod SHIFT, 4, movetoworkspace, 4"
"$mod SHIFT, 5, movetoworkspace, 5"
"$mod SHIFT, 6, movetoworkspace, 6"
"$mod SHIFT, 7, movetoworkspace, 7"
"$mod SHIFT, 8, movetoworkspace, 8"
"$mod SHIFT, 9, movetoworkspace, 9"
"$mod SHIFT, 0, movetoworkspace, 10"
"$mod, S, togglespecialworkspace, magic"
"$mod SHIFT, S, movetoworkspace, special:magic"
"$mod, mouse_down, workspace, e+1"
"$mod, mouse_up, workspace, e-1"
];
animations = {
enabled = true;
# NAME, X0, Y0, X1, Y1
bezier = [
"easeOutQuint, 0.23, 1, 0.32, 1"
"easeInOutCubic, 0.65, 0.05, 0.36, 1"
"linear, 0, 0, 1, 1"
"almostLinear, 0.5, 0.5, 0.75, 1"
"quick, 0.15, 0, 0.1, 1"
];
# NAME, ONOFF, SPEED, CURVE, [STYLE]
animation = [
"global, 1, 10, default"
"border, 1, 5.39, easeOutQuint"
"windows, 1, 4.79, easeOutQuint"
"windowsIn, 1, 4.1, easeOutQuint, popin 87%"
"windowsOut, 1, 1.49, linear, popin 87%"
"fadeIn, 1, 1.73, almostLinear"
"fadeOut, 1, 1.46, almostLinear"
"fade, 1, 3.03, quick"
"layers, 1, 3.81, easeOutQuint"
"layersIn, 1, 4, easeOutQuint, fade"
"layersOut, 1, 1.5, linear, fade"
"fadeLayersIn, 1, 1.79, almostLinear"
"fadeLayersOut, 1, 1.39, almostLinear"
"workspaces, 1, 1.94, almostLinear, fade"
"workspacesIn, 1, 1.21, almostLinear, fade"
"workspacesOut, 1, 1.94, almostLinear, fade"
"zoomFactor, 1, 7, quick"
];
};
};
};
}

4
modules/home/vim.nix Executable file → Normal file
View File

@@ -53,7 +53,7 @@
};
extraPlugins = with pkgs.vimPlugins; [
orgmode
vim-nix
vim-nix
];
extraConfigLua = ''
@@ -82,6 +82,6 @@
autocmd FileType nix setlocal noexpandtab tabstop=4 shiftwidth=4 softtabstop=0
'';
#colorschemes.base16.enable = true;
colorschemes.base16.enable = true;
};
}

View File

@@ -0,0 +1,11 @@
{ config, pkgs, inputs, ... }:
{
imports = [ ];
programs.hyprland.enable = true;
#Packages
environment.systemPackages = with pkgs; [
alacritty
];
}