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

View file

@ -1,10 +1,8 @@
{inputs, ...}: {
imports = [inputs.hyprlock.homeManagerModules.default];
disabledModules = ["${inputs.home-manager}/modules/programs/hyprlock.nix"];
_: {
programs.hyprlock = {
enable = true;
backgrounds = let
settings = {
background = let
verticalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle.png";
horizontalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle2.png";
in [
@ -43,13 +41,10 @@
hide_cursor = false;
no_fade_in = false;
};
input-fields = [
input-field = [
{
monitor = "DP-2";
size = {
width = 350;
height = 50;
};
size = "350, 50";
outline_thickness = 2;
outer_color = "rgb(f7768e)";
inner_color = "rgb(1a1b26)";
@ -70,7 +65,7 @@
shadow_boost = 1.0;
}
];
labels = [
label = [
{
monitor = "DP-2";
text = ''
@ -88,10 +83,7 @@
monitor = "DP-2";
text = "$TIME";
color = "rgb(c0caf5)";
position = {
x = 0;
y = 120;
};
position = "0, 120";
valign = "center";
halign = "center";
shadow_passes = 3;
@ -101,4 +93,5 @@
}
];
};
};
}

View file

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

View file

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