]> Skullheadx's Git Forge - nixos.git/commitdiff
switch to hyprpaper
authorAndrew <admonty1@protonmail.com>
Thu, 21 Aug 2025 19:53:29 +0000 (15:53 -0400)
committerAndrew <admonty1@protonmail.com>
Thu, 21 Aug 2025 19:53:29 +0000 (15:53 -0400)
configuration.nix
home.nix
hyprland/hyprland.nix
hyprpaper.nix [new file with mode: 0644]
hyprpaper.service [new file with mode: 0644]
stylix.nix

index 846788ab649c13f4e61c98df12618f146623e723..a171c5e753db6d71c6d53505ac62223218f2abf0 100644 (file)
   # Allow unfree packages
   nixpkgs.config.allowUnfree = true;
 
-  programs.hyprland.enable = true;
+  programs.hyprland = {
+  enable = true;
+    withUWSM = true;
+    };
+
   # List packages installed in system profile. To search, run:
   # $ nix search wget
   environment.systemPackages = with pkgs; [
@@ -68,6 +72,8 @@
     hyprland
     kitty
     libnotify
+       gnome-keyring
+
   ];
   programs.steam = {
     enable = true;
index 612b2fc21d2d374ca6e0965cef7ce502d067a6b8..ecc9de94943cb1788bec9c2374277c3ea81a746b 100644 (file)
--- a/home.nix
+++ b/home.nix
@@ -4,10 +4,13 @@
   pkgs,
   ...
 }:
+
+
 {
   imports = [
     ./sh.nix
     ./hyprland/hyprland.nix
+    ./hyprpaper.nix
     ./ghostty.nix
     ./obsidian.nix
     ./fastfetch.nix
     enable = true;
     extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
   };
+       
 
   # Let Home Manager install and manage itself.
   programs.home-manager.enable = true;
index a28953c390e970150a7f6de99f9f18fd19814e47..269b48408dccae581a1c499cf29f9f87a5a17f8a 100644 (file)
@@ -7,6 +7,7 @@
   ];
   wayland.windowManager.hyprland = {
     enable = true;
+    systemd.enable = false;
     settings = {
       monitor = [
         "DP-3,2560x1440@180.00,0x0,1"
       ];
       exec-once = [
         "xrandr --output DP-3 --primary"
-       "waybar"
-        "[workspace 1 silent] ghostty"
-        "[workspace 2 silent] ghostty -e rmpc"
-        "[workspace 3 silent] obsidian"
-        "[workspace 6 silent] brave"
-        "[workspace 7 silent] discord"
-        "[workspace 8 silent] steam"
+       "uwsm app -- waybar"
+#      "systemctl --user enable --now ./../hyprpaper.service"
+        "[workspace 1 silent] uwsm app -- ghostty"
+        "[workspace 2 silent] uwsm app -- ghostty -e rmpc"
+        "[workspace 3 silent] uwsm app -- obsidian"
+        "[workspace 6 silent] uwsm app -- brave"
+        "[workspace 7 silent] uwsm app -- discord"
+        "[workspace 8 silent] uwsm app -- steam"
       ];
       windowrule = [
         "workspace 7 silent, class:(discord)"
diff --git a/hyprpaper.nix b/hyprpaper.nix
new file mode 100644 (file)
index 0000000..013eae9
--- /dev/null
@@ -0,0 +1,33 @@
+{ config, pkgs, ... }:
+let 
+       hk_1440 = pkgs.fetchurl {
+               url = "https://raw.githubusercontent.com/Skullheadx/dotfiles/16c0b7ce0cf0a6286554a3bbe60c636871fb75c9/backgrounds/hollowknightbackground_2560x1440.png";
+               hash = "sha256-NyfvBFeEkXe3Z6ZpciJlOEBOMvKQjZKoH9ji2jiqmj8=";
+       };
+       hk_1080 = pkgs.fetchurl {
+               url = "https://raw.githubusercontent.com/Skullheadx/dotfiles/16c0b7ce0cf0a6286554a3bbe60c636871fb75c9/backgrounds/hollowknightbackground_1920x1080.png";
+               hash = "sha256-mCqYc4w+S8aVALo6wMyXrWtCmfw78kIEcFAhxlFNbHQ=";
+       };
+         testImage = pkgs.fetchurl {
+           url = "https://i.redd.it/mvev8aelh7zc1.png";
+           hash = "sha256-lJjIq+3140a5OkNy/FAEOCoCcvQqOi73GWJGwR2zT9w";
+         };
+in
+{
+
+  services.hyprpaper = {
+       enable = true;
+       settings = {
+               ipc = "on";
+               splash = false;
+       preload = [ 
+               (builtins.toString hk_1440)
+               (builtins.toString hk_1080)
+       ];
+
+       wallpaper = [
+               "DP-3,${builtins.toString hk_1440}"
+               "DP-2,${builtins.toString hk_1080}"
+               ];
+       };
+};}
diff --git a/hyprpaper.service b/hyprpaper.service
new file mode 100644 (file)
index 0000000..2d85a72
--- /dev/null
@@ -0,0 +1,19 @@
+[Unit]
+Description=Hyprpaper wallpaper utility for Hyprland
+Documentation=man:hyprpaper(1)
+# order startup after WM
+After=graphical-session.target
+
+[Service]
+Type=exec
+# Repurpose XDG Autostart filtering
+ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "Hyprland" ""
+ExecStart=hyprpaper
+Restart=on-failure
+Slice=background-graphical.slice
+
+[Install]
+WantedBy=graphical-session.target
+# Alternatively can be wanted by specific WMs' targets
+# Should also be duplicated in 'After=' to avoid ordering loop
+#WantedBy=wayland-session@hyprland.desktop.target
index fe5ae7b260663327d07c5791f5bc47fdd4f19b1e..e9b0194843ee19d0c51bf7b029e07dd4be92c209 100644 (file)
@@ -5,7 +5,7 @@
     enable = true;
     base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-macchiato.yaml";
     polarity = "dark";
-    image = ./backgrounds/hollowknightbackground_2560x1440.png;
+    #image = ./backgrounds/hollowknightbackground_2560x1440.png;
     fonts = {
       monospace = {
         package = pkgs.nerd-fonts.jetbrains-mono;