From 61f995dbac73860d529a8bb1ea894c89b3151981 Mon Sep 17 00:00:00 2001 From: DieGurke Date: Sun, 16 May 2021 19:22:03 +0200 Subject: [PATCH] Adjusted to work with install in PKGBUILD --- paperchanger.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paperchanger.sh b/paperchanger.sh index c97bc56..df9a4b4 100755 --- a/paperchanger.sh +++ b/paperchanger.sh @@ -2,9 +2,9 @@ # Simple CLI to make wallpaper changes with xwallpaper more comfortable -read -r current_file_path < current_wallpaper.txt +read -r current_file_path < /opt/current_wallpaper.txt -source $(dirname $0)/paperchanger.conf.sh +source /etc/paperchanger.conf.sh function _help() { echo "" @@ -29,11 +29,11 @@ function _display() { function _set() { current_file_path="$1" - echo "$current_file_path" > current_wallpaper.txt + echo "$current_file_path" > /opt/current_wallpaper.txt } function _change_config_path() { - sed -i "s/^default_directory=.*\$/default_directory=${1//\//\\/}/" paperchanger.conf.sh + sed -i "s/^default_directory=.*\$/default_directory=${1//\//\\/}/" /etc/paperchanger.conf.sh } case "$#" in