mirror of
https://github.com/harivansh-afk/dots.git
synced 2026-04-15 06:04:41 +00:00
16 lines
557 B
Bash
Executable file
16 lines
557 B
Bash
Executable file
#!/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
|