ft: hyprland to home manager, mostly
This commit is contained in:
@@ -1,6 +1,54 @@
|
||||
{ ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
#----------------------------------------Autostart----------------------------------------
|
||||
# hl.on("hyprland.start", function()
|
||||
# -- plugins
|
||||
# hl.exec_cmd("hyprpm reload")
|
||||
#
|
||||
# -- run kanshi for output placement (also starts up bg and waybar)
|
||||
# hl.exec_cmd("kanshi")
|
||||
#
|
||||
# -- notification manager
|
||||
# hl.exec_cmd("dunst")
|
||||
#
|
||||
# -- start a terminal in the scratchpad
|
||||
# hl.exec_cmd("kitty --class scratchme -d ~/Documents/diary")
|
||||
#
|
||||
# -- run flameshot daemon
|
||||
# hl.exec_cmd("nohup flameshot")
|
||||
#
|
||||
# -- cursor theme
|
||||
# hl.exec_cmd("hyprctl setcursor Catppuccin-Macchiato-Dark-Cursors 24")
|
||||
#
|
||||
# -- opencloud
|
||||
# hl.exec_cmd("opencloud")
|
||||
#
|
||||
# -- openrgb
|
||||
# hl.exec_cmd("type openrgb &> /dev/null && openrgb --noautoconnect -p aroace.orp > /dev/null")
|
||||
# end)
|
||||
#
|
||||
|
||||
|
||||
let
|
||||
hyprLib = import ../../lib/hypr.nix { inherit lib; };
|
||||
|
||||
mainMod = "SUPER";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import ./hypr-bindings.nix { inherit hyprLib mainMod; })
|
||||
./hypr-input.nix
|
||||
./hypr-look-and-feel.nix
|
||||
(import ./hypr-passthrough.nix { inherit hyprLib mainMod; })
|
||||
(import ./hypr-plugins.nix { inherit hyprLib mainMod lib pkgs; })
|
||||
./hypr-rules.nix
|
||||
(import ./hypr-shutdown.nix { inherit hyprLib mainMod; })
|
||||
(import ./hypr-workspaces.nix { inherit hyprLib mainMod; })
|
||||
./hypr-xf86.nix
|
||||
./hyprapps.nix
|
||||
];
|
||||
_module.args.hyprLib = hyprLib;
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
@@ -17,92 +65,56 @@
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: symlink entire shellscript directory here.
|
||||
|
||||
home-manager.users."djai".programs.hyprlock = {
|
||||
home-manager.users."djai".wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
configType = "lua";
|
||||
|
||||
plugins = with pkgs; [
|
||||
hyprlandPlugins.hypr-darkwindow
|
||||
];
|
||||
portalPackage = null;
|
||||
|
||||
settings = {
|
||||
general = {
|
||||
hide_cursor = true;
|
||||
ignore_empty_input = true;
|
||||
};
|
||||
config = {
|
||||
general = {
|
||||
gaps_in = 5;
|
||||
gaps_out = 1;
|
||||
border_size = 2;
|
||||
|
||||
animations = {
|
||||
enabled = true;
|
||||
fade_in = {
|
||||
duration = 300;
|
||||
bezier = "easeOutQuint";
|
||||
};
|
||||
fade_out = {
|
||||
duration = 300;
|
||||
bezier = "easeOutQuint";
|
||||
col = {
|
||||
active_border = { colors = [
|
||||
(lib.generators.mkLuaInline "colors.blue")
|
||||
(lib.generators.mkLuaInline "colors.mauve")
|
||||
]; angle = 45; };
|
||||
inactive_border = (lib.generators.mkLuaInline "colors.mantle");
|
||||
};
|
||||
|
||||
layout = "dwindle";
|
||||
};
|
||||
|
||||
input_field_dots = {
|
||||
duration = 100;
|
||||
bezier = "linear";
|
||||
dwindle = {
|
||||
preserve_split = true;
|
||||
special_scale_factor = 0.7;
|
||||
};
|
||||
|
||||
misc = {
|
||||
enable_anr_dialog = false;
|
||||
enable_swallow = false;
|
||||
disable_hyprland_logo = true;
|
||||
animate_manual_resizes = true;
|
||||
animate_mouse_windowdragging = false;
|
||||
|
||||
mouse_move_focuses_monitor = true;
|
||||
focus_on_activate = false;
|
||||
};
|
||||
|
||||
ecosystem = {
|
||||
no_update_news = true;
|
||||
no_donation_nag = true;
|
||||
};
|
||||
};
|
||||
|
||||
background = {
|
||||
path = "screenshot";
|
||||
blur_passes = 3;
|
||||
};
|
||||
|
||||
input-field = {
|
||||
size = "20%, 5%";
|
||||
outline_thickness = 3;
|
||||
inner_color = "rgba(0, 0, 0, 0.0)"; # no fill
|
||||
outer_color = "rgba($blueAlphaee) rgba($mauveAlphaee) 340deg";
|
||||
check_color = "rgba($greenAlphaee) rgba($tealAlphaee) 120deg";
|
||||
fail_color = "rgba($redAlphaee) rgba($peachAlphaee) 20deg";
|
||||
|
||||
font_color = "$text";
|
||||
fade_on_empty = false;
|
||||
rounding = 15;
|
||||
|
||||
font_family = "Monospace";
|
||||
placeholder_text = "Input password..";
|
||||
fail_text = "$PAMFAIL";
|
||||
|
||||
dots_spacing = 0.3;
|
||||
|
||||
position = "0, -20";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
|
||||
label = {
|
||||
text = "$ATTEMPTS";
|
||||
font_size = 24;
|
||||
|
||||
position = "0, 40";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users."djai".services.hyprsunset = {
|
||||
enable = true;
|
||||
settings = {
|
||||
max-gamma = 150;
|
||||
|
||||
profile = [
|
||||
{
|
||||
time = "7:30";
|
||||
identity = true;
|
||||
}
|
||||
{
|
||||
time = "20:00";
|
||||
temperature = 3500;
|
||||
gamma = 0.9;
|
||||
}
|
||||
{
|
||||
time = "21:00";
|
||||
temperature = 2500;
|
||||
gamma = 0.9;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user