Add Geany Dark Mode

pull/395/head
Botspot 3 years ago
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

@ -24,12 +24,16 @@ Email Checker|Internet
FreeCAD|Editors/FreeCAD
FreeCAD (precompiled)|Editors/FreeCAD
FreeTube|Internet
Geany Dark Mode|Eyecandy
Intellij IDEA|Editors
jGRASP IDE|Editors
LibrePCB|Editors
Lightpad|Eyecandy
Lokinet|Internet
Mesa 20.3|Tools
Minecraft Bedrock|Games
Minecraft Java|Games
Minecraft Pi (Modded)|Games
Mission Planner|Tools
Node.js|Internet
OBS Studio|Tools
@ -37,15 +41,15 @@ PiGro|Tools
piKiss|Tools
Pi Power Tools|Tools
Powerline-Shell|Eyecandy
Processing javascript|Editors
Processing IDE|Editors
PrusaSlicer|Editors
Puffin Browser Demo|Internet
Pycharm CE|Editors
QEMU|Tools
Raspi2png|Tools
Remarkable|Editors
Retropie|Games
Scrcpy|Tools
Snapdrop|
Snap Store|Tools
Sonic Pi 3.2|Editors
SpeedTest-CLI|Internet
@ -66,10 +70,10 @@ VeraCrypt|Tools
Visual Studio Code|Editors
Vivaldi|Internet
VSCodium|Editors
WACUP (new WinAmp)|Windows apps
Whatsapp|Internet
Windows 10 Theme|Eyecandy
Wine (x86)|Tools
WPS Office|Editors
YouTubuddy|Internet
Zoom|Internet
Minecraft Pi (Modded)|Games

Loading…
Cancel
Save