From e3927a1b251a2636c4c15457802682f40fd6f704 Mon Sep 17 00:00:00 2001 From: micxer Date: Sat, 1 Jul 2023 14:20:06 +0200 Subject: [PATCH] feat(tasks): :sparkles: Add task for copying config files in place --- files/RectangeConfig.json | 300 ++++++++++++++++++++++++++++++++++++++ main.yml | 3 + tasks/config-files.yml | 4 + 3 files changed, 307 insertions(+) create mode 100644 files/RectangeConfig.json create mode 100644 tasks/config-files.yml diff --git a/files/RectangeConfig.json b/files/RectangeConfig.json new file mode 100644 index 000000000..c8a7a52a6 --- /dev/null +++ b/files/RectangeConfig.json @@ -0,0 +1,300 @@ +{ + "bundleId" : "com.knollsoft.Rectangle", + "defaults" : { + "allowAnyShortcut" : { + "bool" : false + }, + "almostMaximizeHeight" : { + "float" : 0 + }, + "almostMaximizeWidth" : { + "float" : 0 + }, + "alternateDefaultShortcuts" : { + "bool" : true + }, + "altThirdCycle" : { + "int" : 0 + }, + "alwaysAccountForStage" : { + "int" : 0 + }, + "applyGapsToMaximize" : { + "int" : 0 + }, + "applyGapsToMaximizeHeight" : { + "int" : 0 + }, + "attemptMatchOnNextPrevDisplay" : { + "int" : 0 + }, + "autoMaximize" : { + "int" : 0 + }, + "cascadeAllDeltaSize" : { + "float" : 30 + }, + "centeredDirectionalMove" : { + "int" : 0 + }, + "centerHalfCycles" : { + "int" : 0 + }, + "cornerSnapAreaSize" : { + "float" : 20 + }, + "curtainChangeSize" : { + "int" : 0 + }, + "disabledApps" : { + + }, + "dragFromStage" : { + "int" : 0 + }, + "enhancedUI" : { + "int" : 1 + }, + "footprintAlpha" : { + "float" : 0.30000001192092896 + }, + "footprintAnimationDurationMultiplier" : { + "float" : 0 + }, + "footprintBorderWidth" : { + "float" : 2 + }, + "footprintColor" : { + + }, + "footprintFade" : { + "int" : 0 + }, + "fullIgnoreBundleIds" : { + + }, + "gapSize" : { + "float" : 0 + }, + "hideMenubarIcon" : { + "bool" : false + }, + "ignoredSnapAreas" : { + "int" : 0 + }, + "landscapeSnapAreas" : { + + }, + "launchOnLogin" : { + "bool" : true + }, + "minimumWindowHeight" : { + "float" : 0 + }, + "minimumWindowWidth" : { + "float" : 0 + }, + "missionControlDragging" : { + "int" : 0 + }, + "missionControlDraggingAllowedOffscreenDistance" : { + "float" : 25 + }, + "missionControlDraggingDisallowedDuration" : { + "int" : 250 + }, + "moveCursor" : { + "int" : 0 + }, + "moveCursorAcrossDisplays" : { + "int" : 0 + }, + "notifiedOfProblemApps" : { + "bool" : false + }, + "obtainWindowOnClick" : { + "int" : 0 + }, + "portraitSnapAreas" : { + + }, + "relaunchOpensMenu" : { + "bool" : false + }, + "resizeOnDirectionalMove" : { + "bool" : false + }, + "screenEdgeGapBottom" : { + "float" : 0 + }, + "screenEdgeGapLeft" : { + "float" : 0 + }, + "screenEdgeGapRight" : { + "float" : 0 + }, + "screenEdgeGapsOnMainScreenOnly" : { + "bool" : false + }, + "screenEdgeGapTop" : { + "float" : 0 + }, + "shortEdgeSnapAreaSize" : { + "float" : 145 + }, + "showAllActionsInMenu" : { + "int" : 0 + }, + "sixthsSnapArea" : { + "int" : 0 + }, + "sizeOffset" : { + "float" : 0 + }, + "snapEdgeMarginBottom" : { + "float" : 5 + }, + "snapEdgeMarginLeft" : { + "float" : 5 + }, + "snapEdgeMarginRight" : { + "float" : 5 + }, + "snapEdgeMarginTop" : { + "float" : 5 + }, + "snapModifiers" : { + "int" : 0 + }, + "specifiedHeight" : { + "float" : 1050 + }, + "specifiedWidth" : { + "float" : 1680 + }, + "stageSize" : { + "float" : 190 + }, + "subsequentExecutionMode" : { + "int" : 1 + }, + "SUEnableAutomaticChecks" : { + "bool" : false + }, + "todo" : { + "int" : 0 + }, + "todoApplication" : { + + }, + "todoMode" : { + "bool" : false + }, + "todoSidebarSide" : { + "int" : 1 + }, + "todoSidebarWidth" : { + "float" : 400 + }, + "traverseSingleScreen" : { + "int" : 0 + }, + "unsnapRestore" : { + "int" : 0 + }, + "windowSnapping" : { + "int" : 0 + } + }, + "shortcuts" : { + "almostMaximize" : { + "keyCode" : 0, + "modifierFlags" : 1835008 + }, + "bottomHalf" : { + "keyCode" : 125, + "modifierFlags" : 1835008 + }, + "bottomLeft" : { + "keyCode" : 38, + "modifierFlags" : 786432 + }, + "bottomRight" : { + "keyCode" : 40, + "modifierFlags" : 786432 + }, + "center" : { + "keyCode" : 8, + "modifierFlags" : 786432 + }, + "centerThird" : { + "keyCode" : 3, + "modifierFlags" : 786432 + }, + "firstThird" : { + "keyCode" : 2, + "modifierFlags" : 786432 + }, + "firstTwoThirds" : { + "keyCode" : 14, + "modifierFlags" : 786432 + }, + "larger" : { + "keyCode" : 24, + "modifierFlags" : 786432 + }, + "lastThird" : { + "keyCode" : 5, + "modifierFlags" : 786432 + }, + "lastTwoThirds" : { + "keyCode" : 17, + "modifierFlags" : 786432 + }, + "leftHalf" : { + "keyCode" : 123, + "modifierFlags" : 1835008 + }, + "maximize" : { + "keyCode" : 46, + "modifierFlags" : 1835008 + }, + "maximizeHeight" : { + "keyCode" : 126, + "modifierFlags" : 917504 + }, + "reflowTodo" : { + "keyCode" : 45, + "modifierFlags" : 786432 + }, + "restore" : { + "keyCode" : 51, + "modifierFlags" : 786432 + }, + "rightHalf" : { + "keyCode" : 124, + "modifierFlags" : 1835008 + }, + "smaller" : { + "keyCode" : 27, + "modifierFlags" : 786432 + }, + "toggleTodo" : { + "keyCode" : 11, + "modifierFlags" : 786432 + }, + "topHalf" : { + "keyCode" : 126, + "modifierFlags" : 1835008 + }, + "topLeft" : { + "keyCode" : 32, + "modifierFlags" : 786432 + }, + "topRight" : { + "keyCode" : 34, + "modifierFlags" : 786432 + } + }, + "version" : "75" + } \ No newline at end of file diff --git a/main.yml b/main.yml index 57e5de965..0a72d4d42 100644 --- a/main.yml +++ b/main.yml @@ -35,6 +35,9 @@ when: configure_macos tags: ['macos'] + - import_tasks: tasks/config-files.yml + tags: ['config-files'] + - import_tasks: tasks/extra-packages.yml tags: ['extra-packages'] diff --git a/tasks/config-files.yml b/tasks/config-files.yml new file mode 100644 index 000000000..06a47ce57 --- /dev/null +++ b/tasks/config-files.yml @@ -0,0 +1,4 @@ +- name: Copy rectangle configuration into place. + ansible.builtin.copy: + src: RectangeConfig.json + dest: "$HOME/Library/Application Support/Rectangle/RectangleConfig.json"