Vendor the command set the menu and shell depend on

This commit is contained in:
2026-09-19 23:57:12 -04:00
parent 9501f2bb4d
commit c5434026a8
179 changed files with 12414 additions and 54 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
# blob:summary=Install a Nerd Font package and switch the system to it
# blob:args=<display-name> <package> <family>
# blob:examples=blob install font 'Cascadia Mono' ttf-cascadia-mono-nerd 'CaskaydiaMono Nerd Font'
name="${1-}"
package="${2-}"
family="${3-}"
if [[ -z $name || -z $package || -z $family ]]; then
echo "Usage: blob-install-font <display-name> <package> <family>" >&2
exit 1
fi
printf -v install_message '%q' "Installing ${name}..."
printf -v package_arg '%q' "$package"
printf -v family_arg '%q' "$family"
exec blob-launch-floating \
"echo ${install_message}; blob-pkg-add ${package_arg} && sleep 2 && blob-font-set ${family_arg}"