Deleted hyprpaper and replaced it with awww. Also deleted self declared niri systemd services, as they arent needed with running commands at startup

This commit is contained in:
2026-05-29 21:51:48 +02:00
parent 3cf1f4f11f
commit f04a72f19d
8 changed files with 89 additions and 72 deletions

View File

@ -1,5 +1,6 @@
{
config,
inputs,
pkgs,
username,
project,
@ -7,31 +8,8 @@
}: {
#To show logs of services run:
#journalctl --user-unit={service-name} --user
systemd.user.services.niri-waybar = {
description = "Waybar status bar for Niri";
# "wantedBy" replaces the [Install] section
wantedBy = ["graphical-session.target"];
# "partOf" and "after" replace the [Unit] section dependencies
partOf = ["graphical-session.target"];
after = ["graphical-session.target"];
# [Unit] configuration goes here
unitConfig = {
# This checks the environment variable to ensure we are in Niri
ConditionEnvironment = "XDG_CURRENT_DESKTOP=niri";
};
# [Service] configuration goes here
serviceConfig = {
ExecStart = "${pkgs.waybar}/bin/waybar";
Restart = "on-failure";
RestartSec = "1s";
};
};
# 2. The Niri Session Cleanup Service
# The Niri Session Cleanup Service
# This service starts when the graphical session starts, and when it stops,
# it forcibly stops the graphical-session.target to ensure a clean state for the next login.
systemd.user.services.niri-session-manager = {

View File

@ -2,12 +2,12 @@
config,
inputs,
pkgs,
system,
...
}: {
imports = [
./autostart.nix
../modules/hyprlock
../modules/hyprpaper
../modules/stylix
];
@ -20,6 +20,7 @@
fuzzel
waybar
xwayland-satellite
inputs.awww.packages.${system}.awww
];
programs = {

View File

@ -1,6 +1,7 @@
{
pkgs,
inputs,
awwwPkg,
...
}: {
imports = [
@ -38,6 +39,10 @@
}
numlock
}
mouse {
accel-profile "flat"
accel-speed -0.4
}
}
prefer-no-csd
@ -83,11 +88,14 @@
}
}
// spawn-at-startup "waybar"
spawn-at-startup "hyprpaper"
spawn-at-startup "${pkgs.waybar}/bin/waybar"
spawn-at-startup "${pkgs.mako}/bin/mako"
//spawn-sh-at-startup "${awwwPkg}/bin/awww-daemon --no-cache & sleep 1; ${awwwPkg}/bin/awww img ${inputs.cookiez-assets}/wallpapers/pixel-desert.png"
spawn-sh-at-startup "${awwwPkg}/bin/awww-daemon --no-cache"
spawn-sh-at-startup "until ${awwwPkg}/bin/awww query >/dev/null 2>&1; do :; done; ${awwwPkg}/bin/awww img --transition-type none ${inputs.cookiez-assets}/wallpapers/pixel-desert.png"
// spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell"
spawn-sh-at-startup "${awwwPkg}/bin/awww-daemon --no-cache --namespace backdrop"
spawn-sh-at-startup "until ${awwwPkg}/bin/awww query -n backdrop >/dev/null 2>&1; do :; done; ${awwwPkg}/bin/awww img -n backdrop --transition-type none ${inputs.cookiez-assets}/wallpapers/pixel-desert.png"
hotkey-overlay {
// Uncomment this line to disable the "Important Hotkeys" pop-up at startup.
@ -102,6 +110,11 @@
draw-border-with-background false
}
layer-rule {
match namespace="^awww-daemonbackdrop$"
place-within-backdrop true
}
output "eDP-1" {
mode "2880x1920@120.000"
scale 2