fix: make paths work; replace shebangs

This commit is contained in:
Ahwx 2025-05-05 22:12:22 +02:00
parent c24d0d945f
commit 1d755b2d52

View file

@ -2,7 +2,7 @@
{ {
home.file = { home.file = {
"/home/${username}/.config/sxiv/exec/key-handler" = { "/home/${username}/.config/nsxiv/exec/key-handler" = {
executable = true; executable = true;
text = '' text = ''
#!/bin/sh #!/bin/sh
@ -19,19 +19,19 @@
"/home/${username}/.local/bin/setbg" = { "/home/${username}/.local/bin/setbg" = {
executable = true; executable = true;
text = '' 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 swww img ~/.local/share/bg.png --transition-type fade
''; '';
}; };
"/home/${username}/.local/bin/walp" = { "/home/${username}/.local/bin/walp" = {
executable = true; executable = true;
text = '' 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. 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/*
''; '';
}; };
}; };