From 0f403aa3fd5b6d0bd4bc63444889e99db6fddbe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veli=20Tasal=C4=B1?= Date: Wed, 18 Oct 2023 12:17:44 +0300 Subject: [PATCH] feat: Support GNOME 45 Closes #45. --- install.sh | 28 +- po/POTFILES.in | 3 +- po/awesome-tiles@velitasali.com.pot | 163 ++--- po/de.po | 227 ++++--- po/fr.po | 266 +++++--- po/it.po | 227 ++++--- po/ko.po | 264 +++++--- po/nl.po | 227 ++++--- po/tr.po | 263 +++++--- src/constants.js | 11 +- src/extension.js | 47 +- src/metadata.json | 9 +- src/prefs.js | 410 +++++++++---- src/prefs.ui | 919 ---------------------------- src/utils.js | 15 +- src/windowMover.js | 7 +- 16 files changed, 1376 insertions(+), 1710 deletions(-) delete mode 100644 src/prefs.ui diff --git a/install.sh b/install.sh index b45e2ef..733c2a1 100755 --- a/install.sh +++ b/install.sh @@ -12,22 +12,30 @@ NAME=awesome-tiles\@velitasali.com function pack-extension { echo "Packing extension..." gnome-extensions pack src \ - --force \ - --podir="../po" \ - --extra-source="constants.js" \ - --extra-source="prefs.ui" \ - --extra-source="prefs-shortcut-dialog.ui" \ - --extra-source="utils.js" \ - --extra-source="windowMover.js" \ - --extra-source="../LICENSE" + --force \ + --podir="../po" \ + --extra-source="constants.js" \ + --extra-source="utils.js" \ + --extra-source="windowMover.js" \ + --extra-source="prefs-shortcut-dialog.ui" \ + --extra-source="../LICENSE" } function compile-preferences { + if [ -d src/resources ]; then + echo 'Compiling resources...' + glib-compile-resources --sourcedir=src/resources \ + --target=src/resources/prefs.gresource \ + src/resources/org.gnome.shell.extensions.awesome-tiles.prefs.gresource.xml + else + echo 'No resources to compile... Skipping' + fi + if [ -d src/schemas ]; then - echo 'Compiling preferences...' + echo 'Compiling schemas...' glib-compile-schemas --targetdir=src/schemas src/schemas else - echo 'No preferences to compile... Skipping' + echo 'No schemas to compile... Skipping' fi } diff --git a/po/POTFILES.in b/po/POTFILES.in index 623b03f..475bc4d 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,4 +1,3 @@ src/extension.js src/prefs.js -src/prefs.ui -src/prefs-shortcut-dialog.ui \ No newline at end of file +src/prefs-shortcut-dialog.ui diff --git a/po/awesome-tiles@velitasali.com.pot b/po/awesome-tiles@velitasali.com.pot index 2105d28..56508f8 100644 --- a/po/awesome-tiles@velitasali.com.pot +++ b/po/awesome-tiles@velitasali.com.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-05-08 05:15+0900\n" +"POT-Creation-Date: 2023-10-31 01:00+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,169 +18,188 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" -#: src/prefs.js:145 -msgid "Disabled" +#: src/prefs-shortcut-dialog.ui:19 +msgid "Press your keyboard shortcut or 'Backspace' to disable..." msgstr "" -#: src/prefs.ui:34 -msgid "Enable window animation" +#: src/prefs-shortcut-dialog.ui:28 +msgid "Keyboard Shortcut" msgstr "" -#: src/prefs.ui:41 -msgid "Add animation on windows. (In Wayland, this option will very buggy)" +#: src/prefs.js:32 +msgid "General" msgstr "" -#: src/prefs.ui:79 -msgid "Gap Between Window and Workspace" +#: src/prefs.js:49 +msgid "Behavior" msgstr "" -#: src/prefs.ui:86 -msgid "Percentage to leave out as gap when the window in focus is tiled." +#: src/prefs.js:53 +msgid "Enable Window Animations" msgstr "" -#: src/prefs.ui:124 -msgid "Keybinding iterate timeout" +#: src/prefs.js:54 +msgid "" +"Animate windows when resized or repositioned (this may be buggy on Wayland)." msgstr "" -#: src/prefs.ui:131 -msgid "" -"Maximum time of you can adjust tiling step by iterating same keybinding in " -"milliseconds." +#: src/prefs.js:65 +msgid "Shortcut Iteration Timeout in Milliseconds" msgstr "" -#: src/prefs.ui:176 -msgid "Gap Size Increments" +#: src/prefs.js:66 +msgid "The time window to consider a new key press an iteration." +msgstr "" + +#: src/prefs.js:85 +msgid "Center Tiling Steps" +msgstr "" + +#: src/prefs.js:86 src/prefs.js:102 +msgid "Steps on each key press (values between 0-1)." +msgstr "" + +#: src/prefs.js:101 +msgid "Side Tiling Steps" msgstr "" -#: src/prefs.ui:183 -msgid "Determine how much gap size adjust by keybinding." +#: src/prefs.js:118 +msgid "Gaps" msgstr "" -#: src/prefs.ui:228 +#: src/prefs.js:122 msgid "Gaps Between Windows" msgstr "" -#: src/prefs.ui:235 +#: src/prefs.js:123 msgid "Put gaps between windows." msgstr "" -#: src/prefs.ui:273 -msgid "Center Tiling Steps" +#: src/prefs.js:134 +msgid "Gap Between Window and Workspace" msgstr "" -#: src/prefs.ui:280 src/prefs.ui:326 -msgid "Steps on each key press (values between 0-1)." +#: src/prefs.js:135 +msgid "Percentage to leave out as gap when a window is tiled." msgstr "" -#: src/prefs.ui:319 -msgid "Side Tiling Steps" +#: src/prefs.js:151 +msgid "Gap Size Increments" +msgstr "" + +#: src/prefs.js:152 +msgid "The change that the shorcuts make in the gap size." +msgstr "" + +#: src/prefs.js:172 +msgid "Shortcuts" msgstr "" -#: src/prefs.ui:365 +#: src/prefs.js:173 +msgid "Assign shortcuts to the functionalities" +msgstr "" + +#: src/prefs.js:181 msgid "Align Window to Center" msgstr "" -#: src/prefs.ui:372 -msgid "Shortcut to align the window in focus to center without resizing it." +#: src/prefs.js:182 +msgid "Shortcut to align the active window to center without resizing it." msgstr "" -#: src/prefs.ui:412 -msgid "Increase the Gap Size" +#: src/prefs.js:192 +msgid "Increase Gap Size" msgstr "" -#: src/prefs.ui:419 +#: src/prefs.js:193 msgid "Shortcut to increase the gap size." msgstr "" -#: src/prefs.ui:459 -msgid "Decrease the Gap Size" +#: src/prefs.js:203 +msgid "Decrease Gap Size" msgstr "" -#: src/prefs.ui:466 +#: src/prefs.js:204 msgid "Shortcut to decrease the gap size." msgstr "" -#: src/prefs.ui:506 +#: src/prefs.js:214 msgid "Tile Window to Center" msgstr "" -#: src/prefs.ui:513 -msgid "Shortcut to tile the window in focus to center." +#: src/prefs.js:215 +msgid "Shortcut to tile active window to center." msgstr "" -#: src/prefs.ui:553 +#: src/prefs.js:225 msgid "Tile Window to Left" msgstr "" -#: src/prefs.ui:560 -msgid "Shortcut to tile the window in focus to left." +#: src/prefs.js:226 +msgid "Shortcut to tile the active window to left." msgstr "" -#: src/prefs.ui:600 +#: src/prefs.js:236 msgid "Tile Window to Right" msgstr "" -#: src/prefs.ui:607 -msgid "Shortcut to tile the window in focus to right." +#: src/prefs.js:237 +msgid "Shortcut to tile the active window to right." msgstr "" -#: src/prefs.ui:647 +#: src/prefs.js:247 msgid "Tile Window to Top" msgstr "" -#: src/prefs.ui:654 -msgid "Shortcut to tile the window in focus to top." +#: src/prefs.js:248 +msgid "Shortcut to tile the active window to top." msgstr "" -#: src/prefs.ui:694 +#: src/prefs.js:258 msgid "Tile Window to Bottom" msgstr "" -#: src/prefs.ui:701 -msgid "Shortcut to tile the window in focus to bottom." +#: src/prefs.js:259 +msgid "Shortcut to tile the active window to bottom." msgstr "" -#: src/prefs.ui:741 +#: src/prefs.js:269 msgid "Tile Window to Top Left" msgstr "" -#: src/prefs.ui:748 -msgid "Shortcut to tile the window in focus to top left." +#: src/prefs.js:270 +msgid "Shortcut to tile the active window to top left." msgstr "" -#: src/prefs.ui:788 +#: src/prefs.js:280 msgid "Tile Window to Top Right" msgstr "" -#: src/prefs.ui:795 -msgid "Shortcut to tile the window in focus to top right." +#: src/prefs.js:281 +msgid "Shortcut to tile the active window to top right." msgstr "" -#: src/prefs.ui:835 +#: src/prefs.js:292 msgid "Tile Window to Bottom Left" msgstr "" -#: src/prefs.ui:842 -msgid "Shortcut to tile the window in focus to bottom left." +#: src/prefs.js:293 +msgid "Shortcut to tile the active window to bottom left." msgstr "" -#: src/prefs.ui:882 +#: src/prefs.js:303 msgid "Tile Window to Bottom Right" msgstr "" -#: src/prefs.ui:889 -msgid "Shortcut to tile the window in focus to bottom right." +#: src/prefs.js:304 +msgid "Shortcut to tile the active window to bottom right." msgstr "" -#: src/prefs-shortcut-dialog.ui:19 -msgid "Press your keyboard shortcut or 'Backspace' to disable..." -msgstr "" - -#: src/prefs-shortcut-dialog.ui:28 -msgid "Keyboard Shortcut" +#: src/prefs.js:347 +msgid "Disabled" msgstr "" -#: src/extension.js:183 +#: src/extension.js:161 #, javascript-format msgid "Gap size is now at %d percent" msgid_plural "Gap size is now at %d percent" diff --git a/po/de.po b/po/de.po index 7610e52..5d7c58b 100644 --- a/po/de.po +++ b/po/de.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-05-08 05:15+0900\n" +"POT-Creation-Date: 2023-10-31 01:00+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,173 +18,232 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" -#: src/prefs.js:145 -msgid "Disabled" +#: src/prefs-shortcut-dialog.ui:19 +msgid "Press your keyboard shortcut or 'Backspace' to disable..." msgstr "" -#: src/prefs.ui:34 -msgid "Enable window animation" +#: src/prefs-shortcut-dialog.ui:28 +msgid "Keyboard Shortcut" +msgstr "Tastenkombination" + +#: src/prefs.js:32 +msgid "General" msgstr "" -#: src/prefs.ui:41 -msgid "Add animation on windows. (In Wayland, this option will very buggy)" +#: src/prefs.js:49 +msgid "Behavior" msgstr "" -#: src/prefs.ui:79 -msgid "Gap Between Window and Workspace" -msgstr "Abstand zwischen Fenster und Arbeitsumgebung" +#: src/prefs.js:53 +msgid "Enable Window Animations" +msgstr "" -#: src/prefs.ui:86 -msgid "Percentage to leave out as gap when the window in focus is tiled." -msgstr "Abstand in Prozent für Platz von Fenstern mit Focus, welche gekachelt sind." +#: src/prefs.js:54 +msgid "Animate windows when resized or repositioned (this may be buggy on Wayland)." +msgstr "" -#: src/prefs.ui:124 -msgid "Keybinding iterate timeout" +#: src/prefs.js:65 +msgid "Shortcut Iteration Timeout in Milliseconds" msgstr "" -#: src/prefs.ui:131 -msgid "Maximum time of you can adjust tiling step by iterating same keybinding in milliseconds." +#: src/prefs.js:66 +msgid "The time window to consider a new key press an iteration." msgstr "" -#: src/prefs.ui:176 -msgid "Gap Size Increments" +#: src/prefs.js:85 +msgid "Center Tiling Steps" msgstr "" -#: src/prefs.ui:183 -msgid "Determine how much gap size adjust by keybinding." +#: src/prefs.js:86 src/prefs.js:102 +msgid "Steps on each key press (values between 0-1)." msgstr "" -#: src/prefs.ui:228 +#: src/prefs.js:101 +msgid "Side Tiling Steps" +msgstr "" + +#: src/prefs.js:118 +msgid "Gaps" +msgstr "" + +#: src/prefs.js:122 msgid "Gaps Between Windows" msgstr "" -#: src/prefs.ui:235 +#: src/prefs.js:123 msgid "Put gaps between windows." msgstr "" -#: src/prefs.ui:273 -msgid "Center Tiling Steps" +#: src/prefs.js:134 +msgid "Gap Between Window and Workspace" +msgstr "Abstand zwischen Fenster und Arbeitsumgebung" + +#: src/prefs.js:135 +msgid "Percentage to leave out as gap when a window is tiled." msgstr "" -#: src/prefs.ui:280 src/prefs.ui:326 -msgid "Steps on each key press (values between 0-1)." +#: src/prefs.js:151 +msgid "Gap Size Increments" msgstr "" -#: src/prefs.ui:319 -msgid "Side Tiling Steps" +#: src/prefs.js:152 +msgid "The change that the shorcuts make in the gap size." +msgstr "" + +#: src/prefs.js:172 +msgid "Shortcuts" msgstr "" -#: src/prefs.ui:365 +#: src/prefs.js:173 +msgid "Assign shortcuts to the functionalities" +msgstr "" + +#: src/prefs.js:181 msgid "Align Window to Center" msgstr "Fenster zentrieren" -#: src/prefs.ui:372 -msgid "Shortcut to align the window in focus to center without resizing it." -msgstr "Tastenkürzel um das Fenster mit Focus zu zentrieren ohne die Größe zu ändern." +#: src/prefs.js:182 +msgid "Shortcut to align the active window to center without resizing it." +msgstr "" -#: src/prefs.ui:412 -msgid "Increase the Gap Size" -msgstr "Abstand vergrößern" +#: src/prefs.js:192 +msgid "Increase Gap Size" +msgstr "" -#: src/prefs.ui:419 +#: src/prefs.js:193 msgid "Shortcut to increase the gap size." msgstr "" -#: src/prefs.ui:459 -msgid "Decrease the Gap Size" -msgstr "Abstand verringern" +#: src/prefs.js:203 +msgid "Decrease Gap Size" +msgstr "" -#: src/prefs.ui:466 +#: src/prefs.js:204 msgid "Shortcut to decrease the gap size." msgstr "" -#: src/prefs.ui:506 +#: src/prefs.js:214 msgid "Tile Window to Center" msgstr "Fenster zentrieren" -#: src/prefs.ui:513 -msgid "Shortcut to tile the window in focus to center." -msgstr "Tastenkürzel um das Fenster zu zentrieren." +#: src/prefs.js:215 +msgid "Shortcut to tile active window to center." +msgstr "" -#: src/prefs.ui:553 +#: src/prefs.js:225 msgid "Tile Window to Left" msgstr "Fenster nach links verschieben" -#: src/prefs.ui:560 -msgid "Shortcut to tile the window in focus to left." -msgstr "Tastenkürzel um das Fenster nach links zu verschieben." +#: src/prefs.js:226 +msgid "Shortcut to tile the active window to left." +msgstr "" -#: src/prefs.ui:600 +#: src/prefs.js:236 msgid "Tile Window to Right" msgstr "Fenster nach rechts verschieben" -#: src/prefs.ui:607 -msgid "Shortcut to tile the window in focus to right." -msgstr "Tastenkürzel um das Fenster nach rechts zu verschieben." +#: src/prefs.js:237 +msgid "Shortcut to tile the active window to right." +msgstr "" -#: src/prefs.ui:647 +#: src/prefs.js:247 msgid "Tile Window to Top" msgstr "Fenster nach oben verschieben" -#: src/prefs.ui:654 -msgid "Shortcut to tile the window in focus to top." -msgstr "Tastenkürzel um das Fenster nach oben zu verschieben." +#: src/prefs.js:248 +msgid "Shortcut to tile the active window to top." +msgstr "" -#: src/prefs.ui:694 +#: src/prefs.js:258 msgid "Tile Window to Bottom" msgstr "Fenster nach unten verschieben" -#: src/prefs.ui:701 -msgid "Shortcut to tile the window in focus to bottom." -msgstr "Tastenkürzel um das Fenster nach unten zu verschieben." +#: src/prefs.js:259 +msgid "Shortcut to tile the active window to bottom." +msgstr "" -#: src/prefs.ui:741 +#: src/prefs.js:269 msgid "Tile Window to Top Left" msgstr "Fenster nach links-oben verschieben" -#: src/prefs.ui:748 -msgid "Shortcut to tile the window in focus to top left." -msgstr "Tastenkürzel um das Fenster nach links-oben zu verschieben." +#: src/prefs.js:270 +msgid "Shortcut to tile the active window to top left." +msgstr "" -#: src/prefs.ui:788 +#: src/prefs.js:280 msgid "Tile Window to Top Right" msgstr "Fenster nach rechts-oben verschieben" -#: src/prefs.ui:795 -msgid "Shortcut to tile the window in focus to top right." -msgstr "Tastenkürzel um das Fenster nach rechts-oben zu verschieben." +#: src/prefs.js:281 +msgid "Shortcut to tile the active window to top right." +msgstr "" -#: src/prefs.ui:835 +#: src/prefs.js:292 msgid "Tile Window to Bottom Left" msgstr "Fenster nach links-unten verschieben" -#: src/prefs.ui:842 -msgid "Shortcut to tile the window in focus to bottom left." -msgstr "Tastenkürzel um das Fenster nach links-unten zu verschieben." +#: src/prefs.js:293 +msgid "Shortcut to tile the active window to bottom left." +msgstr "" -#: src/prefs.ui:882 +#: src/prefs.js:303 msgid "Tile Window to Bottom Right" msgstr "Fenster nach rechts-unten verschieben" -#: src/prefs.ui:889 -msgid "Shortcut to tile the window in focus to bottom right." -msgstr "Tastenkürzel um das FEnster nach rechts-unten zu verschieben." - -#: src/prefs-shortcut-dialog.ui:19 -msgid "Press your keyboard shortcut or 'Backspace' to disable..." +#: src/prefs.js:304 +msgid "Shortcut to tile the active window to bottom right." msgstr "" -#: src/prefs-shortcut-dialog.ui:28 -msgid "Keyboard Shortcut" -msgstr "Tastenkombination" +#: src/prefs.js:347 +msgid "Disabled" +msgstr "" -#: src/extension.js:183 +#: src/extension.js:161 #, javascript-format msgid "Gap size is now at %d percent" msgid_plural "Gap size is now at %d percent" msgstr[0] "Abstand ist jetzt bei %d Prozent" msgstr[1] "Abstände sind jetzt bei %d Prozent" +#~ msgid "Percentage to leave out as gap when the window in focus is tiled." +#~ msgstr "Abstand in Prozent für Platz von Fenstern mit Focus, welche gekachelt sind." + +#~ msgid "Shortcut to align the window in focus to center without resizing it." +#~ msgstr "Tastenkürzel um das Fenster mit Focus zu zentrieren ohne die Größe zu ändern." + +#~ msgid "Increase the Gap Size" +#~ msgstr "Abstand vergrößern" + +#~ msgid "Decrease the Gap Size" +#~ msgstr "Abstand verringern" + +#~ msgid "Shortcut to tile the window in focus to center." +#~ msgstr "Tastenkürzel um das Fenster zu zentrieren." + +#~ msgid "Shortcut to tile the window in focus to left." +#~ msgstr "Tastenkürzel um das Fenster nach links zu verschieben." + +#~ msgid "Shortcut to tile the window in focus to right." +#~ msgstr "Tastenkürzel um das Fenster nach rechts zu verschieben." + +#~ msgid "Shortcut to tile the window in focus to top." +#~ msgstr "Tastenkürzel um das Fenster nach oben zu verschieben." + +#~ msgid "Shortcut to tile the window in focus to bottom." +#~ msgstr "Tastenkürzel um das Fenster nach unten zu verschieben." + +#~ msgid "Shortcut to tile the window in focus to top left." +#~ msgstr "Tastenkürzel um das Fenster nach links-oben zu verschieben." + +#~ msgid "Shortcut to tile the window in focus to top right." +#~ msgstr "Tastenkürzel um das Fenster nach rechts-oben zu verschieben." + +#~ msgid "Shortcut to tile the window in focus to bottom left." +#~ msgstr "Tastenkürzel um das Fenster nach links-unten zu verschieben." + +#~ msgid "Shortcut to tile the window in focus to bottom right." +#~ msgstr "Tastenkürzel um das FEnster nach rechts-unten zu verschieben." + #~ msgid "Shortcut to increase the gap size by 5." #~ msgstr "Tastenkürzel um den Abstand um 5 zu vergrößern." diff --git a/po/fr.po b/po/fr.po index 3a920ab..267e3d2 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-05-08 05:15+0900\n" +"POT-Creation-Date: 2023-10-31 01:00+0300\n" "PO-Revision-Date: 2023-10-16 13:34+0200\n" "Last-Translator: Louise\n" "Language-Team: France\n" @@ -18,179 +18,243 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Poedit 3.4\n" -#: src/prefs.js:145 -msgid "Disabled" -msgstr "Désactiver" +#: src/prefs-shortcut-dialog.ui:19 +msgid "Press your keyboard shortcut or 'Backspace' to disable..." +msgstr "Appuyer sur votre raccourci clavier ou \"retour arrière\" pour désactiver..." -#: src/prefs.ui:34 -msgid "Enable window animation" -msgstr "Activer l'animation des fenêtres" +#: src/prefs-shortcut-dialog.ui:28 +msgid "Keyboard Shortcut" +msgstr "Raccourci Clavier" -#: src/prefs.ui:41 -msgid "Add animation on windows. (In Wayland, this option will very buggy)" +#: src/prefs.js:32 +msgid "General" msgstr "" -"Ajouter une animation de fenêtre (sous Wayland, cette option sera très " -"buguée)" -#: src/prefs.ui:79 -msgid "Gap Between Window and Workspace" -msgstr "Espace entre une fenêtre et le Workspace" +#: src/prefs.js:49 +msgid "Behavior" +msgstr "" -#: src/prefs.ui:86 -msgid "Percentage to leave out as gap when the window in focus is tiled." +#: src/prefs.js:53 +msgid "Enable Window Animations" msgstr "" -"Pourcentage à laisser comme espace quand la fenêtre en focus est " -"dimensionnée." -#: src/prefs.ui:124 -msgid "Keybinding iterate timeout" -msgstr "Délai d'expiration de saisie" +#: src/prefs.js:54 +msgid "Animate windows when resized or repositioned (this may be buggy on Wayland)." +msgstr "" -#: src/prefs.ui:131 -msgid "" -"Maximum time of you can adjust tiling step by iterating same keybinding in " -"milliseconds." +#: src/prefs.js:65 +msgid "Shortcut Iteration Timeout in Milliseconds" msgstr "" -"Temps maximum durant lequel vous pouvez ajuster l’étape de dimensionnement " -"en itérant la même touche (en millisecondes)." -#: src/prefs.ui:176 -msgid "Gap Size Increments" -msgstr "Incrément de la Taille de l'Écart" +#: src/prefs.js:66 +msgid "The time window to consider a new key press an iteration." +msgstr "" + +#: src/prefs.js:85 +msgid "Center Tiling Steps" +msgstr "Étapes du Dimensionnement Central" + +#: src/prefs.js:86 src/prefs.js:102 +msgid "Steps on each key press (values between 0-1)." +msgstr "Étapes entre chaque touche appuyée (valeurs entre 0 - 1)" -#: src/prefs.ui:183 -msgid "Determine how much gap size adjust by keybinding." -msgstr "Déterminer la taille de l'espace a ajuster par la touche." +#: src/prefs.js:101 +msgid "Side Tiling Steps" +msgstr "Étapes du Dimensionnement Latéral" + +#: src/prefs.js:118 +msgid "Gaps" +msgstr "" -#: src/prefs.ui:228 +#: src/prefs.js:122 msgid "Gaps Between Windows" msgstr "Espace Entre les Fenêtres" -#: src/prefs.ui:235 +#: src/prefs.js:123 msgid "Put gaps between windows." msgstr "Mettre des espaces entre les fenêtres." -#: src/prefs.ui:273 -msgid "Center Tiling Steps" -msgstr "Étapes du Dimensionnement Central" +#: src/prefs.js:134 +msgid "Gap Between Window and Workspace" +msgstr "Espace entre une fenêtre et le Workspace" -#: src/prefs.ui:280 src/prefs.ui:326 -msgid "Steps on each key press (values between 0-1)." -msgstr "Étapes entre chaque touche appuyée (valeurs entre 0 - 1)" +#: src/prefs.js:135 +msgid "Percentage to leave out as gap when a window is tiled." +msgstr "" -#: src/prefs.ui:319 -msgid "Side Tiling Steps" -msgstr "Étapes du Dimensionnement Latéral" +#: src/prefs.js:151 +msgid "Gap Size Increments" +msgstr "Incrément de la Taille de l'Écart" + +#: src/prefs.js:152 +msgid "The change that the shorcuts make in the gap size." +msgstr "" + +#: src/prefs.js:172 +msgid "Shortcuts" +msgstr "" -#: src/prefs.ui:365 +#: src/prefs.js:173 +msgid "Assign shortcuts to the functionalities" +msgstr "" + +#: src/prefs.js:181 msgid "Align Window to Center" msgstr "Centrer la Fenêtre" -#: src/prefs.ui:372 -msgid "Shortcut to align the window in focus to center without resizing it." -msgstr "Raccourci pour centrer la fenêtre en focus sans la redimensionner." +#: src/prefs.js:182 +msgid "Shortcut to align the active window to center without resizing it." +msgstr "" -#: src/prefs.ui:412 -msgid "Increase the Gap Size" -msgstr "Augmenter l'Espace Vide" +#: src/prefs.js:192 +msgid "Increase Gap Size" +msgstr "" -#: src/prefs.ui:419 +#: src/prefs.js:193 msgid "Shortcut to increase the gap size." msgstr "Raccourci pour augmenter l'espace vide." -#: src/prefs.ui:459 -msgid "Decrease the Gap Size" -msgstr "Réduire l'Espace Vide" +#: src/prefs.js:203 +msgid "Decrease Gap Size" +msgstr "" -#: src/prefs.ui:466 +#: src/prefs.js:204 msgid "Shortcut to decrease the gap size." msgstr "Raccourci pour réduire l'espace vide." -#: src/prefs.ui:506 +#: src/prefs.js:214 msgid "Tile Window to Center" msgstr "Placer la Fenêtre au Centre" -#: src/prefs.ui:513 -msgid "Shortcut to tile the window in focus to center." -msgstr "Raccourci pour centrer la fenêtre en focus." +#: src/prefs.js:215 +msgid "Shortcut to tile active window to center." +msgstr "" -#: src/prefs.ui:553 +#: src/prefs.js:225 msgid "Tile Window to Left" msgstr "Placer la Fenêtre à Gauche" -#: src/prefs.ui:560 -msgid "Shortcut to tile the window in focus to left." -msgstr "Raccourci pour placer la fenêtre en focus à gauche." +#: src/prefs.js:226 +msgid "Shortcut to tile the active window to left." +msgstr "" -#: src/prefs.ui:600 +#: src/prefs.js:236 msgid "Tile Window to Right" msgstr "Placer la Fenêtre à Droite" -#: src/prefs.ui:607 -msgid "Shortcut to tile the window in focus to right." -msgstr "Raccourci pour placer la fenêtre en focus à droite." +#: src/prefs.js:237 +msgid "Shortcut to tile the active window to right." +msgstr "" -#: src/prefs.ui:647 +#: src/prefs.js:247 msgid "Tile Window to Top" msgstr "Placer la Fenêtre en Haut" -#: src/prefs.ui:654 -msgid "Shortcut to tile the window in focus to top." -msgstr "Raccourci pour placer la fenêtre en focus en haut." +#: src/prefs.js:248 +msgid "Shortcut to tile the active window to top." +msgstr "" -#: src/prefs.ui:694 +#: src/prefs.js:258 msgid "Tile Window to Bottom" msgstr "Placer la Fenêtre en Bas" -#: src/prefs.ui:701 -msgid "Shortcut to tile the window in focus to bottom." -msgstr "Raccourci pour placer la fenêtre en bas." +#: src/prefs.js:259 +msgid "Shortcut to tile the active window to bottom." +msgstr "" -#: src/prefs.ui:741 +#: src/prefs.js:269 msgid "Tile Window to Top Left" msgstr "Placer la Fenêtre en Haut à Gauche" -#: src/prefs.ui:748 -msgid "Shortcut to tile the window in focus to top left." -msgstr "Raccourci pour placer la fenêtre en focus en haut à gauche." +#: src/prefs.js:270 +msgid "Shortcut to tile the active window to top left." +msgstr "" -#: src/prefs.ui:788 +#: src/prefs.js:280 msgid "Tile Window to Top Right" msgstr "Placer la Fenêtre en Haut à Droite" -#: src/prefs.ui:795 -msgid "Shortcut to tile the window in focus to top right." -msgstr "Raccourci pour placer la fenêtre en focus en haut à droite." +#: src/prefs.js:281 +msgid "Shortcut to tile the active window to top right." +msgstr "" -#: src/prefs.ui:835 +#: src/prefs.js:292 msgid "Tile Window to Bottom Left" msgstr "Placer la Fenêtre en Bas à Gauche" -#: src/prefs.ui:842 -msgid "Shortcut to tile the window in focus to bottom left." -msgstr "Raccourci pour placer la fenêtre en bas à gauche." +#: src/prefs.js:293 +msgid "Shortcut to tile the active window to bottom left." +msgstr "" -#: src/prefs.ui:882 +#: src/prefs.js:303 msgid "Tile Window to Bottom Right" msgstr "Placer la Fenêtre en Bas à Droite" -#: src/prefs.ui:889 -msgid "Shortcut to tile the window in focus to bottom right." -msgstr "Raccourci pour placer la fenêtre en focus en bas à droite." - -#: src/prefs-shortcut-dialog.ui:19 -msgid "Press your keyboard shortcut or 'Backspace' to disable..." +#: src/prefs.js:304 +msgid "Shortcut to tile the active window to bottom right." msgstr "" -"Appuyer sur votre raccourci clavier ou \"retour arrière\" pour " -"désactiver..." -#: src/prefs-shortcut-dialog.ui:28 -msgid "Keyboard Shortcut" -msgstr "Raccourci Clavier" +#: src/prefs.js:347 +msgid "Disabled" +msgstr "Désactiver" -#: src/extension.js:183 +#: src/extension.js:161 #, javascript-format msgid "Gap size is now at %d percent" msgid_plural "Gap size is now at %d percent" msgstr[0] "L'espace est maintenant de %d pourcent" msgstr[1] "L'espace est maintenant de %d pourcent" + +#~ msgid "Enable window animation" +#~ msgstr "Activer l'animation des fenêtres" + +#~ msgid "Add animation on windows. (In Wayland, this option will very buggy)" +#~ msgstr "Ajouter une animation de fenêtre (sous Wayland, cette option sera très buguée)" + +#~ msgid "Percentage to leave out as gap when the window in focus is tiled." +#~ msgstr "Pourcentage à laisser comme espace quand la fenêtre en focus est dimensionnée." + +#~ msgid "Keybinding iterate timeout" +#~ msgstr "Délai d'expiration de saisie" + +#~ msgid "Maximum time of you can adjust tiling step by iterating same keybinding in milliseconds." +#~ msgstr "Temps maximum durant lequel vous pouvez ajuster l’étape de dimensionnement en itérant la même touche (en millisecondes)." + +#~ msgid "Determine how much gap size adjust by keybinding." +#~ msgstr "Déterminer la taille de l'espace a ajuster par la touche." + +#~ msgid "Shortcut to align the window in focus to center without resizing it." +#~ msgstr "Raccourci pour centrer la fenêtre en focus sans la redimensionner." + +#~ msgid "Increase the Gap Size" +#~ msgstr "Augmenter l'Espace Vide" + +#~ msgid "Decrease the Gap Size" +#~ msgstr "Réduire l'Espace Vide" + +#~ msgid "Shortcut to tile the window in focus to center." +#~ msgstr "Raccourci pour centrer la fenêtre en focus." + +#~ msgid "Shortcut to tile the window in focus to left." +#~ msgstr "Raccourci pour placer la fenêtre en focus à gauche." + +#~ msgid "Shortcut to tile the window in focus to right." +#~ msgstr "Raccourci pour placer la fenêtre en focus à droite." + +#~ msgid "Shortcut to tile the window in focus to top." +#~ msgstr "Raccourci pour placer la fenêtre en focus en haut." + +#~ msgid "Shortcut to tile the window in focus to bottom." +#~ msgstr "Raccourci pour placer la fenêtre en bas." + +#~ msgid "Shortcut to tile the window in focus to top left." +#~ msgstr "Raccourci pour placer la fenêtre en focus en haut à gauche." + +#~ msgid "Shortcut to tile the window in focus to top right." +#~ msgstr "Raccourci pour placer la fenêtre en focus en haut à droite." + +#~ msgid "Shortcut to tile the window in focus to bottom left." +#~ msgstr "Raccourci pour placer la fenêtre en bas à gauche." + +#~ msgid "Shortcut to tile the window in focus to bottom right." +#~ msgstr "Raccourci pour placer la fenêtre en focus en bas à droite." diff --git a/po/it.po b/po/it.po index ed02dbd..44d3ff5 100644 --- a/po/it.po +++ b/po/it.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-05-08 05:15+0900\n" +"POT-Creation-Date: 2023-10-31 01:00+0300\n" "PO-Revision-Date: 2021-12-31 11:30+0200\n" "Last-Translator: Marco Pometti \n" "Language-Team: Italian\n" @@ -18,173 +18,232 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=0;\n" -#: src/prefs.js:145 -msgid "Disabled" +#: src/prefs-shortcut-dialog.ui:19 +msgid "Press your keyboard shortcut or 'Backspace' to disable..." msgstr "" -#: src/prefs.ui:34 -msgid "Enable window animation" +#: src/prefs-shortcut-dialog.ui:28 +msgid "Keyboard Shortcut" +msgstr "Scorciatoia da Tastiera" + +#: src/prefs.js:32 +msgid "General" msgstr "" -#: src/prefs.ui:41 -msgid "Add animation on windows. (In Wayland, this option will very buggy)" +#: src/prefs.js:49 +msgid "Behavior" msgstr "" -#: src/prefs.ui:79 -msgid "Gap Between Window and Workspace" -msgstr "Margine tra Finestra e Spazio di Lavoro" +#: src/prefs.js:53 +msgid "Enable Window Animations" +msgstr "" -#: src/prefs.ui:86 -msgid "Percentage to leave out as gap when the window in focus is tiled." -msgstr "Percentuale da lasciare come margine quando la finestra in primo piano è affiancata." +#: src/prefs.js:54 +msgid "Animate windows when resized or repositioned (this may be buggy on Wayland)." +msgstr "" -#: src/prefs.ui:124 -msgid "Keybinding iterate timeout" +#: src/prefs.js:65 +msgid "Shortcut Iteration Timeout in Milliseconds" msgstr "" -#: src/prefs.ui:131 -msgid "Maximum time of you can adjust tiling step by iterating same keybinding in milliseconds." +#: src/prefs.js:66 +msgid "The time window to consider a new key press an iteration." msgstr "" -#: src/prefs.ui:176 -msgid "Gap Size Increments" +#: src/prefs.js:85 +msgid "Center Tiling Steps" msgstr "" -#: src/prefs.ui:183 -msgid "Determine how much gap size adjust by keybinding." +#: src/prefs.js:86 src/prefs.js:102 +msgid "Steps on each key press (values between 0-1)." msgstr "" -#: src/prefs.ui:228 +#: src/prefs.js:101 +msgid "Side Tiling Steps" +msgstr "" + +#: src/prefs.js:118 +msgid "Gaps" +msgstr "" + +#: src/prefs.js:122 msgid "Gaps Between Windows" msgstr "" -#: src/prefs.ui:235 +#: src/prefs.js:123 msgid "Put gaps between windows." msgstr "" -#: src/prefs.ui:273 -msgid "Center Tiling Steps" +#: src/prefs.js:134 +msgid "Gap Between Window and Workspace" +msgstr "Margine tra Finestra e Spazio di Lavoro" + +#: src/prefs.js:135 +msgid "Percentage to leave out as gap when a window is tiled." msgstr "" -#: src/prefs.ui:280 src/prefs.ui:326 -msgid "Steps on each key press (values between 0-1)." +#: src/prefs.js:151 +msgid "Gap Size Increments" msgstr "" -#: src/prefs.ui:319 -msgid "Side Tiling Steps" +#: src/prefs.js:152 +msgid "The change that the shorcuts make in the gap size." +msgstr "" + +#: src/prefs.js:172 +msgid "Shortcuts" msgstr "" -#: src/prefs.ui:365 +#: src/prefs.js:173 +msgid "Assign shortcuts to the functionalities" +msgstr "" + +#: src/prefs.js:181 msgid "Align Window to Center" msgstr "Allinea la Finestra al Centro" -#: src/prefs.ui:372 -msgid "Shortcut to align the window in focus to center without resizing it." -msgstr "Scorciatoia per allineare la finestra in primo piano al centro senza ridimensionarla." +#: src/prefs.js:182 +msgid "Shortcut to align the active window to center without resizing it." +msgstr "" -#: src/prefs.ui:412 -msgid "Increase the Gap Size" -msgstr "Aumenta la Dimensione del Margine" +#: src/prefs.js:192 +msgid "Increase Gap Size" +msgstr "" -#: src/prefs.ui:419 +#: src/prefs.js:193 msgid "Shortcut to increase the gap size." msgstr "" -#: src/prefs.ui:459 -msgid "Decrease the Gap Size" -msgstr "Riduci la Dimensione del Margine" +#: src/prefs.js:203 +msgid "Decrease Gap Size" +msgstr "" -#: src/prefs.ui:466 +#: src/prefs.js:204 msgid "Shortcut to decrease the gap size." msgstr "" -#: src/prefs.ui:506 +#: src/prefs.js:214 msgid "Tile Window to Center" msgstr "Affianca Finestra al Centro" -#: src/prefs.ui:513 -msgid "Shortcut to tile the window in focus to center." -msgstr "Scorciatoia per affiancare la finestra in primo piano al centro." +#: src/prefs.js:215 +msgid "Shortcut to tile active window to center." +msgstr "" -#: src/prefs.ui:553 +#: src/prefs.js:225 msgid "Tile Window to Left" msgstr "Affianca Finestra a Sinistra" -#: src/prefs.ui:560 -msgid "Shortcut to tile the window in focus to left." -msgstr "Scorciatoia per affiancare la finestra in primo piano a sinistra." +#: src/prefs.js:226 +msgid "Shortcut to tile the active window to left." +msgstr "" -#: src/prefs.ui:600 +#: src/prefs.js:236 msgid "Tile Window to Right" msgstr "Affianca Finestra a Destra" -#: src/prefs.ui:607 -msgid "Shortcut to tile the window in focus to right." -msgstr "Scorciatoia per affiancare la finestra in primo piano a destra." +#: src/prefs.js:237 +msgid "Shortcut to tile the active window to right." +msgstr "" -#: src/prefs.ui:647 +#: src/prefs.js:247 msgid "Tile Window to Top" msgstr "Affianca Finestra in Alto" -#: src/prefs.ui:654 -msgid "Shortcut to tile the window in focus to top." -msgstr "Scorciatoia per affiancare la finestra in primo piano in alto." +#: src/prefs.js:248 +msgid "Shortcut to tile the active window to top." +msgstr "" -#: src/prefs.ui:694 +#: src/prefs.js:258 msgid "Tile Window to Bottom" msgstr "Affianca Finestra in Basso" -#: src/prefs.ui:701 -msgid "Shortcut to tile the window in focus to bottom." -msgstr "Scorciatoia per affiancare la finestra in primo piano in basso." +#: src/prefs.js:259 +msgid "Shortcut to tile the active window to bottom." +msgstr "" -#: src/prefs.ui:741 +#: src/prefs.js:269 msgid "Tile Window to Top Left" msgstr "Affianca Finestra in Alto a Sinistra" -#: src/prefs.ui:748 -msgid "Shortcut to tile the window in focus to top left." -msgstr "Scorciatoia per affiancare la finestra in primo piano in alto a sinistra." +#: src/prefs.js:270 +msgid "Shortcut to tile the active window to top left." +msgstr "" -#: src/prefs.ui:788 +#: src/prefs.js:280 msgid "Tile Window to Top Right" msgstr "Affianca Finestra in Alto a Destra" -#: src/prefs.ui:795 -msgid "Shortcut to tile the window in focus to top right." -msgstr "Scorciatoia per affiancare la finestra in primo piano in alto a destra." +#: src/prefs.js:281 +msgid "Shortcut to tile the active window to top right." +msgstr "" -#: src/prefs.ui:835 +#: src/prefs.js:292 msgid "Tile Window to Bottom Left" msgstr "Affianca Finestra in Basso a Sinistra" -#: src/prefs.ui:842 -msgid "Shortcut to tile the window in focus to bottom left." -msgstr "Scorciatoia per affiancare la finestra in primo piano in basso a sinistra." +#: src/prefs.js:293 +msgid "Shortcut to tile the active window to bottom left." +msgstr "" -#: src/prefs.ui:882 +#: src/prefs.js:303 msgid "Tile Window to Bottom Right" msgstr "Affianca la Finestra in Basso a Destra" -#: src/prefs.ui:889 -msgid "Shortcut to tile the window in focus to bottom right." -msgstr "Scorciatoia per affiancare la finestra in primo piano in basso a destra." - -#: src/prefs-shortcut-dialog.ui:19 -msgid "Press your keyboard shortcut or 'Backspace' to disable..." +#: src/prefs.js:304 +msgid "Shortcut to tile the active window to bottom right." msgstr "" -#: src/prefs-shortcut-dialog.ui:28 -msgid "Keyboard Shortcut" -msgstr "Scorciatoia da Tastiera" +#: src/prefs.js:347 +msgid "Disabled" +msgstr "" -#: src/extension.js:183 +#: src/extension.js:161 #, javascript-format msgid "Gap size is now at %d percent" msgid_plural "Gap size is now at %d percent" msgstr[0] "La dimensione del margine è impostata al %d percento" msgstr[1] "La dimensione del margine è impostata al %d percento" +#~ msgid "Percentage to leave out as gap when the window in focus is tiled." +#~ msgstr "Percentuale da lasciare come margine quando la finestra in primo piano è affiancata." + +#~ msgid "Shortcut to align the window in focus to center without resizing it." +#~ msgstr "Scorciatoia per allineare la finestra in primo piano al centro senza ridimensionarla." + +#~ msgid "Increase the Gap Size" +#~ msgstr "Aumenta la Dimensione del Margine" + +#~ msgid "Decrease the Gap Size" +#~ msgstr "Riduci la Dimensione del Margine" + +#~ msgid "Shortcut to tile the window in focus to center." +#~ msgstr "Scorciatoia per affiancare la finestra in primo piano al centro." + +#~ msgid "Shortcut to tile the window in focus to left." +#~ msgstr "Scorciatoia per affiancare la finestra in primo piano a sinistra." + +#~ msgid "Shortcut to tile the window in focus to right." +#~ msgstr "Scorciatoia per affiancare la finestra in primo piano a destra." + +#~ msgid "Shortcut to tile the window in focus to top." +#~ msgstr "Scorciatoia per affiancare la finestra in primo piano in alto." + +#~ msgid "Shortcut to tile the window in focus to bottom." +#~ msgstr "Scorciatoia per affiancare la finestra in primo piano in basso." + +#~ msgid "Shortcut to tile the window in focus to top left." +#~ msgstr "Scorciatoia per affiancare la finestra in primo piano in alto a sinistra." + +#~ msgid "Shortcut to tile the window in focus to top right." +#~ msgstr "Scorciatoia per affiancare la finestra in primo piano in alto a destra." + +#~ msgid "Shortcut to tile the window in focus to bottom left." +#~ msgstr "Scorciatoia per affiancare la finestra in primo piano in basso a sinistra." + +#~ msgid "Shortcut to tile the window in focus to bottom right." +#~ msgstr "Scorciatoia per affiancare la finestra in primo piano in basso a destra." + #~ msgid "Shortcut to increase the gap size by 5." #~ msgstr "Scorciatoia per aumentare la dimensione del margine di 5." diff --git a/po/ko.po b/po/ko.po index f757afa..fcbcaaa 100644 --- a/po/ko.po +++ b/po/ko.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-05-08 05:15+0900\n" +"POT-Creation-Date: 2023-10-31 01:00+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -19,173 +19,247 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" -#: src/prefs.js:145 -msgid "Disabled" -msgstr "비활성화됨" +#: src/prefs-shortcut-dialog.ui:19 +msgid "Press your keyboard shortcut or 'Backspace' to disable..." +msgstr "새 단축키를 할당하거나 'Backspace' 키를 눌러 비활성화합니다" -#: src/prefs.ui:34 -msgid "Enable window animation" -msgstr "윈도우 에니메이션 활성화" +#: src/prefs-shortcut-dialog.ui:28 +msgid "Keyboard Shortcut" +msgstr "키보드 단축키" -#: src/prefs.ui:41 -msgid "Add animation on windows. (In Wayland, this option will very buggy)" -msgstr "윈도우에 에니메이션 효과를 추가합니다. (웨이랜드 프로토콜에선 매우 불안정합니다)" +#: src/prefs.js:32 +msgid "General" +msgstr "" -#: src/prefs.ui:79 -msgid "Gap Between Window and Workspace" -msgstr "윈도우와 작업 공간 사이의 여백" +#: src/prefs.js:49 +msgid "Behavior" +msgstr "" -#: src/prefs.ui:86 -msgid "Percentage to leave out as gap when the window in focus is tiled." -msgstr "선택된 창을 분할할 때 남겨둘 여백을 퍼센트로 지정합니다" +#: src/prefs.js:53 +msgid "Enable Window Animations" +msgstr "" -#: src/prefs.ui:124 -msgid "Keybinding iterate timeout" -msgstr "키바인딩 반복 타임아웃" +#: src/prefs.js:54 +msgid "Animate windows when resized or repositioned (this may be buggy on Wayland)." +msgstr "" -#: src/prefs.ui:131 -msgid "Maximum time of you can adjust tiling step by iterating same keybinding in milliseconds." -msgstr "키바인당 반복으로 분할 단계를 조정할 수 있는 최대 시간을 지정합니다." +#: src/prefs.js:65 +msgid "Shortcut Iteration Timeout in Milliseconds" +msgstr "" -#: src/prefs.ui:176 -msgid "Gap Size Increments" -msgstr "간격 크기 조정자" +#: src/prefs.js:66 +msgid "The time window to consider a new key press an iteration." +msgstr "" -#: src/prefs.ui:183 -msgid "Determine how much gap size adjust by keybinding." -msgstr "키바인딩으로 여백 크기를 조정할 때, 얼마나 조정해야 하는지 결정합니다" +#: src/prefs.js:85 +msgid "Center Tiling Steps" +msgstr "중간으로 분할 단계" -#: src/prefs.ui:228 +#: src/prefs.js:86 src/prefs.js:102 +msgid "Steps on each key press (values between 0-1)." +msgstr "키를 누를 때 마다의 단계 (0 에서 1 사이의 값)" + +#: src/prefs.js:101 +msgid "Side Tiling Steps" +msgstr "좌우 분할 단계" + +#: src/prefs.js:118 +msgid "Gaps" +msgstr "" + +#: src/prefs.js:122 msgid "Gaps Between Windows" msgstr "윈도우간의 여백" -#: src/prefs.ui:235 +#: src/prefs.js:123 msgid "Put gaps between windows." msgstr "윈도우들 사이에 여백을 추가합니다" -#: src/prefs.ui:273 -msgid "Center Tiling Steps" -msgstr "중간으로 분할 단계" +#: src/prefs.js:134 +msgid "Gap Between Window and Workspace" +msgstr "윈도우와 작업 공간 사이의 여백" -#: src/prefs.ui:280 src/prefs.ui:326 -msgid "Steps on each key press (values between 0-1)." -msgstr "키를 누를 때 마다의 단계 (0 에서 1 사이의 값)" +#: src/prefs.js:135 +msgid "Percentage to leave out as gap when a window is tiled." +msgstr "" -#: src/prefs.ui:319 -msgid "Side Tiling Steps" -msgstr "좌우 분할 단계" +#: src/prefs.js:151 +msgid "Gap Size Increments" +msgstr "간격 크기 조정자" + +#: src/prefs.js:152 +msgid "The change that the shorcuts make in the gap size." +msgstr "" + +#: src/prefs.js:172 +msgid "Shortcuts" +msgstr "" -#: src/prefs.ui:365 +#: src/prefs.js:173 +msgid "Assign shortcuts to the functionalities" +msgstr "" + +#: src/prefs.js:181 msgid "Align Window to Center" msgstr "중간에 창 맞추기" -#: src/prefs.ui:372 -msgid "Shortcut to align the window in focus to center without resizing it." -msgstr "중간으로 창을 맞추는 단축키를 지정합니다" +#: src/prefs.js:182 +msgid "Shortcut to align the active window to center without resizing it." +msgstr "" -#: src/prefs.ui:412 -msgid "Increase the Gap Size" -msgstr "여백 크기 증가시키기" +#: src/prefs.js:192 +msgid "Increase Gap Size" +msgstr "" -#: src/prefs.ui:419 +#: src/prefs.js:193 msgid "Shortcut to increase the gap size." msgstr "" -#: src/prefs.ui:459 -msgid "Decrease the Gap Size" -msgstr "여백 크기 감소시키기" +#: src/prefs.js:203 +msgid "Decrease Gap Size" +msgstr "" -#: src/prefs.ui:466 +#: src/prefs.js:204 msgid "Shortcut to decrease the gap size." msgstr "" -#: src/prefs.ui:506 +#: src/prefs.js:214 msgid "Tile Window to Center" msgstr "중간으로 창을 분할하기" -#: src/prefs.ui:513 -msgid "Shortcut to tile the window in focus to center." -msgstr "중간으로 창을 분할하기" +#: src/prefs.js:215 +msgid "Shortcut to tile active window to center." +msgstr "" -#: src/prefs.ui:553 +#: src/prefs.js:225 msgid "Tile Window to Left" msgstr "왼쪽으로 창을 분할하기" -#: src/prefs.ui:560 -msgid "Shortcut to tile the window in focus to left." -msgstr "왼쪽으로 창을 분할하는 단축키를 지정합니다" +#: src/prefs.js:226 +msgid "Shortcut to tile the active window to left." +msgstr "" -#: src/prefs.ui:600 +#: src/prefs.js:236 msgid "Tile Window to Right" msgstr "오른쪽으로 창을 분할하기" -#: src/prefs.ui:607 -msgid "Shortcut to tile the window in focus to right." -msgstr "오른쪽으로 창을 분할하는 단축키를 지정합니다" +#: src/prefs.js:237 +msgid "Shortcut to tile the active window to right." +msgstr "" -#: src/prefs.ui:647 +#: src/prefs.js:247 msgid "Tile Window to Top" msgstr "위쪽으로 창을 분할하기" -#: src/prefs.ui:654 -msgid "Shortcut to tile the window in focus to top." -msgstr "위쪽으로 창을 분할하는 단축키를 지정합니다" +#: src/prefs.js:248 +msgid "Shortcut to tile the active window to top." +msgstr "" -#: src/prefs.ui:694 +#: src/prefs.js:258 msgid "Tile Window to Bottom" msgstr "아래쪽으로 창을 분할하기" -#: src/prefs.ui:701 -msgid "Shortcut to tile the window in focus to bottom." -msgstr "아래쪽으로 창을 분할하는 단축키를 지정합니다." +#: src/prefs.js:259 +msgid "Shortcut to tile the active window to bottom." +msgstr "" -#: src/prefs.ui:741 +#: src/prefs.js:269 msgid "Tile Window to Top Left" msgstr "왼쪽 위로 창을 분할하기" -#: src/prefs.ui:748 -msgid "Shortcut to tile the window in focus to top left." -msgstr "왼쪽 위로 창을 분할하는 단축키를 지정합니다." +#: src/prefs.js:270 +msgid "Shortcut to tile the active window to top left." +msgstr "" -#: src/prefs.ui:788 +#: src/prefs.js:280 msgid "Tile Window to Top Right" msgstr "오른쪽 위로 창을 분할하기" -#: src/prefs.ui:795 -msgid "Shortcut to tile the window in focus to top right." -msgstr "오른쪽 위로 창을 분할하는 단축키를 지정합니다" +#: src/prefs.js:281 +msgid "Shortcut to tile the active window to top right." +msgstr "" -#: src/prefs.ui:835 +#: src/prefs.js:292 msgid "Tile Window to Bottom Left" msgstr "왼쪽 아래로 창을 분할하기" -#: src/prefs.ui:842 -msgid "Shortcut to tile the window in focus to bottom left." -msgstr "왼쪽 아래로 창을 분할하는 단축키를 지정합니다" +#: src/prefs.js:293 +msgid "Shortcut to tile the active window to bottom left." +msgstr "" -#: src/prefs.ui:882 +#: src/prefs.js:303 msgid "Tile Window to Bottom Right" msgstr "오른쪽 아래로 창을 분할하기" -#: src/prefs.ui:889 -msgid "Shortcut to tile the window in focus to bottom right." -msgstr "오른쪽 아래로 창을 분할하는 단축키를 지정합니다" - -#: src/prefs-shortcut-dialog.ui:19 -msgid "Press your keyboard shortcut or 'Backspace' to disable..." -msgstr "새 단축키를 할당하거나 'Backspace' 키를 눌러 비활성화합니다" +#: src/prefs.js:304 +msgid "Shortcut to tile the active window to bottom right." +msgstr "" -#: src/prefs-shortcut-dialog.ui:28 -msgid "Keyboard Shortcut" -msgstr "키보드 단축키" +#: src/prefs.js:347 +msgid "Disabled" +msgstr "비활성화됨" -#: src/extension.js:183 +#: src/extension.js:161 #, javascript-format msgid "Gap size is now at %d percent" msgid_plural "Gap size is now at %d percent" msgstr[0] "" msgstr[1] "" +#~ msgid "Enable window animation" +#~ msgstr "윈도우 에니메이션 활성화" + +#~ msgid "Add animation on windows. (In Wayland, this option will very buggy)" +#~ msgstr "윈도우에 에니메이션 효과를 추가합니다. (웨이랜드 프로토콜에선 매우 불안정합니다)" + +#~ msgid "Percentage to leave out as gap when the window in focus is tiled." +#~ msgstr "선택된 창을 분할할 때 남겨둘 여백을 퍼센트로 지정합니다" + +#~ msgid "Keybinding iterate timeout" +#~ msgstr "키바인딩 반복 타임아웃" + +#~ msgid "Maximum time of you can adjust tiling step by iterating same keybinding in milliseconds." +#~ msgstr "키바인당 반복으로 분할 단계를 조정할 수 있는 최대 시간을 지정합니다." + +#~ msgid "Determine how much gap size adjust by keybinding." +#~ msgstr "키바인딩으로 여백 크기를 조정할 때, 얼마나 조정해야 하는지 결정합니다" + +#~ msgid "Shortcut to align the window in focus to center without resizing it." +#~ msgstr "중간으로 창을 맞추는 단축키를 지정합니다" + +#~ msgid "Increase the Gap Size" +#~ msgstr "여백 크기 증가시키기" + +#~ msgid "Decrease the Gap Size" +#~ msgstr "여백 크기 감소시키기" + +#~ msgid "Shortcut to tile the window in focus to center." +#~ msgstr "중간으로 창을 분할하기" + +#~ msgid "Shortcut to tile the window in focus to left." +#~ msgstr "왼쪽으로 창을 분할하는 단축키를 지정합니다" + +#~ msgid "Shortcut to tile the window in focus to right." +#~ msgstr "오른쪽으로 창을 분할하는 단축키를 지정합니다" + +#~ msgid "Shortcut to tile the window in focus to top." +#~ msgstr "위쪽으로 창을 분할하는 단축키를 지정합니다" + +#~ msgid "Shortcut to tile the window in focus to bottom." +#~ msgstr "아래쪽으로 창을 분할하는 단축키를 지정합니다." + +#~ msgid "Shortcut to tile the window in focus to top left." +#~ msgstr "왼쪽 위로 창을 분할하는 단축키를 지정합니다." + +#~ msgid "Shortcut to tile the window in focus to top right." +#~ msgstr "오른쪽 위로 창을 분할하는 단축키를 지정합니다" + +#~ msgid "Shortcut to tile the window in focus to bottom left." +#~ msgstr "왼쪽 아래로 창을 분할하는 단축키를 지정합니다" + +#~ msgid "Shortcut to tile the window in focus to bottom right." +#~ msgstr "오른쪽 아래로 창을 분할하는 단축키를 지정합니다" + #~ msgid "Shortcut to increase the gap size by 5." #~ msgstr "여백 크기를 5 만큼 증가시키는 단축키를 지정합니다" diff --git a/po/nl.po b/po/nl.po index 59e0c11..78c5269 100644 --- a/po/nl.po +++ b/po/nl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-05-08 05:15+0900\n" +"POT-Creation-Date: 2023-10-31 01:00+0300\n" "PO-Revision-Date: 2022-03-04 18:18+0100\n" "Last-Translator: Heimen Stoffels \n" "Language-Team: \n" @@ -18,173 +18,232 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 3.0.1\n" -#: src/prefs.js:145 -msgid "Disabled" +#: src/prefs-shortcut-dialog.ui:19 +msgid "Press your keyboard shortcut or 'Backspace' to disable..." msgstr "" -#: src/prefs.ui:34 -msgid "Enable window animation" +#: src/prefs-shortcut-dialog.ui:28 +msgid "Keyboard Shortcut" +msgstr "Sneltoets" + +#: src/prefs.js:32 +msgid "General" msgstr "" -#: src/prefs.ui:41 -msgid "Add animation on windows. (In Wayland, this option will very buggy)" +#: src/prefs.js:49 +msgid "Behavior" msgstr "" -#: src/prefs.ui:79 -msgid "Gap Between Window and Workspace" -msgstr "Ruimte tussen venster en werkblad" +#: src/prefs.js:53 +msgid "Enable Window Animations" +msgstr "" -#: src/prefs.ui:86 -msgid "Percentage to leave out as gap when the window in focus is tiled." -msgstr "De te reserveren tussenruimte (in procenten) als een venster gefocust en getegeld is." +#: src/prefs.js:54 +msgid "Animate windows when resized or repositioned (this may be buggy on Wayland)." +msgstr "" -#: src/prefs.ui:124 -msgid "Keybinding iterate timeout" +#: src/prefs.js:65 +msgid "Shortcut Iteration Timeout in Milliseconds" msgstr "" -#: src/prefs.ui:131 -msgid "Maximum time of you can adjust tiling step by iterating same keybinding in milliseconds." +#: src/prefs.js:66 +msgid "The time window to consider a new key press an iteration." msgstr "" -#: src/prefs.ui:176 -msgid "Gap Size Increments" +#: src/prefs.js:85 +msgid "Center Tiling Steps" msgstr "" -#: src/prefs.ui:183 -msgid "Determine how much gap size adjust by keybinding." +#: src/prefs.js:86 src/prefs.js:102 +msgid "Steps on each key press (values between 0-1)." msgstr "" -#: src/prefs.ui:228 +#: src/prefs.js:101 +msgid "Side Tiling Steps" +msgstr "" + +#: src/prefs.js:118 +msgid "Gaps" +msgstr "" + +#: src/prefs.js:122 msgid "Gaps Between Windows" msgstr "" -#: src/prefs.ui:235 +#: src/prefs.js:123 msgid "Put gaps between windows." msgstr "" -#: src/prefs.ui:273 -msgid "Center Tiling Steps" +#: src/prefs.js:134 +msgid "Gap Between Window and Workspace" +msgstr "Ruimte tussen venster en werkblad" + +#: src/prefs.js:135 +msgid "Percentage to leave out as gap when a window is tiled." msgstr "" -#: src/prefs.ui:280 src/prefs.ui:326 -msgid "Steps on each key press (values between 0-1)." +#: src/prefs.js:151 +msgid "Gap Size Increments" msgstr "" -#: src/prefs.ui:319 -msgid "Side Tiling Steps" +#: src/prefs.js:152 +msgid "The change that the shorcuts make in the gap size." +msgstr "" + +#: src/prefs.js:172 +msgid "Shortcuts" msgstr "" -#: src/prefs.ui:365 +#: src/prefs.js:173 +msgid "Assign shortcuts to the functionalities" +msgstr "" + +#: src/prefs.js:181 msgid "Align Window to Center" msgstr "Venster centreren" -#: src/prefs.ui:372 -msgid "Shortcut to align the window in focus to center without resizing it." -msgstr "De sneltoets waarmee een gefocust venster kan worden gecentreerd." +#: src/prefs.js:182 +msgid "Shortcut to align the active window to center without resizing it." +msgstr "" -#: src/prefs.ui:412 -msgid "Increase the Gap Size" -msgstr "Tussenruimte vergroten" +#: src/prefs.js:192 +msgid "Increase Gap Size" +msgstr "" -#: src/prefs.ui:419 +#: src/prefs.js:193 msgid "Shortcut to increase the gap size." msgstr "" -#: src/prefs.ui:459 -msgid "Decrease the Gap Size" -msgstr "Tussenruimte verkleinen" +#: src/prefs.js:203 +msgid "Decrease Gap Size" +msgstr "" -#: src/prefs.ui:466 +#: src/prefs.js:204 msgid "Shortcut to decrease the gap size." msgstr "" -#: src/prefs.ui:506 +#: src/prefs.js:214 msgid "Tile Window to Center" msgstr "Venster centreren en tegelen" -#: src/prefs.ui:513 -msgid "Shortcut to tile the window in focus to center." -msgstr "De sneltoets waarmee een gefocust venster kan worden gecentreerd en getegeld." +#: src/prefs.js:215 +msgid "Shortcut to tile active window to center." +msgstr "" -#: src/prefs.ui:553 +#: src/prefs.js:225 msgid "Tile Window to Left" msgstr "Venster tegelen aan linkerkant" -#: src/prefs.ui:560 -msgid "Shortcut to tile the window in focus to left." -msgstr "De sneltoets waarmee een gefocust venster aan de linkerkant van het scherm kan worden getegeld." +#: src/prefs.js:226 +msgid "Shortcut to tile the active window to left." +msgstr "" -#: src/prefs.ui:600 +#: src/prefs.js:236 msgid "Tile Window to Right" msgstr "Venster tegelen aan rechterkant" -#: src/prefs.ui:607 -msgid "Shortcut to tile the window in focus to right." -msgstr "De sneltoets waarmee een gefocust venster aan de rechterkant van het scherm kan worden getegeld." +#: src/prefs.js:237 +msgid "Shortcut to tile the active window to right." +msgstr "" -#: src/prefs.ui:647 +#: src/prefs.js:247 msgid "Tile Window to Top" msgstr "Venster bovenaan tegelen" -#: src/prefs.ui:654 -msgid "Shortcut to tile the window in focus to top." -msgstr "De sneltoets waarmee een gefocust venster bovenaan het scherm kan worden getegeld." +#: src/prefs.js:248 +msgid "Shortcut to tile the active window to top." +msgstr "" -#: src/prefs.ui:694 +#: src/prefs.js:258 msgid "Tile Window to Bottom" msgstr "Venster onderaan tegelen" -#: src/prefs.ui:701 -msgid "Shortcut to tile the window in focus to bottom." -msgstr "De sneltoets waarmee een gefocust venster onderaan het scherm kan worden getegeld." +#: src/prefs.js:259 +msgid "Shortcut to tile the active window to bottom." +msgstr "" -#: src/prefs.ui:741 +#: src/prefs.js:269 msgid "Tile Window to Top Left" msgstr "Venster linksboven tegelen" -#: src/prefs.ui:748 -msgid "Shortcut to tile the window in focus to top left." -msgstr "De sneltoets waarmee een gefocust venster linksboven op het scherm kan worden getegeld." +#: src/prefs.js:270 +msgid "Shortcut to tile the active window to top left." +msgstr "" -#: src/prefs.ui:788 +#: src/prefs.js:280 msgid "Tile Window to Top Right" msgstr "Venster rechtsboven tegelen" -#: src/prefs.ui:795 -msgid "Shortcut to tile the window in focus to top right." -msgstr "De sneltoets waarmee een gefocust venster rechtsboven op het scherm kan worden getegeld." +#: src/prefs.js:281 +msgid "Shortcut to tile the active window to top right." +msgstr "" -#: src/prefs.ui:835 +#: src/prefs.js:292 msgid "Tile Window to Bottom Left" msgstr "Venster linksonder tegelen" -#: src/prefs.ui:842 -msgid "Shortcut to tile the window in focus to bottom left." -msgstr "De sneltoets waarmee een gefocust venster linksonder op het scherm kan worden getegeld." +#: src/prefs.js:293 +msgid "Shortcut to tile the active window to bottom left." +msgstr "" -#: src/prefs.ui:882 +#: src/prefs.js:303 msgid "Tile Window to Bottom Right" msgstr "Venster rechtsonder tegelen" -#: src/prefs.ui:889 -msgid "Shortcut to tile the window in focus to bottom right." -msgstr "De sneltoets waarmee een gefocust venster rechtsonder op het scherm kan worden getegeld." - -#: src/prefs-shortcut-dialog.ui:19 -msgid "Press your keyboard shortcut or 'Backspace' to disable..." +#: src/prefs.js:304 +msgid "Shortcut to tile the active window to bottom right." msgstr "" -#: src/prefs-shortcut-dialog.ui:28 -msgid "Keyboard Shortcut" -msgstr "Sneltoets" +#: src/prefs.js:347 +msgid "Disabled" +msgstr "" -#: src/extension.js:183 +#: src/extension.js:161 #, javascript-format msgid "Gap size is now at %d percent" msgid_plural "Gap size is now at %d percent" msgstr[0] "Tussenruimte: %d procent" msgstr[1] "Tussenruimte: %d procent" +#~ msgid "Percentage to leave out as gap when the window in focus is tiled." +#~ msgstr "De te reserveren tussenruimte (in procenten) als een venster gefocust en getegeld is." + +#~ msgid "Shortcut to align the window in focus to center without resizing it." +#~ msgstr "De sneltoets waarmee een gefocust venster kan worden gecentreerd." + +#~ msgid "Increase the Gap Size" +#~ msgstr "Tussenruimte vergroten" + +#~ msgid "Decrease the Gap Size" +#~ msgstr "Tussenruimte verkleinen" + +#~ msgid "Shortcut to tile the window in focus to center." +#~ msgstr "De sneltoets waarmee een gefocust venster kan worden gecentreerd en getegeld." + +#~ msgid "Shortcut to tile the window in focus to left." +#~ msgstr "De sneltoets waarmee een gefocust venster aan de linkerkant van het scherm kan worden getegeld." + +#~ msgid "Shortcut to tile the window in focus to right." +#~ msgstr "De sneltoets waarmee een gefocust venster aan de rechterkant van het scherm kan worden getegeld." + +#~ msgid "Shortcut to tile the window in focus to top." +#~ msgstr "De sneltoets waarmee een gefocust venster bovenaan het scherm kan worden getegeld." + +#~ msgid "Shortcut to tile the window in focus to bottom." +#~ msgstr "De sneltoets waarmee een gefocust venster onderaan het scherm kan worden getegeld." + +#~ msgid "Shortcut to tile the window in focus to top left." +#~ msgstr "De sneltoets waarmee een gefocust venster linksboven op het scherm kan worden getegeld." + +#~ msgid "Shortcut to tile the window in focus to top right." +#~ msgstr "De sneltoets waarmee een gefocust venster rechtsboven op het scherm kan worden getegeld." + +#~ msgid "Shortcut to tile the window in focus to bottom left." +#~ msgstr "De sneltoets waarmee een gefocust venster linksonder op het scherm kan worden getegeld." + +#~ msgid "Shortcut to tile the window in focus to bottom right." +#~ msgstr "De sneltoets waarmee een gefocust venster rechtsonder op het scherm kan worden getegeld." + #~ msgid "Shortcut to increase the gap size by 5." #~ msgstr "De sneltoets waarmee de tussenruimte met 5% kan worden vergroot." diff --git a/po/tr.po b/po/tr.po index ef30cd5..f9410bd 100644 --- a/po/tr.po +++ b/po/tr.po @@ -2,14 +2,14 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# Veli Tasalı , 2021. +# Veli Tasalı , 2021-2023. # msgid "" msgstr "" "Project-Id-Version: 1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-05-08 05:15+0900\n" -"PO-Revision-Date: 2021-12-24 19:38+0300\n" +"POT-Creation-Date: 2023-10-31 01:00+0300\n" +"PO-Revision-Date: 2023-10-31 01:17+0300\n" "Last-Translator: Veli Tasalı \n" "Language-Team: Turkish \n" "Language: tr\n" @@ -17,175 +17,238 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=0\n" -"X-Generator: Gtranslator 40.0\n" +"X-Generator: Gtranslator 45.3\n" -#: src/prefs.js:145 -msgid "Disabled" +#: src/prefs-shortcut-dialog.ui:19 +msgid "Press your keyboard shortcut or 'Backspace' to disable..." msgstr "" +"Klavye kısayoluna basın veya 'Backspace' (silme) tuşu ile devre dışı bırakın" -#: src/prefs.ui:34 -msgid "Enable window animation" -msgstr "" +#: src/prefs-shortcut-dialog.ui:28 +msgid "Keyboard Shortcut" +msgstr "Klavye Kısayolu" -#: src/prefs.ui:41 -msgid "Add animation on windows. (In Wayland, this option will very buggy)" -msgstr "" +#: src/prefs.js:32 +msgid "General" +msgstr "Genel" -#: src/prefs.ui:79 -msgid "Gap Between Window and Workspace" -msgstr "Pencere ve Çalışma Alanı Arasındaki Boşluk" +#: src/prefs.js:49 +msgid "Behavior" +msgstr "Davranış" -#: src/prefs.ui:86 -msgid "Percentage to leave out as gap when the window in focus is tiled." -msgstr "Pencere döşendiğinde boşluk olarak bırakılacak oran." +#: src/prefs.js:53 +msgid "Enable Window Animations" +msgstr "Pencere Animasyonlarını Etkinleştir" -#: src/prefs.ui:124 -msgid "Keybinding iterate timeout" +#: src/prefs.js:54 +msgid "" +"Animate windows when resized or repositioned (this may be buggy on Wayland)." msgstr "" +"Pencerelere yeniden boyutlandırma veya taşıma sırasında animasyon uygula " +"(Wayland oturumlarında düzgün çalışmayabilir)." -#: src/prefs.ui:131 -msgid "Maximum time of you can adjust tiling step by iterating same keybinding in milliseconds." -msgstr "" +#: src/prefs.js:65 +msgid "Shortcut Iteration Timeout in Milliseconds" +msgstr "Kısayol Yineleme Zaman Aşımı Millisaniyesi" -#: src/prefs.ui:176 -msgid "Gap Size Increments" -msgstr "" +#: src/prefs.js:66 +msgid "The time window to consider a new key press an iteration." +msgstr "Yeni tuş basımını yineleme saymak için gereken zaman aralığı." -#: src/prefs.ui:183 -msgid "Determine how much gap size adjust by keybinding." -msgstr "" +#: src/prefs.js:85 +msgid "Center Tiling Steps" +msgstr "Ortaya Döşeme Aralıkları" + +#: src/prefs.js:86 src/prefs.js:102 +msgid "Steps on each key press (values between 0-1)." +msgstr "Her basım için uygulanacak aralıklar (0-1 arası değerler)." -#: src/prefs.ui:228 +#: src/prefs.js:101 +msgid "Side Tiling Steps" +msgstr "Kenara Döşeme Aralıkları" + +#: src/prefs.js:118 +msgid "Gaps" +msgstr "Boşluklar" + +#: src/prefs.js:122 msgid "Gaps Between Windows" -msgstr "" +msgstr "Pencereler Arasında Boşluk" -#: src/prefs.ui:235 +#: src/prefs.js:123 msgid "Put gaps between windows." -msgstr "" +msgstr "Pencerelerin arasına boşluk koy." -#: src/prefs.ui:273 -msgid "Center Tiling Steps" -msgstr "" +#: src/prefs.js:134 +msgid "Gap Between Window and Workspace" +msgstr "Pencere ve Çalışma Alanı Arasındaki Boşluk" -#: src/prefs.ui:280 src/prefs.ui:326 -msgid "Steps on each key press (values between 0-1)." -msgstr "" +#: src/prefs.js:135 +msgid "Percentage to leave out as gap when a window is tiled." +msgstr "Bir pencere döşendiğinde boşluk olarak bırakılacak yüzde oranı." -#: src/prefs.ui:319 -msgid "Side Tiling Steps" -msgstr "" +#: src/prefs.js:151 +msgid "Gap Size Increments" +msgstr "Boşluk Büyüklüğü Değişimleri" + +#: src/prefs.js:152 +msgid "The change that the shorcuts make in the gap size." +msgstr "Kısayolların boşluk büyüklüğünde yapacağı değişiklik oranı." -#: src/prefs.ui:365 +#: src/prefs.js:172 +msgid "Shortcuts" +msgstr "Kısayollar" + +#: src/prefs.js:173 +msgid "Assign shortcuts to the functionalities" +msgstr "Özelliklere kısayol atayın" + +#: src/prefs.js:181 msgid "Align Window to Center" msgstr "Pencereyi Ortaya Hizala" -#: src/prefs.ui:372 -msgid "Shortcut to align the window in focus to center without resizing it." -msgstr "Pencereyi yeniden boyutlandırmadan ortaya hizalayacak kısayol." +#: src/prefs.js:182 +msgid "Shortcut to align the active window to center without resizing it." +msgstr "Aktif pencereyi yeniden boyutlandırmadan ortalayacak kısayol." -#: src/prefs.ui:412 -msgid "Increase the Gap Size" -msgstr "Boşluk Aralığını Arttır" +#: src/prefs.js:192 +msgid "Increase Gap Size" +msgstr "Boşluk Büyüklüğünü Arttır" -#: src/prefs.ui:419 +#: src/prefs.js:193 msgid "Shortcut to increase the gap size." -msgstr "" +msgstr "Boşluk büyüklüğünü arttırmak için kullanılacak kısayol." -#: src/prefs.ui:459 -msgid "Decrease the Gap Size" -msgstr "Boşluk Aralığını Azalt" +#: src/prefs.js:203 +msgid "Decrease Gap Size" +msgstr "Boşluk Büyüklüğünü Azalt" -#: src/prefs.ui:466 +#: src/prefs.js:204 msgid "Shortcut to decrease the gap size." -msgstr "" +msgstr "Boşluk büyüklüğünü azaltmak için kullanılacak kısayol." -#: src/prefs.ui:506 +#: src/prefs.js:214 msgid "Tile Window to Center" msgstr "Pencereyi Ortaya Döşe" -#: src/prefs.ui:513 -msgid "Shortcut to tile the window in focus to center." -msgstr "Pencereyi ortaya döşeyecek kısayol." +#: src/prefs.js:215 +msgid "Shortcut to tile active window to center." +msgstr "Pencereyi ortaya döşemek için kullanılacak kısayol." -#: src/prefs.ui:553 +#: src/prefs.js:225 msgid "Tile Window to Left" msgstr "Pencereyi Sola Döşe" -#: src/prefs.ui:560 -msgid "Shortcut to tile the window in focus to left." -msgstr "Pencereyi sola döşeyecek kısayol." +#: src/prefs.js:226 +msgid "Shortcut to tile the active window to left." +msgstr "Pencereyi sola döşemek için kullanılacak kısayol." -#: src/prefs.ui:600 +#: src/prefs.js:236 msgid "Tile Window to Right" msgstr "Pencereyi Sağa Döşe" -#: src/prefs.ui:607 -msgid "Shortcut to tile the window in focus to right." -msgstr "Pencereyi sağa döşeyecek kısayol." +#: src/prefs.js:237 +msgid "Shortcut to tile the active window to right." +msgstr "Pencereyi sağa döşemek için kullanılacak kısayol." -#: src/prefs.ui:647 +#: src/prefs.js:247 msgid "Tile Window to Top" msgstr "Pencereyi Yukarı Döşe" -#: src/prefs.ui:654 -msgid "Shortcut to tile the window in focus to top." -msgstr "Pencereyi yukarı döşeyecek kısayol." +#: src/prefs.js:248 +msgid "Shortcut to tile the active window to top." +msgstr "Pencereyi yukarı döşemek için kullanılacak kısayol." -#: src/prefs.ui:694 +#: src/prefs.js:258 msgid "Tile Window to Bottom" msgstr "Pencereyi Aşağı Döşe" -#: src/prefs.ui:701 -msgid "Shortcut to tile the window in focus to bottom." -msgstr "Pencereyi aşağı döşeyecek kısayol." +#: src/prefs.js:259 +msgid "Shortcut to tile the active window to bottom." +msgstr "Pencereyi aşağı döşemek için kullanılacak kısayol." -#: src/prefs.ui:741 +#: src/prefs.js:269 msgid "Tile Window to Top Left" msgstr "Pencereyi Sol Yukarı Döşe" -#: src/prefs.ui:748 -msgid "Shortcut to tile the window in focus to top left." -msgstr "Pencereyi sol yukarı döşeyecek kısayol." +#: src/prefs.js:270 +msgid "Shortcut to tile the active window to top left." +msgstr "Pencereyi sol yukarı döşemek için kullanılacak kısayol." -#: src/prefs.ui:788 +#: src/prefs.js:280 msgid "Tile Window to Top Right" msgstr "Pencereyi Sağ Yukarı Döşe" -#: src/prefs.ui:795 -msgid "Shortcut to tile the window in focus to top right." -msgstr "Pencereyi sağ yukarı döşeyecek kısayol." +#: src/prefs.js:281 +msgid "Shortcut to tile the active window to top right." +msgstr "Pencereyi sağ yukarı döşemek için kullanılacak kısayol." -#: src/prefs.ui:835 +#: src/prefs.js:292 msgid "Tile Window to Bottom Left" msgstr "Pencereyi Sol Aşağı Döşe" -#: src/prefs.ui:842 -msgid "Shortcut to tile the window in focus to bottom left." -msgstr "Pencereyi sol aşağı döşeyecek kısayol." +#: src/prefs.js:293 +msgid "Shortcut to tile the active window to bottom left." +msgstr "Pencereyi sol asağı döşemek için kullanılacak kısayol." -#: src/prefs.ui:882 +#: src/prefs.js:303 msgid "Tile Window to Bottom Right" msgstr "Pencereyi Sağ Aşağı Döşe" -#: src/prefs.ui:889 -msgid "Shortcut to tile the window in focus to bottom right." -msgstr "Pencereyi sağ aşağı döşeyecek kısayol." +#: src/prefs.js:304 +msgid "Shortcut to tile the active window to bottom right." +msgstr "Pencereyi sağ aşağı döşemek için kullanılacak kısayol." -#: src/prefs-shortcut-dialog.ui:19 -msgid "Press your keyboard shortcut or 'Backspace' to disable..." -msgstr "" - -#: src/prefs-shortcut-dialog.ui:28 -msgid "Keyboard Shortcut" -msgstr "Klavye Kısayolu" +#: src/prefs.js:347 +msgid "Disabled" +msgstr "Devre dışı" -#: src/extension.js:183 +#: src/extension.js:161 #, javascript-format msgid "Gap size is now at %d percent" msgid_plural "Gap size is now at %d percent" msgstr[0] "Boşluk aralığı artık yüzde %d oranında" msgstr[1] "Boşluk aralığı artık yüzde %d oranında" +#~ msgid "Percentage to leave out as gap when the window in focus is tiled." +#~ msgstr "Pencere döşendiğinde boşluk olarak bırakılacak oran." + +#~ msgid "Shortcut to align the window in focus to center without resizing it." +#~ msgstr "Pencereyi yeniden boyutlandırmadan ortaya hizalayacak kısayol." + +#~ msgid "Increase the Gap Size" +#~ msgstr "Boşluk Aralığını Arttır" + +#~ msgid "Decrease the Gap Size" +#~ msgstr "Boşluk Aralığını Azalt" + +#~ msgid "Shortcut to tile the window in focus to center." +#~ msgstr "Pencereyi ortaya döşeyecek kısayol." + +#~ msgid "Shortcut to tile the window in focus to left." +#~ msgstr "Pencereyi sola döşeyecek kısayol." + +#~ msgid "Shortcut to tile the window in focus to right." +#~ msgstr "Pencereyi sağa döşeyecek kısayol." + +#~ msgid "Shortcut to tile the window in focus to top." +#~ msgstr "Pencereyi yukarı döşeyecek kısayol." + +#~ msgid "Shortcut to tile the window in focus to bottom." +#~ msgstr "Pencereyi aşağı döşeyecek kısayol." + +#~ msgid "Shortcut to tile the window in focus to top left." +#~ msgstr "Pencereyi sol yukarı döşeyecek kısayol." + +#~ msgid "Shortcut to tile the window in focus to top right." +#~ msgstr "Pencereyi sağ yukarı döşeyecek kısayol." + +#~ msgid "Shortcut to tile the window in focus to bottom left." +#~ msgstr "Pencereyi sol aşağı döşeyecek kısayol." + +#~ msgid "Shortcut to tile the window in focus to bottom right." +#~ msgstr "Pencereyi sağ aşağı döşeyecek kısayol." + #~ msgid "Shortcut to increase the gap size by 5." #~ msgstr "Boşluk aralığını 5 arttıracak kısayol." diff --git a/src/constants.js b/src/constants.js index 05564ec..560a798 100644 --- a/src/constants.js +++ b/src/constants.js @@ -1,7 +1,4 @@ -var GAP_SIZE_INCREMENTS = 5 - -var GAP_SIZE_MAX = 25 - -var TILING_STEPS_CENTER = [1, 0.75, 0.5] - -var TILING_STEPS_SIDE = [0.5, 0.65, 0.35] +export const GAP_SIZE_INCREMENTS = 5 +export const GAP_SIZE_MAX = 25 +export const TILING_STEPS_CENTER = [1, 0.75, 0.5] +export const TILING_STEPS_SIDE = [0.5, 0.65, 0.35] diff --git a/src/extension.js b/src/extension.js index 531b0eb..f6e68ba 100644 --- a/src/extension.js +++ b/src/extension.js @@ -17,38 +17,23 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -const ExtensionUtils = imports.misc.extensionUtils -const Gettext = imports.gettext -const Main = imports.ui.main -const { Meta, Shell, Gio } = imports.gi - -const Me = ExtensionUtils.getCurrentExtension() -const { +import Meta from 'gi://Meta' +import Shell from 'gi://Shell' +import Gio from 'gi://Gio' +import { Extension, ngettext } from 'resource:///org/gnome/shell/extensions/extension.js' +import { osdWindowManager, wm } from 'resource:///org/gnome/shell/ui/main.js'; +import * as windowMover from './windowMover.js'; +import { GAP_SIZE_MAX, - GAP_SIZE_INCREMENTS, TILING_STEPS_CENTER, TILING_STEPS_SIDE, - TILING_SUCCESSIVE_TIMEOUT, -} = Me.imports.constants -const { parseTilingSteps } = Me.imports.utils -const { WindowMover } = Me.imports.windowMover - -const Domain = Gettext.domain(Me.metadata.uuid) -const { ngettext } = Domain - -function init() { - ExtensionUtils.initTranslations(Me.metadata.uuid) - return new Extension() -} - -function _isRectEqual(lhs, rhs) { - return lhs.x === rhs.x && lhs.y === rhs.y && lhs.width === rhs.width && lhs.height === rhs.height -} +} from './constants.js' +import { isRectEqual, parseTilingSteps } from './utils.js' -class Extension { +export default class AwesomeTilesExtension extends Extension { enable() { - this._windowMover = new WindowMover() - this._settings = ExtensionUtils.getSettings() + this._windowMover = new windowMover.WindowMover() + this._settings = this.getSettings() this._osdGapChangedIcon = Gio.icon_new_for_string("view-grid-symbolic") this._shortcutsBindingIds = [] @@ -69,7 +54,7 @@ class Extension { disable() { this._windowMover.destroy() this._osdGapChangedIcon.run_dispose() - this._shortcutsBindingIds.forEach((id) => Main.wm.removeKeybinding(id)) + this._shortcutsBindingIds.forEach((id) => wm.removeKeybinding(id)) this._shortcutsBindingIds = this._settings = this._windowMover = this._osdGapChangedIcon = null } @@ -95,7 +80,7 @@ class Extension { _bindShortcut(name, callback) { const mode = Shell.hasOwnProperty('ActionMode') ? Shell.ActionMode : Shell.KeyBindingMode - Main.wm.addKeybinding( + wm.addKeybinding( name, this._settings, Meta.KeyBindingFlags.NONE, @@ -171,7 +156,7 @@ class Extension { _notifyGapSize() { const gapSize = this._gapSize - Main.osdWindowManager.show(-1,this._osdGapChangedIcon, + osdWindowManager.show(-1,this._osdGapChangedIcon, ngettext( 'Gap size is now at %d percent', 'Gap size is now at %d percent', @@ -235,7 +220,7 @@ class Extension { let rect = this._computeWindowRect(window, top, bottom, left, right, steps[iteration], center) // Iterate through the tiling steps until we find one that changes the window size. - for (const end = iteration; successive && _isRectEqual(rect, prev.rect);) { + for (const end = iteration; successive && isRectEqual(rect, prev.rect);) { iteration = (iteration + 1) % steps.length if (iteration === end) break; diff --git a/src/metadata.json b/src/metadata.json index f21a079..260ae64 100644 --- a/src/metadata.json +++ b/src/metadata.json @@ -1,16 +1,13 @@ { "_generated": "Generated by SweetTooth, do not edit", "description": "Tile windows using keyboard shortcuts.", + "gettext-domain": "awesome-tiles@velitasali.com", "name": "Awesome Tiles", "settings-schema": "org.gnome.shell.extensions.awesome-tiles", "shell-version": [ - "40", - "41", - "42", - "43", - "44" + "45" ], "url": "https://github.com/velitasali/gnome-awesome-tiles-extension", "uuid": "awesome-tiles@velitasali.com", - "version": 10 + "version": 11 } diff --git a/src/prefs.js b/src/prefs.js index 1df8804..78bb79a 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -17,143 +17,347 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -const { Gdk, Gio, GLib, GObject, Gtk } = imports.gi -const Gettext = imports.gettext -const ExtensionUtils = imports.misc.extensionUtils - -const Me = ExtensionUtils.getCurrentExtension() -const Constants = Me.imports.constants -const Utils = Me.imports.utils - -const Domain = Gettext.domain(Me.metadata.uuid) -const { gettext } = Domain - -const PrefsWidget = GObject.registerClass({ - GTypeName: 'AwesomeTilesPrefsWidget', - Template: Me.dir.get_child('prefs.ui').get_uri(), - InternalChildren: [ - 'enable_window_animation', - 'next_step_timeout', - 'gap_size_increments', - 'gap_size', - 'gaps_between_windows', - 'align_window_to_center', - 'increase_gap_size', - 'decrease_gap_size', - 'tiling_steps_center', - 'tiling_steps_side', - 'tile_window_to_center', - 'tile_window_to_left', - 'tile_window_to_right', - 'tile_window_to_top', - 'tile_window_to_top_left', - 'tile_window_to_top_right', - 'tile_window_to_bottom', - 'tile_window_to_bottom_left', - 'tile_window_to_bottom_right', - ] -}, class PrefsWidget extends Gtk.Box { - _init(params = {}) { - super._init(params) - - this._gap_size.set_range(0, Constants.GAP_SIZE_MAX) - this._gap_size.set_increments(1, 1) - - this._shortcutWidgets = [ - this._align_window_to_center, - this._increase_gap_size, - this._decrease_gap_size, - this._tile_window_to_center, - this._tile_window_to_left, - this._tile_window_to_right, - this._tile_window_to_top, - this._tile_window_to_top_left, - this._tile_window_to_top_right, - this._tile_window_to_bottom, - this._tile_window_to_bottom_left, - this._tile_window_to_bottom_right, - ] - - this._settings = ExtensionUtils.getSettings() - - this._settings.bind( +import Gdk from 'gi://Gdk' +import Gio from 'gi://Gio' +import GLib from 'gi://GLib' +import Gtk from 'gi://Gtk' +import Adw from 'gi://Adw' +import { ExtensionPreferences, gettext as _ } from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js'; +import * as Utils from './utils.js' + +export default class AwesomeTilesPreferences extends ExtensionPreferences { + fillPreferencesWindow(window) { + const settings = this.getSettings() + const page = new Adw.PreferencesPage({ + title: _('General'), + icon_name: 'dialog-information-symbolic', + }) + + const behaviorGroup = this._createBehaviorGroup(settings) + const gapsGroup = this._createGapsGroup(settings) + const shortcutsGroup = this._createShortcutsGroup(window, settings) + + page.add(behaviorGroup) + page.add(gapsGroup) + page.add(shortcutsGroup) + + window.add(page) + } + + _createBehaviorGroup(settings) { + const behaviorGroup = new Adw.PreferencesGroup({ + title: _('Behavior'), + }) + + const enableAnimationsSwitchRow = new Adw.SwitchRow({ + title: _('Enable Window Animations'), + subtitle: _('Animate windows when resized or repositioned (this may be buggy on Wayland).'), + }) + behaviorGroup.add(enableAnimationsSwitchRow) + settings.bind( 'enable-window-animation', - this._enable_window_animation, + enableAnimationsSwitchRow, 'active', - Gio.SettingsBindFlags.DEFAULT, + Gio.SettingsBindFlags.DEFAULT ) - this._settings.bind( + const nextIterationTimeoutSpinRow = new Adw.SpinRow({ + title: _('Shortcut Iteration Timeout in Milliseconds'), + subtitle: _('The time window to consider a new key press an iteration.'), + adjustment: new Gtk.Adjustment({ + lower: 100, + upper: 10000, + 'step-increment': 100, + }) + }) + behaviorGroup.add(nextIterationTimeoutSpinRow) + settings.bind( 'next-step-timeout', - this._next_step_timeout, + nextIterationTimeoutSpinRow, 'value', Gio.SettingsBindFlags.DEFAULT, ) - this._settings.bind( - 'gap-size-increments', - this._gap_size_increments, - 'value', + const centerTilingStepsEntry = new Gtk.Entry({ + valign: Gtk.Align.CENTER, + }); + const centerTilingStepsActionRow = new Adw.ActionRow({ + title: _('Center Tiling Steps'), + subtitle: _('Steps on each key press (values between 0-1).'), + }) + centerTilingStepsActionRow.add_suffix(centerTilingStepsEntry) + behaviorGroup.add(centerTilingStepsActionRow) + settings.bind( + 'tiling-steps-center', + centerTilingStepsEntry.buffer, + 'text', Gio.SettingsBindFlags.DEFAULT, ) - this._settings.bind( - 'gap-size', - this._gap_size, - 'value', + const sideTilingStepsEntry = new Gtk.Entry({ + valign: Gtk.Align.CENTER, + }); + const sideTilingStepsActionRow = new Adw.ActionRow({ + title: _('Side Tiling Steps'), + subtitle: _('Steps on each key press (values between 0-1).'), + }) + sideTilingStepsActionRow.add_suffix(sideTilingStepsEntry) + behaviorGroup.add(sideTilingStepsActionRow) + settings.bind( + 'tiling-steps-side', + sideTilingStepsEntry.buffer, + 'text', Gio.SettingsBindFlags.DEFAULT, ) - this._settings.bind( + return behaviorGroup + } + + _createGapsGroup(settings) { + const gapsGroup = new Adw.PreferencesGroup({ + title: _('Gaps'), + }) + + const gapsBetweenWindowsSwitchRow = new Adw.SwitchRow({ + title: _('Gaps Between Windows'), + subtitle: _('Put gaps between windows.'), + }) + gapsGroup.add(gapsBetweenWindowsSwitchRow) + settings.bind( 'enable-inner-gaps', - this._gaps_between_windows, + gapsBetweenWindowsSwitchRow, 'active', Gio.SettingsBindFlags.DEFAULT, ) - this._settings.bind( - 'tiling-steps-center', - this._tiling_steps_center.buffer, - 'text', + const gapSizeSpinRow = new Adw.SpinRow({ + title: _('Gap Between Window and Workspace'), + subtitle: _('Percentage to leave out as gap when a window is tiled.'), + adjustment: new Gtk.Adjustment({ + lower: 0, + upper: 25, + 'step-increment': 5, + }) + }) + gapsGroup.add(gapSizeSpinRow) + settings.bind( + 'gap-size', + gapSizeSpinRow, + 'value', Gio.SettingsBindFlags.DEFAULT, ) - this._settings.bind( - 'tiling-steps-side', - this._tiling_steps_side.buffer, - 'text', + const gapSizeIncrementsSpinRow = new Adw.SpinRow({ + title: _('Gap Size Increments'), + subtitle: _('The change that the shorcuts make in the gap size.'), + adjustment: new Gtk.Adjustment({ + lower: 0, + upper: 25, + 'step-increment': 1, + }) + }) + gapsGroup.add(gapSizeIncrementsSpinRow) + settings.bind( + 'gap-size-increments', + gapSizeIncrementsSpinRow, + 'value', Gio.SettingsBindFlags.DEFAULT, ) - this._shortcutWidgets.forEach((widget) => { - this._settings.connect("changed::" + widget.get_name(), () => { - this._reloadShortcutWidget(widget) - }) + return gapsGroup + } + + _createShortcutsGroup(window, settings) { + const shortcutsGroup = new Adw.PreferencesGroup({ + title: _('Shortcuts'), + description: _('Assign shortcuts to the functionalities'), + }) + + const alignWindowToCenterButton = new Gtk.Button({ + name: 'shortcut-align-window-to-center', + valign: Gtk.Align.CENTER, + }) + const alignWindowToCenterActionRow = new Adw.ActionRow({ + title: _('Align Window to Center'), + subtitle: _('Shortcut to align the active window to center without resizing it.'), }) + alignWindowToCenterActionRow.add_suffix(alignWindowToCenterButton) + shortcutsGroup.add(alignWindowToCenterActionRow) - this._reloadShortcutWidgets() + const incrementGapSizeButton = new Gtk.Button({ + name: 'shortcut-increase-gap-size', + valign: Gtk.Align.CENTER, + }) + const incrementGapSizeActionRow = new Adw.ActionRow({ + title: _('Increase Gap Size'), + subtitle: _('Shortcut to increase the gap size.'), + }) + incrementGapSizeActionRow.add_suffix(incrementGapSizeButton) + shortcutsGroup.add(incrementGapSizeActionRow) + + const decreaseGapSizeButton = new Gtk.Button({ + name: 'shortcut-decrease-gap-size', + valign: Gtk.Align.CENTER, + }) + const decreaseGapSizeActionRow = new Adw.ActionRow({ + title: _('Decrease Gap Size'), + subtitle: _('Shortcut to decrease the gap size.'), + }) + decreaseGapSizeActionRow.add_suffix(decreaseGapSizeButton) + shortcutsGroup.add(decreaseGapSizeActionRow) + + const tileWindowToCenterButton = new Gtk.Button({ + name: 'shortcut-tile-window-to-center', + valign: Gtk.Align.CENTER, + }) + const tileWindowToCenterActionRow = new Adw.ActionRow({ + title: _('Tile Window to Center'), + subtitle: _('Shortcut to tile active window to center.'), + }) + tileWindowToCenterActionRow.add_suffix(tileWindowToCenterButton) + shortcutsGroup.add(tileWindowToCenterActionRow) + + const tileWindowToLeftButton = new Gtk.Button({ + name: 'shortcut-tile-window-to-left', + valign: Gtk.Align.CENTER, + }) + const tileWindowToLeftActionRow = new Adw.ActionRow({ + title: _('Tile Window to Left'), + subtitle: _('Shortcut to tile the active window to left.'), + }) + tileWindowToLeftActionRow.add_suffix(tileWindowToLeftButton) + shortcutsGroup.add(tileWindowToLeftActionRow) + + const tileWindowToRightButton = new Gtk.Button({ + name: 'shortcut-tile-window-to-right', + valign: Gtk.Align.CENTER, + }) + const tileWindowToRightActionRow = new Adw.ActionRow({ + title: _('Tile Window to Right'), + subtitle: _('Shortcut to tile the active window to right.'), + }) + tileWindowToRightActionRow.add_suffix(tileWindowToRightButton) + shortcutsGroup.add(tileWindowToRightActionRow) + + const tileWindowToTopButton = new Gtk.Button({ + name: 'shortcut-tile-window-to-top', + valign: Gtk.Align.CENTER, + }) + const tileWindowToTopActionRow = new Adw.ActionRow({ + title: _('Tile Window to Top'), + subtitle: _('Shortcut to tile the active window to top.'), + }) + tileWindowToTopActionRow.add_suffix(tileWindowToTopButton) + shortcutsGroup.add(tileWindowToTopActionRow) + + const tileWindowToBottomButton = new Gtk.Button({ + name: 'shortcut-tile-window-to-bottom', + valign: Gtk.Align.CENTER, + }) + const tileWindowToBottomActionRow = new Adw.ActionRow({ + title: _('Tile Window to Bottom'), + subtitle: _('Shortcut to tile the active window to bottom.'), + }) + tileWindowToBottomActionRow.add_suffix(tileWindowToBottomButton) + shortcutsGroup.add(tileWindowToBottomActionRow) + + const tileWindowToTopLeftButton = new Gtk.Button({ + name: 'shortcut-tile-window-to-top-left', + valign: Gtk.Align.CENTER, + }) + const tileWindowToTopLeftActionRow = new Adw.ActionRow({ + title: _('Tile Window to Top Left'), + subtitle: _('Shortcut to tile the active window to top left.'), + }) + tileWindowToTopLeftActionRow.add_suffix(tileWindowToTopLeftButton) + shortcutsGroup.add(tileWindowToTopLeftActionRow) + + const tileWindowToTopRightButton = new Gtk.Button({ + name: 'shortcut-tile-window-to-top-right', + valign: Gtk.Align.CENTER, + }) + const tileWindowToTopRightActionRow = new Adw.ActionRow({ + title: _('Tile Window to Top Right'), + subtitle: _('Shortcut to tile the active window to top right.'), + }) + + tileWindowToTopRightActionRow.add_suffix(tileWindowToTopRightButton) + shortcutsGroup.add(tileWindowToTopRightActionRow) + + const tileWindowToBottomLeftButton = new Gtk.Button({ + name: 'shortcut-tile-window-to-bottom-left', + valign: Gtk.Align.CENTER, + }) + const tileWindowToBottomLeftActionRow = new Adw.ActionRow({ + title: _('Tile Window to Bottom Left'), + subtitle: _('Shortcut to tile the active window to bottom left.'), + }) + tileWindowToBottomLeftActionRow.add_suffix(tileWindowToBottomLeftButton) + shortcutsGroup.add(tileWindowToBottomLeftActionRow) + + const tileWindowToBottomRightButton = new Gtk.Button({ + name: 'shortcut-tile-window-to-bottom-right', + valign: Gtk.Align.CENTER, + }) + const tileWindowToBottomRightActionRow = new Adw.ActionRow({ + title: _('Tile Window to Bottom Right'), + subtitle: _('Shortcut to tile the active window to bottom right.'), + }) + tileWindowToBottomRightActionRow.add_suffix(tileWindowToBottomRightButton) + shortcutsGroup.add(tileWindowToBottomRightActionRow) + + this._bindShortcutSettings(window, settings, [ + alignWindowToCenterButton, + incrementGapSizeButton, + decreaseGapSizeButton, + tileWindowToCenterButton, + tileWindowToLeftButton, + tileWindowToRightButton, + tileWindowToTopButton, + tileWindowToBottomButton, + tileWindowToTopLeftButton, + tileWindowToTopRightButton, + tileWindowToBottomLeftButton, + tileWindowToBottomRightButton, + ]) + + return shortcutsGroup } - _onAssignShortcut(widget) { - const dialog = new ShortcutDialog(this._settings, widget.get_name()) - dialog.set_transient_for(this.get_root()) + _bindShortcutSettings(window, settings, widgets) { + widgets.forEach((widget) => { + settings.connect("changed::" + widget.get_name(), () => { + this._reloadShortcutWidget(settings, widget) + }) + widget.connect("clicked", () => { + this._onAssignShortcut(window, settings, widget) + }) + }) + this._reloadShortcutWidgets(settings, widgets) + } + + _onAssignShortcut(window, settings, widget) { + const dialog = new ShortcutDialog(this.path, settings, widget.get_name()) + dialog.set_transient_for(window) dialog.present() } - _reloadShortcutWidget(widget) { - const shortcut = this._settings.get_strv(widget.get_name()) - widget.label = shortcut?.length > 0 ? shortcut[0] : gettext('Disabled'); + _reloadShortcutWidget(settings, widget) { + const shortcut = settings.get_strv(widget.get_name()) + widget.label = shortcut?.length > 0 ? shortcut[0] : _('Disabled'); } - _reloadShortcutWidgets() { - this._shortcutWidgets.forEach(this._reloadShortcutWidget.bind(this)) + _reloadShortcutWidgets(settings, widgets) { + widgets.forEach((widget) => { + this._reloadShortcutWidget(settings, widget) + }) } -}) +} -const ShortcutDialog = class { - constructor(settings, shortcut) { +class ShortcutDialog { + constructor(path, settings, shortcut) { this._builder = new Gtk.Builder() - this._builder.add_from_file(GLib.build_filenamev([Me.path, 'prefs-shortcut-dialog.ui'])) + this._builder.add_from_file(GLib.build_filenamev([path, 'prefs-shortcut-dialog.ui'])) this.widget = this._builder.get_object('dialog') @@ -191,11 +395,3 @@ const ShortcutDialog = class { }) } } - -function init() { - ExtensionUtils.initTranslations(Me.metadata.uuid) -} - -function buildPrefsWidget() { - return new PrefsWidget() -} diff --git a/src/prefs.ui b/src/prefs.ui deleted file mode 100644 index f0fe817..0000000 --- a/src/prefs.ui +++ /dev/null @@ -1,919 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/utils.js b/src/utils.js index 47fd148..29f4bfc 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,6 +1,7 @@ -const { Gdk, Gtk } = imports.gi +import Gdk from 'gi://Gdk' +import Gtk from 'gi://Gtk' -function isKeyvalForbidden(keyval) { +export function isKeyvalForbidden(keyval) { const forbiddenKeyvals = [ Gdk.KEY_Home, Gdk.KEY_Left, @@ -18,7 +19,7 @@ function isKeyvalForbidden(keyval) { return forbiddenKeyvals.includes(keyval) } -function isBindingValid({ mask, keycode, keyval }) { +export function isBindingValid({ mask, keycode, keyval }) { if ((mask === 0 || mask === Gdk.SHIFT_MASK) && keycode !== 0) { if ( (keyval >= Gdk.KEY_a && keyval <= Gdk.KEY_z) @@ -39,11 +40,15 @@ function isBindingValid({ mask, keycode, keyval }) { return true } -function isAccelValid({ mask, keyval }) { +export function isAccelValid({ mask, keyval }) { return Gtk.accelerator_valid(keyval, mask) || (keyval === Gdk.KEY_Tab && mask !== 0) } -function parseTilingSteps(value, defaultValue) { +export function isRectEqual(lhs, rhs) { + return lhs.x === rhs.x && lhs.y === rhs.y && lhs.width === rhs.width && lhs.height === rhs.height +} + +export function parseTilingSteps(value, defaultValue) { try { return value .split(",") diff --git a/src/windowMover.js b/src/windowMover.js index 3b2e346..0b08687 100644 --- a/src/windowMover.js +++ b/src/windowMover.js @@ -1,7 +1,8 @@ +import Clutter from 'gi://Clutter' +import Gio from 'gi://Gio' +import Meta from 'gi://Meta' -const { Meta, Clutter, Gio } = imports.gi - -var WindowMover = class WindowMover { +export class WindowMover { constructor() { this._windowAnimations = [] this._desktopSettings = new Gio.Settings({ schema: 'org.gnome.desktop.interface' })