Geany Dark Mode many fixes

pull/395/head
Botspot 4 years ago
parent 3d21daf436
commit 46decc4764

@ -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" 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 #clear geany's pre-existing color_scheme entry
sed -i '/color_scheme=/d' ~/.config/geany/geany.conf sed -i 's/color_scheme=.*/color_scheme=spyder-dark.conf/g' ~/.config/geany/geany.conf
#add new theme config line to bottom of file
echo "color_scheme=spyder-dark.conf" >> ~/.config/geany/geany.conf
#clean up #clean up
rm -rf ~/geany-themes rm -rf ~/geany-themes
if [ ! -z "$(ps aux | grep 'geany' | grep -v grep)" ];then 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 fi

@ -25,6 +25,6 @@ for file in $files ;do
done done
#clear geany's color_scheme entry #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 exit 0

Loading…
Cancel
Save