foot: Add theming script
This commit is contained in:
parent
52271dd504
commit
ba925c683c
1 changed files with 16 additions and 0 deletions
16
.local/bin/scripts/foot-themer
Executable file
16
.local/bin/scripts/foot-themer
Executable file
|
@ -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
|
||||
|
Loading…
Add table
Reference in a new issue