This commit is contained in:
Harivansh Rathi 2026-02-20 20:25:37 -05:00
parent 02e0ef96b9
commit 3087f554c7
7 changed files with 205 additions and 4 deletions

16
rectangle/install.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
# Rectangle config - stored in UserDefaults, cannot be stowed
# Usage: ./install.sh import settings
# ./install.sh export export current settings
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
PLIST="$SCRIPT_DIR/Rectangle.plist"
if [ "$1" = "export" ]; then
defaults export com.knollsoft.Rectangle "$PLIST"
echo "Exported Rectangle settings to $PLIST"
else
defaults import com.knollsoft.Rectangle "$PLIST"
echo "Imported Rectangle settings from $PLIST"
echo "Restart Rectangle for changes to take effect."
fi