Vendor the command set the menu and shell depend on
This commit is contained in:
Executable
+21
@@ -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}"
|
||||
Reference in New Issue
Block a user