From 1d755b2d52bb579ce43668d93087e5fef530bf21 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Mon, 5 May 2025 22:12:22 +0200 Subject: [PATCH] fix: make paths work; replace shebangs --- modules/home/hyprland/scripts.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/home/hyprland/scripts.nix b/modules/home/hyprland/scripts.nix index 69e4039..00e6896 100644 --- a/modules/home/hyprland/scripts.nix +++ b/modules/home/hyprland/scripts.nix @@ -2,7 +2,7 @@ { home.file = { - "/home/${username}/.config/sxiv/exec/key-handler" = { + "/home/${username}/.config/nsxiv/exec/key-handler" = { executable = true; text = '' #!/bin/sh @@ -19,19 +19,19 @@ "/home/${username}/.local/bin/setbg" = { executable = true; text = '' - #!/bin/sh + #!/usr/bin/env bash - convert "$1" ~/.local/share/bg.png + magick convert "$1" ~/.local/share/bg.png swww img ~/.local/share/bg.png --transition-type fade ''; }; "/home/${username}/.local/bin/walp" = { executable = true; text = '' - #!/bin/sh + #!/usr/bin/env bash which swiv &>/dev/null && SIV=swiv || SIV=nsxiv # todo: switch to swiv, but that is not packaged for Nix yet. - $SIV -t ~/Pictures/wallpapers/other/* + $SIV -t ~/Pictures/wallpapers/others/* ''; }; };