16 lines
510 B
Bash
Executable file
16 lines
510 B
Bash
Executable file
#!/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
|
|
|