diff options
-rwxr-xr-x | wpos.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -2,7 +2,13 @@ DEFAULT_PROFILE="auto" SAVEPATH="/tmp/wpos" -mkdir -p "$SAVEPATH" + +## Check and create main profile direcotry +if [ ! -d "$SAVEPATH" ]; then + mkdir -p "$SAVEPATH" + chmod 700 "$SAVEPATH" +fi + if [ "$1" = "save" ]; then wmctrl -lxG > "$SAVEPATH/$DEFAULT_PROFILE" |