-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proper multi-GNOME version support, updates from fork, bugfixes, co-e…
…xist with Ubuntu tiler extension
- Loading branch information
Showing
10 changed files
with
234 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
wintile@nowsci.com.zip | ||
build/* | ||
node_modules/ | ||
package-lock.json | ||
package.json | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,77 @@ | ||
#!/bin/bash | ||
|
||
rm wintile@nowsci.com.zip | ||
G45() { | ||
local FILE="${1}" | ||
IN_NON_G45=0 | ||
IN_G45=0 | ||
while IFS= read -r LINE; do | ||
if [[ "${LINE}" = *"/* END NON-G45 */"* ]]; then | ||
IN_NON_G45=0 | ||
elif [[ "${LINE}" = *"/* END G45 */"* ]]; then | ||
IN_G45=0 | ||
fi | ||
if (( IN_G45 == 1 )); then | ||
echo "${LINE}" | sed -E 's|^(\s+)?// |\1|' | ||
elif (( IN_NON_G45 == 1 )) && ! [[ ${LINE} =~ ^[[:space:]]*// ]]; then | ||
echo "${LINE}" | sed -E 's|^(\s+)?|\1// |' | ||
else | ||
echo "${LINE}" | ||
fi | ||
if [[ "${LINE}" = *"/* BEGIN NON-G45 */"* ]]; then | ||
IN_NON_G45=1 | ||
elif [[ "${LINE}" = *"/* BEGIN G45 */"* ]]; then | ||
IN_G45=1 | ||
fi | ||
done < "${FILE}" | ||
} | ||
|
||
NON_G45() { | ||
local FILE="${1}" | ||
IN_NON_G45=0 | ||
IN_G45=0 | ||
while IFS= read -r LINE; do | ||
if [[ "${LINE}" = *"/* END NON-G45 */"* ]]; then | ||
IN_NON_G45=0 | ||
elif [[ "${LINE}" = *"/* END G45 */"* ]]; then | ||
IN_G45=0 | ||
fi | ||
if (( IN_G45 == 1 )) && ! [[ ${LINE} =~ ^[[:space:]]*// ]]; then | ||
echo "${LINE}" | sed -E 's|^(\s+)?|\1// |' | ||
elif (( IN_NON_G45 == 1 )); then | ||
echo "${LINE}" | sed -E 's|^(\s+)?// |\1|' | ||
else | ||
echo "${LINE}" | ||
fi | ||
if [[ "${LINE}" = *"/* BEGIN NON-G45 */"* ]]; then | ||
IN_NON_G45=1 | ||
elif [[ "${LINE}" = *"/* BEGIN G45 */"* ]]; then | ||
IN_G45=1 | ||
fi | ||
done < "${FILE}" | ||
} | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
cd "${SCRIPT_DIR}" | ||
|
||
rm -rf dist | ||
mkdir -p dist/G43/build | ||
mkdir -p dist/G45/build | ||
|
||
glib-compile-schemas schemas/ | ||
|
||
FILES="extension.js keybindings.js prefs.js" | ||
for FILE in ${FILES}; do | ||
NON_G45 ${FILE} > dist/G43/build/${FILE} | ||
G45 ${FILE} > dist/G45/build/${FILE} | ||
done | ||
cp -a settings.ui schemas dist/G43/build/ | ||
cp -a settings.ui schemas dist/G45/build/ | ||
cp -a metadata.json dist/G43/build/metadata.json | ||
cp -a metadata-45.json dist/G45/build/metadata.json | ||
|
||
cd dist/G43/build | ||
zip -r9 wintile@nowsci.com.zip extension.js keybindings.js metadata.json prefs.js settings.ui schemas | ||
mv wintile@nowsci.com.zip .. | ||
cd ../../G45/build | ||
zip -r9 wintile@nowsci.com.zip extension.js keybindings.js metadata.json prefs.js settings.ui schemas | ||
mv wintile@nowsci.com.zip .. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "WinTile", | ||
"description": "WinTile is a hotkey driven window tiling system for GNOME that imitates the standard Win-Arrow keys of Windows 10, allowing you to maximize, maximize to sides, or 1/4 sized to corner across a single or multiple monitors using just Super+Arrow.\n\nWinTile also supports:\n- 1-5 columns and 1-5 rows for standard or ultrawide monitors\n- Top/bottom half support\n- Mouse preview and snapping for placing windows\n- 'Maximize' mode, which adds/removes GNOME animations\n- 'Ultrawide-only' mode, to allow standard screens to have different cols/row than ultrawides\n- Portrait screens will automatically swap columns and rows\n- Add gaps around tiles to avoid the 'crowded elevator' feeling'\n- Ctrl+Super+Arrow to grow a tile in that direction if space is available\n- Ctrl+drag to drop a tile in a specific spot\n- Ctrl+Super+drag to draw a grid for the new tile", | ||
"uuid": "wintile@nowsci.com", | ||
"url": "https://nowsci.com/wintile/", | ||
"settings-schema":"org.gnome.shell.extensions.wintile", | ||
"shell-version": [ | ||
"45", | ||
"46", | ||
"47" | ||
], | ||
"version": 19 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"name": "WinTile", | ||
"description": "WinTile is a hotkey driven window tiling system for GNOME that imitates the standard Win-Arrow keys of Windows 10, allowing you to maximize, maximize to sides, or 1/4 sized to corner across a single or multiple monitors using just Super+Arrow.\n\nAs of v17, WinTile also supports:\n- 1-5 columns and 1-5 rows for standard or ultrawide monitors\n- Top/bottom half support\n- Mouse preview and snapping for placing windows\n- 'Maximize' mode, which adds/removes GNOME animations\n- 'Ultrawide-only' mode, to allow standard screens to have different cols/row than ultrawides\n- Portrait screens will automatically swap columns and rows\n- Add gaps around tiles to avoid the 'crowded elevator' feeling'\n- Ctrl+Super+Arrow to grow a tile in that direction if space is available\n- Ctrl+drag to drop a tile in a specific spot\n- Ctrl+Super+drag to draw a grid for the new tile", | ||
"description": "WinTile is a hotkey driven window tiling system for GNOME that imitates the standard Win-Arrow keys of Windows 10, allowing you to maximize, maximize to sides, or 1/4 sized to corner across a single or multiple monitors using just Super+Arrow.\n\nWinTile also supports:\n- 1-5 columns and 1-5 rows for standard or ultrawide monitors\n- Top/bottom half support\n- Mouse preview and snapping for placing windows\n- 'Maximize' mode, which adds/removes GNOME animations\n- 'Ultrawide-only' mode, to allow standard screens to have different cols/row than ultrawides\n- Portrait screens will automatically swap columns and rows\n- Add gaps around tiles to avoid the 'crowded elevator' feeling'\n- Ctrl+Super+Arrow to grow a tile in that direction if space is available\n- Ctrl+drag to drop a tile in a specific spot\n- Ctrl+Super+drag to draw a grid for the new tile", | ||
"uuid": "wintile@nowsci.com", | ||
"url": "https://github.com/fmstrat/wintile", | ||
"url": "https://nowsci.com/wintile/", | ||
"settings-schema":"org.gnome.shell.extensions.wintile", | ||
"shell-version": [ | ||
"45" | ||
"43" | ||
], | ||
"version": 17 | ||
"version": 18 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.