Fork the desktop off Omarchy as a self-contained system

This commit is contained in:
2026-09-19 23:50:39 -04:00
parent 16a56f49a1
commit 9501f2bb4d
559 changed files with 43273 additions and 0 deletions
+54
View File
@@ -0,0 +1,54 @@
#!/bin/bash
# blob:summary=Toggle permanent Hyprland flags by copying them into a directory that's sourced entirely.
# blob:args=<flag-name> [on|off|toggle]
usage() {
echo "Usage: blob-hypr-toggle <flag-name> [on|off|toggle]" >&2
}
if (($# < 1)); then
usage
exit 1
fi
FLAG_NAME="$1"
ACTION="${2:-toggle}"
FLAG_FILE="$HOME/.local/state/blob/toggles/hypr/$FLAG_NAME.lua"
FLAG_SOURCE="$BLOB_PATH/default/hypr/toggles/$FLAG_NAME.lua"
on() {
if [[ -f $FLAG_SOURCE ]]; then
mkdir -p "$(dirname "$FLAG_FILE")"
cp "$FLAG_SOURCE" "$FLAG_FILE"
else
echo "Flag not found: $FLAG_NAME" >&2
exit 1
fi
}
off() {
rm -f "$FLAG_FILE"
}
toggle() {
if [[ -f $FLAG_FILE ]]; then
off
echo "off"
else
on
echo "on"
fi
}
case $ACTION in
on) on ;;
off) off ;;
toggle) toggle ;;
*)
usage
exit 1
;;
esac
hyprctl reload >/dev/null