mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
Allow fuzzel.ini to be customized
Instead of overwriting the entire fuzzel.ini on each theme change. Theme changes are made to fuzzel.theme which is then imported by fuzzel.ini Rationale: I like to use vim binds for fuzzel and there wasn't a good way to modify fuzzel.ini without making the end-4 update process complicated.
This commit is contained in:
parent
7e5610a9e1
commit
7593938986
3 changed files with 4 additions and 28 deletions
|
|
@ -49,19 +49,17 @@ 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" "$CACHE_DIR"/user/generated/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" "$CACHE_DIR"/user/generated/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,18 +1,9 @@
|
|||
include="~/.cache/ags/user/generated/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
|
||||
|
|
|
|||
Loading…
Reference in a new issue