diff --git a/.local/bin/scripts/foot-themer b/.local/bin/scripts/foot-themer new file mode 100755 index 0000000..d4bedb9 --- /dev/null +++ b/.local/bin/scripts/foot-themer @@ -0,0 +1,16 @@ +#!/bin/bash + +## modified version of https://github.com/mtwb47/scripts/blob/master/alchanger.sh, adapted for use with foot included themes + +config="$HOME/.config/foot/foot.ini" + +theme_dir="/usr/share/foot/themes/" + +choice=$(ls -1 $theme_dir | fuzzel --dmenu -R --log-level=none --no-icons -x 10 --lines 20 --prompt='Choose a theme for foot:') + +if [[ "$choice" == "" ]]; then + echo "No theme chosen. Not changing foot config." +else + sed -i "s,^include=$theme_dir.*$,include=$theme_dir$choice," $config +fi +