[Hypr] Adds hyprpaper config.

This commit is contained in:
2025-03-02 14:02:46 -08:00
parent 493021ddb5
commit 1e92936a84
3 changed files with 29 additions and 4 deletions

View File

@@ -24,7 +24,6 @@
exec-once = [ exec-once = [
"nm-applet" "nm-applet"
"sleep 1 && hyprpaper"
"sleep 2 && hyprpm reload -n" "sleep 2 && hyprpm reload -n"
"swayidle -w before-sleep hyprlock" "swayidle -w before-sleep hyprlock"
"swayosd-server" "swayosd-server"
@@ -32,8 +31,8 @@
]; ];
# Eww is idempotent, so it's fine to just run it on every reload to make sure things are open # Eww is idempotent, so it's fine to just run it on every reload to make sure things are open
execr = [ execr-once = [
"eww open-many primary-statusbar secondary-statusbar launcher &" "eww open-many primary-statusbar secondary-statusbar launcher"
]; ];
env = [ env = [

View File

@@ -0,0 +1,26 @@
{ ... }:
{
services.hyprpaper = {
enable = true;
settings =
let
# clouds1 = "/home/drew/Pictures/Wallpaper/2025-02-18 - Haleakela Clouds.jpg";
# clouds2 = "/home/drew/Pictures/Wallpaper/2025-02-18 - Haleakela Clouds 2.jpg";
sunset_wide = "/home/drew/Pictures/Wallpaper/2025-02-19 - Hawaii Sunset.jpg";
sunset_tall = "/home/drew/Pictures/Wallpaper/2025-02-20 - Hawaii Sunset - Tall.jpg";
in
{
ipc = "on";
splash = false;
preload = [
sunset_wide
sunset_tall
];
wallpaper = [
"DP-2,${sunset_wide}"
"DP-1,${sunset_tall}"
];
};
};
}

View File

@@ -2,6 +2,7 @@
{ {
imports = [ imports = [
./hyprland.nix ./hyprland.nix
./hyprpaper.nix
./audio.nix ./audio.nix
./nix.nix ./nix.nix
../apps/element.nix ../apps/element.nix
@@ -13,7 +14,6 @@
networkmanagerapplet # network control networkmanagerapplet # network control
hyprlock # lock screen hyprlock # lock screen
rofi # launcher rofi # launcher
hyprpaper # wallpaper
swayidle # lock on idle swayidle # lock on idle
swayosd # volume pop-up swayosd # volume pop-up
swaynotificationcenter # notifications swaynotificationcenter # notifications