fix(hyprland.nix): fix wallpapers problems

This commit is contained in:
Kirill committed 2025-06-24 17:39:52 +03:00
1 parent 93e92953f4
commit 72ca239b51
2 files changed
+16 -15

No files matched your search

Generated
+12 -12
View File
@@ -266,11 +266,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1750256996, "lastModified": 1750304462,
"narHash": "sha256-xPH4tgE7yIeBtOn54B6iDzMGXrf7mWvODML+DCN+H8I=", "narHash": "sha256-Mj5t4yX05/rXnRqJkpoLZTWqgStB88Mr/fegTRqyiWc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "f754e377dc2da5d34dfea6a5215c21741eaf8930", "rev": "863842639722dd12ae9e37ca83bcb61a63b36f6c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -318,11 +318,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1750133334, "lastModified": 1750400657,
"narHash": "sha256-urV51uWH7fVnhIvsZIELIYalMYsyr2FCalvlRTzqWRw=", "narHash": "sha256-3vkjFnxCOP6vm5Pm13wC/Zy6/VYgei/I/2DWgW4RFeA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "36ab78dab7da2e4e27911007033713bab534187b", "rev": "b2485d56967598da068b5a6946dadda8bfcbcd37",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -350,11 +350,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1750134718, "lastModified": 1750365781,
"narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=", "narHash": "sha256-XE/lFNhz5lsriMm/yjXkvSZz5DfvKJLUjsS6pP8EC50=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c", "rev": "08f22084e6085d19bcfb4be30d1ca76ecb96fe54",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -473,11 +473,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1750205637, "lastModified": 1750527172,
"narHash": "sha256-49wV81h1jnHJky1XNHfgwxNA0oCwSTLMz4hhrtWCM8A=", "narHash": "sha256-ATl7gK98w27JaXzidK48YlG4o+mtfvyHu9zKuadE6j0=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "82323751bcd45579c8d3a5dd05531c3c2a78e347", "rev": "27721407de0615e927c84f7c23277628e1d12b67",
"type": "github" "type": "github"
}, },
"original": { "original": {
+4 -3
View File
@@ -4,6 +4,7 @@
colors = config.lib.stylix.colors; colors = config.lib.stylix.colors;
wallpaper_changer = pkgs.writers.writePython3Bin "wallpaper_changer" { wallpaper_changer = pkgs.writers.writePython3Bin "wallpaper_changer" {
libraries = [ pkgs.python3Packages.requests ];
flakeIgnore = [ "E501" "E111" "E701" "E241" "E731" ]; flakeIgnore = [ "E501" "E111" "E701" "E241" "E731" ];
} /*py*/ '' } /*py*/ ''
from random import choice from random import choice
@@ -127,7 +128,7 @@
exec-once = [ exec-once = [
"systemctl --user start plasma-polkit-agent" "systemctl --user start plasma-polkit-agent"
"swww init" "swww-daemon"
"python3 ${lib.getExe wallpaper_changer}" "python3 ${lib.getExe wallpaper_changer}"
"${lib.getExe' pkgs.udiskie "udiskie"}" "${lib.getExe' pkgs.udiskie "udiskie"}"
"wl-paste --type text --watch cliphist store" "wl-paste --type text --watch cliphist store"
@@ -222,8 +223,8 @@
# Disable all effects # Disable all effects
"$mainMod Shift, G, exec, ~/.config/hypr/gamemode.sh " "$mainMod Shift, G, exec, ~/.config/hypr/gamemode.sh "
# Skreens # Screens
''$mainMod SHIFT, S, exec, alacritty -e sh -c "screenshot"'' ''$mainMod Shift, S, exec, grimblast --notify --freeze copy area''
'', F11, exec, ghostty -e sh -c "hyprlock"'' '', F11, exec, ghostty -e sh -c "hyprlock"''