From 2ca513f59314a89e007afa1481307aa332135f9d Mon Sep 17 00:00:00 2001 From: andrzej Date: Mon, 30 Sep 2024 20:37:31 +0200 Subject: [PATCH] revert to simple arguments --- scripts/scripts/hyprland-slideshow.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/scripts/scripts/hyprland-slideshow.sh b/scripts/scripts/hyprland-slideshow.sh index d6ea318..4a9214d 100755 --- a/scripts/scripts/hyprland-slideshow.sh +++ b/scripts/scripts/hyprland-slideshow.sh @@ -1,20 +1,8 @@ #!/usr/bin/env bash bgsDirectory="/home/andrzej/bgs/" +path=${1} +duration=${2} -while getopts 'p:d:' OPTION; do - case "$OPTION" in - p) - path=${OPTARG} -hyprpaper unload all - ;; - d) - duration=${OPTARG} - ;; - ?) - echo "uh-oh" - ;; - esac -done echo "path: ${path}, duration: ${duration}"