diff --git a/apps/Geany Dark Mode/install b/apps/Geany Dark Mode/install index b987902..a40b10f 100755 --- a/apps/Geany Dark Mode/install +++ b/apps/Geany Dark Mode/install @@ -16,14 +16,12 @@ mkdir -p ~/.config/geany/colorschemes cp -a ~/geany-themes/colorschemes/. ~/.config/geany/colorschemes || error "Failed to copy colorschemes to $HOME/.config/geany/colorschemes" #clear geany's pre-existing color_scheme entry -sed -i '/color_scheme=/d' ~/.config/geany/geany.conf - -#add new theme config line to bottom of file -echo "color_scheme=spyder-dark.conf" >> ~/.config/geany/geany.conf +sed -i 's/color_scheme=.*/color_scheme=spyder-dark.conf/g' ~/.config/geany/geany.conf #clean up rm -rf ~/geany-themes if [ ! -z "$(ps aux | grep 'geany' | grep -v grep)" ];then - echo "Geany text editor is currently running.\nPlease close Geany and launch it again to apply the new theme." + echo -e "\nGeany text editor is currently running.\nPlease close Geany and launch it again to apply the new theme." + sleep 5 fi diff --git a/apps/Geany Dark Mode/uninstall b/apps/Geany Dark Mode/uninstall index 6c915c2..1e6ab8a 100755 --- a/apps/Geany Dark Mode/uninstall +++ b/apps/Geany Dark Mode/uninstall @@ -25,6 +25,6 @@ for file in $files ;do done #clear geany's color_scheme entry -sed -i '/color_scheme=/d' ~/.config/geany/geany.conf +sed -i 's/color_scheme=.*/color_scheme=/g' ~/.config/geany/geany.conf exit 0