forked from Shinonome/dots-hyprland
Allow fuzzel.ini to be customized (#1344)
This commit is contained in:
@@ -49,19 +49,16 @@ get_light_dark() {
|
|||||||
|
|
||||||
apply_fuzzel() {
|
apply_fuzzel() {
|
||||||
# Check if template exists
|
# 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."
|
echo "Template file not found for Fuzzel. Skipping that."
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
# Copy template
|
# Copy template
|
||||||
mkdir -p "$CACHE_DIR"/user/generated/fuzzel
|
cp "scripts/templates/fuzzel/fuzzel.theme" "$XDG_CONFIG_HOME"/fuzzel/fuzzel.theme
|
||||||
cp "scripts/templates/fuzzel/fuzzel.ini" "$CACHE_DIR"/user/generated/fuzzel/fuzzel.ini
|
|
||||||
# Apply colors
|
# Apply colors
|
||||||
for i in "${!colorlist[@]}"; do
|
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
|
done
|
||||||
|
|
||||||
cp "$CACHE_DIR"/user/generated/fuzzel/fuzzel.ini "$XDG_CONFIG_HOME"/fuzzel/fuzzel.ini
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply_term() {
|
apply_term() {
|
||||||
|
|||||||
-13
@@ -1,8 +1,3 @@
|
|||||||
font=Gabarito
|
|
||||||
terminal=foot -e
|
|
||||||
prompt=">> "
|
|
||||||
layer=overlay
|
|
||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
background={{ $background }}ff
|
background={{ $background }}ff
|
||||||
text={{ $onBackground }}ff
|
text={{ $onBackground }}ff
|
||||||
@@ -11,11 +6,3 @@ selection-text={{ $onSurfaceVariant }}ff
|
|||||||
border={{ $surfaceVariant }}dd
|
border={{ $surfaceVariant }}dd
|
||||||
match={{ $primary }}ff
|
match={{ $primary }}ff
|
||||||
selection-match={{ $primary }}ff
|
selection-match={{ $primary }}ff
|
||||||
|
|
||||||
|
|
||||||
[border]
|
|
||||||
radius=17
|
|
||||||
width=1
|
|
||||||
|
|
||||||
[dmenu]
|
|
||||||
exit-immediately-if-empty=yes
|
|
||||||
@@ -1,18 +1,9 @@
|
|||||||
|
include="~/.config/fuzzel/fuzzel.theme"
|
||||||
font=Gabarito
|
font=Gabarito
|
||||||
terminal=foot -e
|
terminal=foot -e
|
||||||
prompt=">> "
|
prompt=">> "
|
||||||
layer=overlay
|
layer=overlay
|
||||||
|
|
||||||
[colors]
|
|
||||||
background=1D1011ff
|
|
||||||
text=F7DCDEff
|
|
||||||
selection=574144ff
|
|
||||||
selection-text=DEBFC2ff
|
|
||||||
border=574144dd
|
|
||||||
match=FFB2BCff
|
|
||||||
selection-match=FFB2BCff
|
|
||||||
|
|
||||||
|
|
||||||
[border]
|
[border]
|
||||||
radius=17
|
radius=17
|
||||||
width=1
|
width=1
|
||||||
|
|||||||
Reference in New Issue
Block a user