mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
fix: make paths work; replace shebangs
This commit is contained in:
parent
c24d0d945f
commit
1d755b2d52
1 changed files with 5 additions and 5 deletions
|
|
@ -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/*
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue