Skip to content

Commit

Permalink
updates from review
Browse files Browse the repository at this point in the history
  • Loading branch information
Fmstrat committed Nov 25, 2024
1 parent 15bc815 commit fa5d91c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
24 changes: 12 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ G45() {
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}"
if [[ "${LINE}" != *"/* BEGIN "* ]] && [[ "${LINE}" != *"/* END "* ]]; then
if (( IN_G45 == 1 )); then
echo "${LINE}" | sed -E 's|^(\s+)?// |\1|'
elif (( IN_NON_G45 == 0 )); then
echo "${LINE}"
fi
fi
if [[ "${LINE}" = *"/* BEGIN NON-G45 */"* ]]; then
IN_NON_G45=1
Expand All @@ -35,12 +35,12 @@ NON_G45() {
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}"
if [[ "${LINE}" != *"/* BEGIN "* ]] && [[ "${LINE}" != *"/* END "* ]]; then
if (( IN_NON_G45 == 1 )); then
echo "${LINE}" | sed -E 's|^(\s+)?// |\1|'
elif (( IN_G45 == 0 )); then
echo "${LINE}"
fi
fi
if [[ "${LINE}" = *"/* BEGIN NON-G45 */"* ]]; then
IN_NON_G45=1
Expand Down
7 changes: 2 additions & 5 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -1109,8 +1109,9 @@ var WintileExtension = class WintileExtension {
changeBinding(mutterKeybindingSettings, 'toggle-tiled-left', '<Super>Left', '<Control><Shift><Super>Left');
changeBinding(mutterKeybindingSettings, 'toggle-tiled-right', '<Super>Right', '<Control><Shift><Super>Right');
mutterSettings.set_boolean('edge-tiling', false);
let tilingAssistantSettings;
try {
let tilingAssistantSettings = new Gio.Settings({schema_id: 'org.gnome.shell.extensions.tiling-assistant'});
tilingAssistantSettings = new Gio.Settings({schema_id: 'org.gnome.shell.extensions.tiling-assistant'});
oldbindings['restore-window'] = tilingAssistantSettings.get_strv('restore-window');
oldbindings['tile-left-half'] = tilingAssistantSettings.get_strv('tile-left-half');
oldbindings['tile-maximize'] = tilingAssistantSettings.get_strv('tile-maximize');
Expand Down Expand Up @@ -1188,9 +1189,6 @@ var WintileExtension = class WintileExtension {
keyManager.removeAll();
keyManager.destroy();
keyManager = null;
let desktopSettings = new Gio.Settings({schema_id: 'org.gnome.desktop.wm.keybindings'});
let mutterKeybindingSettings = new Gio.Settings({schema_id: 'org.gnome.mutter.keybindings'});
let mutterSettings = new Gio.Settings({schema_id: 'org.gnome.mutter'});
try {
let shellSettings = new Gio.Settings({schema_id: 'org.gnome.shell.overrides'});
shellSettings.reset('edge-tiling');
Expand All @@ -1206,7 +1204,6 @@ var WintileExtension = class WintileExtension {
mutterSettings.reset('edge-tiling');
mutterSettings = null;
try {
let tilingAssistantSettings = new Gio.Settings({schema_id: 'org.gnome.shell.extensions.tiling-assistant'});
tilingAssistantSettings.reset('restore-window');
tilingAssistantSettings.reset('tile-left-half');
tilingAssistantSettings.reset('tile-maximize');
Expand Down

0 comments on commit fa5d91c

Please sign in to comment.