diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/set_background | 14 | ||||
| -rwxr-xr-x | scripts/wallpapermenu | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/scripts/set_background b/scripts/set_background index f9465ce..161a272 100755 --- a/scripts/set_background +++ b/scripts/set_background @@ -7,13 +7,15 @@ end set -x SWWW_TRANSITION "any" set -x SWWW_TRANSITION_FPS 60 -set -x SWWW_TRANSITION_DURATION 2 -set -U img $argv[1] +set -x SWWW_TRANSITION_DURATION 1.5 -wallust run $img; and begin - niri msg action do-screen-transition - swww img $img +niri msg action do-screen-transition +wallust run $argv[1]; and begin + set -U img $argv[1] + swww img $argv[1] makoctl reload - notify-send -i $img "Wallust" "Changed wallpaper and palette." + notify-send -i $argv[1] "Wallust" "Changed wallpaper and palette." +end; or begin + notify-send -u critical "Wallust" "Failed to change palette" end; diff --git a/scripts/wallpapermenu b/scripts/wallpapermenu index 7f436ac..789dd1c 100755 --- a/scripts/wallpapermenu +++ b/scripts/wallpapermenu @@ -1,6 +1,6 @@ #!/usr/bin/fish -set dir "/home/eric.marin/Pictures/Backgrounds/" +set dir "$HOME/Pictures/Backgrounds/" set chosen ( for file in (find $dir -type f) if test -z $img; or test $file != $img |
