From 018a12cf5ff8a0bd1d61126b1b09d10ceaa0d039 Mon Sep 17 00:00:00 2001 From: leopepe Date: Sun, 17 Feb 2019 13:00:56 +0100 Subject: [PATCH] Fixing .i3 directory creation and the location of polybar/launch.sh --- scripts/apply_theme.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/apply_theme.sh b/scripts/apply_theme.sh index debca8e4..bd35cb80 100644 --- a/scripts/apply_theme.sh +++ b/scripts/apply_theme.sh @@ -4,6 +4,11 @@ THEME=$1 +if [ ! -d "$HOME/.i3" ] +then + mkdir $HOME/.i3 +fi + echo '[*] Applying the theme..' if [ -d "../$THEME" ] @@ -66,7 +71,7 @@ then echo ' [-] Failed to apply ./config/polybar/config configuration file' fi - if cp ../scripts/launch.sh ~/.config/polybar/launch.sh + if cp ../scripts/polybar/launch.sh ~/.config/polybar/launch.sh then chmod u+x ~/.config/polybar/launch.sh echo ' [+] .config/polybar/launch.sh script set up successfully' @@ -74,7 +79,7 @@ then echo ' [-] Failed to apply .config/polybar/launch.sh script' fi - if cp ../scripts/music.sh ~/.config/polybar/music.sh + if cp ../scripts/polybar/music.sh ~/.config/polybar/music.sh then chmod u+x ~/.config/polybar/music.sh echo ' [+] .config/polybar/music.sh script set up successfully'