wayland: rewrite hypr* configs again

using upstream hm modules
This commit is contained in:
notohh 2024-05-26 16:48:37 -04:00
parent 2c21185928
commit 1d4a7cfd63
Signed by: notohh
GPG key ID: BD47506D475EE86D
4 changed files with 125 additions and 141 deletions

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
pkgs,
inputs,
...
}: {
imports = [./services/greetd.nix]; imports = [./services/greetd.nix];
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
@ -38,7 +34,6 @@
enable = true; enable = true;
extraPortals = with pkgs; [ extraPortals = with pkgs; [
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
inputs.xdg-portal-hyprland.packages.${pkgs.system}.default
]; ];
config = { config = {
common.default = "*"; common.default = "*";

View file

@ -1,104 +1,97 @@
{inputs, ...}: { _: {
imports = [inputs.hyprlock.homeManagerModules.default];
disabledModules = ["${inputs.home-manager}/modules/programs/hyprlock.nix"];
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
backgrounds = let settings = {
verticalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle.png"; background = let
horizontalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle2.png"; verticalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle.png";
in [ horizontalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle2.png";
{ in [
monitor = "HDMI-A-1"; {
path = verticalWallpaper; monitor = "HDMI-A-1";
blur_passes = 3; path = verticalWallpaper;
blur_size = 4; blur_passes = 3;
brightness = 0.5; blur_size = 4;
} brightness = 0.5;
{ }
monitor = "DP-3"; {
path = verticalWallpaper; monitor = "DP-3";
blur_passes = 3; path = verticalWallpaper;
blur_size = 4; blur_passes = 3;
brightness = 0.5; blur_size = 4;
} brightness = 0.5;
{ }
monitor = "DP-1"; {
path = horizontalWallpaper; monitor = "DP-1";
blur_passes = 3; path = horizontalWallpaper;
blur_size = 4; blur_passes = 3;
brightness = 0.5; blur_size = 4;
} brightness = 0.5;
{ }
monitor = "DP-2"; {
path = horizontalWallpaper; monitor = "DP-2";
blur_passes = 3; path = horizontalWallpaper;
blur_size = 4; blur_passes = 3;
brightness = 0.5; blur_size = 4;
} brightness = 0.5;
]; }
general = { ];
grace = 5; general = {
disable_loading_bar = false; grace = 5;
hide_cursor = false; disable_loading_bar = false;
no_fade_in = false; hide_cursor = false;
no_fade_in = false;
};
input-field = [
{
monitor = "DP-2";
size = "350, 50";
outline_thickness = 2;
outer_color = "rgb(f7768e)";
inner_color = "rgb(1a1b26)";
font_color = "rgb(c0caf5)";
fail_color = "rgb(f7768e)";
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
check_color = "rgb(ff9e64)";
swap_font_color = false;
placeholder_text = ''
<i><span foreground="##c0caf5">Password...</span></i>
'';
fade_on_empty = false;
dots_spacing = 0.5;
dots_center = true;
shadow_passes = 3;
shadow_size = 1;
shadow_color = "rgba(00000099)";
shadow_boost = 1.0;
}
];
label = [
{
monitor = "DP-2";
text = ''
Hi, <i><span foreground="##f7768e">$USER</span></i>
'';
color = "rgb(c0caf5)";
valign = "center";
halign = "center";
shadow_passes = 3;
shadow_size = 1;
shadow_color = "rgba(00000099)";
shadow_boost = 1.0;
}
{
monitor = "DP-2";
text = "$TIME";
color = "rgb(c0caf5)";
position = "0, 120";
valign = "center";
halign = "center";
shadow_passes = 3;
shadow_size = 1;
shadow_color = "rgba(00000099)";
shadow_boost = 0.6;
}
];
}; };
input-fields = [
{
monitor = "DP-2";
size = {
width = 350;
height = 50;
};
outline_thickness = 2;
outer_color = "rgb(f7768e)";
inner_color = "rgb(1a1b26)";
font_color = "rgb(c0caf5)";
fail_color = "rgb(f7768e)";
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
check_color = "rgb(ff9e64)";
swap_font_color = false;
placeholder_text = ''
<i><span foreground="##c0caf5">Password...</span></i>
'';
fade_on_empty = false;
dots_spacing = 0.5;
dots_center = true;
shadow_passes = 3;
shadow_size = 1;
shadow_color = "rgba(00000099)";
shadow_boost = 1.0;
}
];
labels = [
{
monitor = "DP-2";
text = ''
Hi, <i><span foreground="##f7768e">$USER</span></i>
'';
color = "rgb(c0caf5)";
valign = "center";
halign = "center";
shadow_passes = 3;
shadow_size = 1;
shadow_color = "rgba(00000099)";
shadow_boost = 1.0;
}
{
monitor = "DP-2";
text = "$TIME";
color = "rgb(c0caf5)";
position = {
x = 0;
y = 120;
};
valign = "center";
halign = "center";
shadow_passes = 3;
shadow_size = 1;
shadow_color = "rgba(00000099)";
shadow_boost = 0.6;
}
];
}; };
} }

View file

@ -1,27 +1,27 @@
{ {
inputs,
pkgs, pkgs,
lib, lib,
config, config,
... ...
}: { }: {
imports = [inputs.hypridle.homeManagerModules.default];
disabledModules = ["${inputs.home-manager}/modules/services/hypridle.nix"];
services.hypridle = { services.hypridle = {
enable = true; enable = true;
ignoreDbusInhibit = false; settings = {
lockCmd = lib.getExe config.programs.hyprlock.package; general = {
beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session"; ignore_dbus_inhibit = false;
listeners = [ lock_cmd = lib.getExe config.programs.hyprlock.package;
{ before_sleep_cmd = "${pkgs.systemd}/bin/loginctl lock-session";
timeout = 400; };
onTimeout = "${lib.getExe config.programs.hyprlock.package}"; listener = [
} {
{ timeout = 400;
timeout = 460; on-timeout = "${lib.getExe config.programs.hyprlock.package}";
onTimeout = "${pkgs.systemd}/bin/systemctl suspend"; }
} {
]; timeout = 460;
on-timeout = "${pkgs.systemd}/bin/systemctl suspend";
}
];
};
}; };
} }

View file

@ -1,25 +1,21 @@
{ {pkgs, ...}: {
inputs,
pkgs,
...
}: {
home.packages = [pkgs.hyprpaper]; home.packages = [pkgs.hyprpaper];
imports = [inputs.hyprpaper.homeManagerModules.default];
disabledModules = ["${inputs.home-manager}/modules/services/hyprpaper.nix"];
services.hyprpaper = { services.hyprpaper = {
enable = true; enable = true;
ipc = true; settings = {
splash = false; ipc = true;
preloads = [ splash = false;
"~/Pictures/wallpapers/sparkle3.png" preload = [
"~/Pictures/wallpapers/sparkle4.png" "~/Pictures/wallpapers/sparkle3.png"
]; "~/Pictures/wallpapers/sparkle4.png"
wallpapers = [ ];
"HDMI-A-1,~/Pictures/wallpapers/sparkle3.png" wallpaper = [
"DP-1,~/Pictures/wallpapers/sparkle4.png" "HDMI-A-1,~/Pictures/wallpapers/sparkle3.png"
"DP-2,~/Pictures/wallpapers/sparkle4.png" "DP-1,~/Pictures/wallpapers/sparkle4.png"
"DP-3,~/Pictures/wallpapers/sparkle3.png" "DP-2,~/Pictures/wallpapers/sparkle4.png"
]; "DP-3,~/Pictures/wallpapers/sparkle3.png"
];
};
}; };
} }