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
+43
View File
@@ -0,0 +1,43 @@
#!/bin/bash
# Window transparency toggle. Blob's toggles directory is loaded after
# ~/.config/hypr/looknfeel.lua, so dropping a flag file here re-enables the
# default translucency that looknfeel.lua overrides away.
FLAG_FILE="$HOME/.local/state/blob/toggles/hypr/blob-glass.lua"
ACTION=$1
if [ -z "$ACTION" ]; then
ACTION="toggle"
fi
enable_glass() {
mkdir -p "$(dirname "$FLAG_FILE")"
cat > "$FLAG_FILE" <<'LUA'
o.window({ tag = "default-opacity" }, { opacity = "0.985 0.96" })
LUA
echo "Transparency enabled (glass on)."
hyprctl reload >/dev/null
}
disable_glass() {
rm -f "$FLAG_FILE"
echo "Transparency disabled (glass off)."
hyprctl reload >/dev/null
}
if [ "$ACTION" == "on" ]; then
enable_glass
elif [ "$ACTION" == "off" ]; then
disable_glass
elif [ "$ACTION" == "toggle" ]; then
if [ -f "$FLAG_FILE" ]; then
disable_glass
else
enable_glass
fi
else
echo "Usage: blob_glass [on|off|toggle]"
exit 1
fi