This commit is contained in:
2026-11-04 20:35:46 +01:00
parent 5f4de5e60c
commit 86abc097f4
348 changed files with 10300 additions and 0 deletions
@@ -0,0 +1,9 @@
{
"files": {
"README.md": "5273001c9d22560e14e9ab07c580c3e9",
"apply.sh": "2cdc7ebbd5d3798fa896b1191214468c",
"fuzzel.conf": "ada6c69528e9fd1f32f27a82ba24c9d3",
"template.toml": "07c2e5d778a043872eadddea0a2edfa4"
},
"version": 1
}
@@ -0,0 +1,9 @@
# Fuzzel
Generates Noctalia colors for the Fuzzel launcher, including translucent background and selection colors.
Enable **Fuzzel** in **Noctalia Settings -> Templates**. The theme is written to `$XDG_CONFIG_HOME/fuzzel/themes/noctalia` (`~/.config/fuzzel/themes/noctalia` by default).
The Bash post-hook creates or updates `$XDG_CONFIG_HOME/fuzzel/fuzzel.ini` to include the generated theme using an absolute `include=.../fuzzel/themes/noctalia` line. If the exact include is absent, existing lines beginning with `include=` and containing `themes` are replaced; otherwise the include is appended. Other settings are retained.
Install Fuzzel and back up `fuzzel.ini` first: the hook changes it without creating a backup. No launcher reload command is included.
+33
View File
@@ -0,0 +1,33 @@
#!/usr/bin/env bash
set -euo pipefail
config_dir="${XDG_CONFIG_HOME:-$HOME/.config}"
config_file="$config_dir/fuzzel/fuzzel.ini"
include_line="include=$config_dir/fuzzel/themes/noctalia"
mkdir -p "$(dirname "$config_file")"
write_if_changed() {
local target="$1" tmp="$2"
if [ ! -e "$target" ] && [ ! -L "$target" ]; then
mv "$tmp" "$target"
return
fi
if ! cmp -s "$target" "$tmp"; then
cat "$tmp" >"$target"
fi
rm -f "$tmp"
}
if [ ! -f "$config_file" ]; then
echo "$include_line" >"$config_file"
elif grep -q "^$include_line$" "$config_file"; then
:
elif grep -q '^include=.*themes' "$config_file"; then
tmp_file="$(mktemp "${config_file}.tmp.XXXXXX")"
sed 's|^include=.*themes.*|'"$include_line"'|' "$config_file" >"$tmp_file"
write_if_changed "$config_file" "$tmp_file"
else
[ -s "$config_file" ] && [ -n "$(tail -c1 "$config_file")" ] && echo >>"$config_file"
echo "$include_line" >>"$config_file"
fi
@@ -0,0 +1,15 @@
# Fuzzel Colors
# Generated by Noctalia's Template Processor
[colors]
background={{colors.background.default.hex_stripped}}CC
text={{colors.on_surface.default.hex_stripped}}ff
prompt={{colors.secondary.default.hex_stripped}}ff
placeholder={{colors.tertiary.default.hex_stripped}}ff
input={{colors.primary.default.hex_stripped}}ff
match={{colors.tertiary.default.hex_stripped}}ff
selection={{colors.primary.default.hex_stripped}}80
selection-text={{colors.on_surface.default.hex_stripped}}ff
selection-match={{colors.on_primary.default.hex_stripped}}ff
counter={{colors.secondary.default.hex_stripped}}ff
border={{colors.primary.default.hex_stripped}}ff
@@ -0,0 +1,8 @@
[catalog.fuzzel]
name = "Fuzzel"
category = "launcher"
[templates.fuzzel]
input_path = "fuzzel.conf"
output_path = "$XDG_CONFIG_HOME/fuzzel/themes/noctalia"
post_hook = "bash '{{ config_dir }}/apply.sh'"