Allow fuzzel.ini to be customized (#1344)

This commit is contained in:
end-4
2025-06-02 10:45:34 +02:00
committed by GitHub
3 changed files with 4 additions and 29 deletions
@@ -49,19 +49,16 @@ get_light_dark() {
apply_fuzzel() {
# Check if template exists
if [ ! -f "scripts/templates/fuzzel/fuzzel.ini" ]; then
if [ ! -f "scripts/templates/fuzzel/fuzzel.theme" ]; then
echo "Template file not found for Fuzzel. Skipping that."
return
fi
# Copy template
mkdir -p "$CACHE_DIR"/user/generated/fuzzel
cp "scripts/templates/fuzzel/fuzzel.ini" "$CACHE_DIR"/user/generated/fuzzel/fuzzel.ini
cp "scripts/templates/fuzzel/fuzzel.theme" "$XDG_CONFIG_HOME"/fuzzel/fuzzel.theme
# Apply colors
for i in "${!colorlist[@]}"; do
sed -i "s/{{ ${colorlist[$i]} }}/${colorvalues[$i]#\#}/g" "$CACHE_DIR"/user/generated/fuzzel/fuzzel.ini
sed -i "s/{{ ${colorlist[$i]} }}/${colorvalues[$i]#\#}/g" "$XDG_CONFIG_HOME"/fuzzel/fuzzel.theme
done
cp "$CACHE_DIR"/user/generated/fuzzel/fuzzel.ini "$XDG_CONFIG_HOME"/fuzzel/fuzzel.ini
}
apply_term() {
@@ -1,8 +1,3 @@
font=Gabarito
terminal=foot -e
prompt=">> "
layer=overlay
[colors]
background={{ $background }}ff
text={{ $onBackground }}ff
@@ -11,11 +6,3 @@ selection-text={{ $onSurfaceVariant }}ff
border={{ $surfaceVariant }}dd
match={{ $primary }}ff
selection-match={{ $primary }}ff
[border]
radius=17
width=1
[dmenu]
exit-immediately-if-empty=yes
+1 -10
View File
@@ -1,18 +1,9 @@
include="~/.config/fuzzel/fuzzel.theme"
font=Gabarito
terminal=foot -e
prompt=">> "
layer=overlay
[colors]
background=1D1011ff
text=F7DCDEff
selection=574144ff
selection-text=DEBFC2ff
border=574144dd
match=FFB2BCff
selection-match=FFB2BCff
[border]
radius=17
width=1