Add Geany Dark Mode
parent
6dc83458a3
commit
3d21daf436
@ -0,0 +1 @@
|
||||
Botspot. Oh yeah.
|
@ -0,0 +1,3 @@
|
||||
Proper appearance theme for the Geany text editor.
|
||||
Geany's default color scheme looks horrible. Fortunately, this app will make it look good.
|
||||
By default, this will apply the "spyder-dark" theme, (Botspot's favorite!), but it will also install a bunch of other themes for you to try out as well.
|
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||
|
||||
function error {
|
||||
echo -e "\\e[91m$1\\e[39m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
#get theme files
|
||||
rm -rf ~/geany-themes
|
||||
git clone --depth 1 https://github.com/codebrainz/geany-themes || error "Failed to git clone the geany themes repository!"
|
||||
|
||||
#copy theme files
|
||||
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
|
||||
|
||||
#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."
|
||||
fi
|
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||
|
||||
function error {
|
||||
echo -e "\\e[91m$1\\e[39m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
#get theme files
|
||||
rm -rf ~/geany-themes
|
||||
git clone --depth 1 https://github.com/codebrainz/geany-themes || error "Failed to git clone the geany themes repository!"
|
||||
|
||||
#remove all downloaded themes from .config
|
||||
files="$(cd ~/geany-themes/colorschemes
|
||||
ls)"
|
||||
|
||||
#no need for that repo anymore
|
||||
rm -f ~/geany-themes &>/dev/null
|
||||
|
||||
IFS=$'\n'
|
||||
|
||||
for file in $files ;do
|
||||
rm -f ~/".config/geany/colorschemes/$file"
|
||||
done
|
||||
|
||||
#clear geany's color_scheme entry
|
||||
sed -i '/color_scheme=/d' ~/.config/geany/geany.conf
|
||||
|
||||
exit 0
|
@ -0,0 +1 @@
|
||||
https://github.com/codebrainz/geany-themes
|
Loading…
Reference in New Issue