Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding HWND persistance on the monitor scope #284

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion documentation/schemas/settings.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@
"enabled": true,
"height": 30,
"hideMode": "Never",
"placeholder": "default.yml"
"placeholder": "default.yml",
"useMultiMonitorOverlapLogic": false
},
"allOf": [
{
Expand Down Expand Up @@ -380,6 +381,7 @@
"position": "Bottom",
"size": 40,
"spaceBetweenItems": 8,
"useMultiMonitorOverlapLogic": false,
"visibleSeparators": true,
"zoomSize": 70
},
Expand Down Expand Up @@ -1151,6 +1153,11 @@
"description": "default placeholder for the fancy toolbar",
"default": "default.yml",
"type": "string"
},
"useMultiMonitorOverlapLogic": {
"description": "enables the logic which persists last overlapped HWND to enchance multimonitor overlap feature",
"default": false,
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -1498,6 +1505,11 @@
"format": "uint32",
"minimum": 0.0
},
"useMultiMonitorOverlapLogic": {
"description": "enables the logic which persists last overlapped HWND to enchance multimonitor overlap feature",
"default": false,
"type": "boolean"
},
"visibleSeparators": {
"description": "enable or disable separators visibility",
"default": true,
Expand Down
6 changes: 6 additions & 0 deletions lib/src/state/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pub struct FancyToolbarSettings {
pub placeholder: String,
/// hide mode
pub hide_mode: HideMode,
/// enables the logic which persists last overlapped HWND to enchance multimonitor overlap feature
pub use_multi_monitor_overlap_logic: bool,
/// delay to show the toolbar on Mouse Hover in milliseconds
pub delay_to_show: u32,
/// delay to hide the toolbar on Mouse Leave in milliseconds
Expand All @@ -40,6 +42,7 @@ impl Default for FancyToolbarSettings {
height: 30,
placeholder: String::from("default.yml"),
hide_mode: HideMode::Never,
use_multi_monitor_overlap_logic: false,
delay_to_show: 100,
delay_to_hide: 800,
}
Expand Down Expand Up @@ -99,6 +102,8 @@ pub struct SeelenWegSettings {
pub padding: u32,
/// space between items in px
pub space_between_items: u32,
/// enables the logic which persists last overlapped HWND to enchance multimonitor overlap feature
pub use_multi_monitor_overlap_logic: bool,
/// delay to show the toolbar on Mouse Hover in milliseconds
pub delay_to_show: u32,
/// delay to hide the toolbar on Mouse Leave in milliseconds
Expand All @@ -118,6 +123,7 @@ impl Default for SeelenWegSettings {
margin: 8,
padding: 8,
space_between_items: 8,
use_multi_monitor_overlap_logic: false,
delay_to_show: 100,
delay_to_hide: 800,
}
Expand Down
2 changes: 2 additions & 0 deletions lib/src/state/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export class FancyToolbarSettings {
height: number = 30;
placeholder: string = 'default.yml';
hideMode: HideMode = HideMode.Never;
useMultiMonitorOverlapLogic: boolean = false;
delayToShow: number = 100;
delayToHide: number = 800;
}
Expand All @@ -107,6 +108,7 @@ export class SeelenWegSettings {
margin: number = 8;
padding: number = 8;
spaceBetweenItems: number = 8;
useMultiMonitorOverlapLogic: boolean = false;
delayToShow: number = 100;
delayToHide: number = 800;
}
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/af.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolbar:
label: Werkbalk
delay_to_hide: Vertraag om weg te steek
delay_to_show: Vertraag om te wys
use_multiple_monitor_overlap_logic: Gebruik vertoonspesifieke in plaas van enkelfokuslogika
wm:
border:
width: Grenswydte
Expand Down Expand Up @@ -88,6 +89,7 @@ weg:
dock_side: Posisie
delay_to_hide: Vertraag om weg te steek
delay_to_show: Vertraag om te wys
use_multiple_monitor_overlap_logic: Gebruik vertoonspesifieke in plaas van enkelfokuslogika
devtools:
app_folders: APP -vouers
load: Vrag
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/am.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ toolbar:
label: የመሣሪያ አሞሌ
delay_to_hide: ለመደበቅ መዘግየት
delay_to_show: ለማሳየት መዘግየት
use_multiple_monitor_overlap_logic: ከአንድ የትኩረት ሎጂክ ይልቅ ማሳያን ተጠቀም
wm:
border:
width: ድንበር ስፋት
Expand Down Expand Up @@ -86,6 +87,7 @@ weg:
dock_side: አቀማመጥ
delay_to_hide: ለመደበቅ መዘግየት
delay_to_show: ለማሳየት መዘግየት
use_multiple_monitor_overlap_logic: ከአንድ የትኩረት ሎጂክ ይልቅ ማሳያን ተጠቀም
devtools:
app_folders: የመተግበሪያ አቃፊዎች
data_folder: የውሂብ አቃፊ
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ toolbar:
label: شريط الأدوات
delay_to_show: تأخير في العرض
delay_to_hide: تأخير الاختباء
use_multiple_monitor_overlap_logic: استخدم عرضًا خاصًا بدلاً من منطق التركيز الفردي
wm:
layout: تَخطِيط
author: مؤلف
Expand Down Expand Up @@ -94,6 +95,7 @@ weg:
dock_side: موضع
delay_to_hide: تأخير الاختباء
delay_to_show: تأخير في العرض
use_multiple_monitor_overlap_logic: استخدم عرضًا خاصًا بدلاً من منطق التركيز الفردي
devtools:
enable: تمكين أدوات المطور
app_folders: مجلدات التطبيق
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/az.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolbar:
label: Alət çubuğu
delay_to_show: Göstərmək üçün gecikmə
delay_to_hide: Gizlətmək üçün gecikmə
use_multiple_monitor_overlap_logic: Tək fokus məntiqi əvəzinə xüsusi ekrandan istifadə edin
wm:
border:
width: Sərhəd eni
Expand Down Expand Up @@ -88,6 +89,7 @@ weg:
dock_side: Mövqe
delay_to_show: Göstərmək üçün gecikmə
delay_to_hide: Gizlətmək üçün gecikmə
use_multiple_monitor_overlap_logic: Tək fokus məntiqi əvəzinə xüsusi ekrandan istifadə edin
devtools:
app_folders: Tətbiq qovluqları
data_folder: Məlumat qovluğu
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/bg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolbar:
label: Лента с инструменти
delay_to_show: Забавяне за показване
delay_to_hide: Забавяне, за да се скрие
use_multiple_monitor_overlap_logic: Използвайте специфична за дисплея вместо логика на единичен фокус
wm:
border:
enable: Активирайте границата на Windows
Expand Down Expand Up @@ -88,6 +89,7 @@ weg:
dock_side: Позиция
delay_to_show: Забавяне за показване
delay_to_hide: Забавяне, за да се скрие
use_multiple_monitor_overlap_logic: Използвайте специфична за дисплея вместо логика на единичен фокус
devtools:
app_folders: Папки на приложения
custom_config_file: Заредете персонализиран конфигурационен файл
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/bn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolbar:
label: সরঞ্জামদণ্ড
delay_to_show: দেখাতে বিলম্ব
delay_to_hide: আড়াল করতে বিলম্ব
use_multiple_monitor_overlap_logic: একক ফোকাস লজিকের পরিবর্তে প্রদর্শন নির্দিষ্ট ব্যবহার করুন
wm:
border:
width: সীমানার প্রশস্থতা
Expand Down Expand Up @@ -88,6 +89,7 @@ weg:
dock_side: অবস্থান
delay_to_show: দেখাতে বিলম্ব
delay_to_hide: আড়াল করতে বিলম্ব
use_multiple_monitor_overlap_logic: একক ফোকাস লজিকের পরিবর্তে প্রদর্শন নির্দিষ্ট ব্যবহার করুন
devtools:
enable: বিকাশকারী সরঞ্জাম সক্ষম করুন
settings_file: সেটিংস ফাইল
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/bs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolbar:
label: Alatna traka
delay_to_show: Kašnjenje za prikaz
delay_to_hide: Odložite da se sakrijete
use_multiple_monitor_overlap_logic: Koristite specifičan prikaz umjesto logike jednog fokusa
wm:
border:
width: Širina granice
Expand Down Expand Up @@ -88,6 +89,7 @@ weg:
dock_side: Položaj
delay_to_hide: Odložite da se sakrijete
delay_to_show: Kašnjenje za prikaz
use_multiple_monitor_overlap_logic: Koristite specifičan prikaz umjesto logike jednog fokusa
devtools:
app_folders: App Mape
settings_file: Datoteka postavki
Expand Down
6 changes: 6 additions & 0 deletions src/apps/settings/i18n/translations/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ toolbar:
label: Barra d’eines
delay_to_hide: Tarda en amagar-se
delay_to_show: Retard per mostrar
use_multiple_monitor_overlap_logic: >-
Utilitzeu la lògica específica de la pantalla en lloc de la lògica
d'enfocament únic
wm:
border:
offset: Compensació fronterera
Expand Down Expand Up @@ -88,6 +91,9 @@ weg:
dock_side: Posició
delay_to_hide: Tarda en amagar-se
delay_to_show: Retard per mostrar
use_multiple_monitor_overlap_logic: >-
Utilitzeu la lògica específica de la pantalla en lloc de la lògica
d'enfocament únic
devtools:
load: Carregar
data_folder: Carpeta de dades
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolbar:
label: Panel nástrojů
delay_to_show: Zpoždění zobrazení
delay_to_hide: Odložit se schovat
use_multiple_monitor_overlap_logic: Místo logiky jednoho zaměření použijte specifickou obrazovku
wm:
border:
width: Šířka hranic
Expand Down Expand Up @@ -88,6 +89,7 @@ weg:
dock_side: Pozice
delay_to_hide: Odložit se schovat
delay_to_show: Zpoždění zobrazení
use_multiple_monitor_overlap_logic: Místo logiky jednoho zaměření použijte specifickou obrazovku
devtools:
data_folder: Datová složka
settings_file: Nastavení souboru
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/cy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolbar:
label: Bariau
delay_to_show: Oedi i ddangos
delay_to_hide: Oedi i guddio
use_multiple_monitor_overlap_logic: Defnyddiwch resymeg arddangos benodol yn hytrach na rhesymeg un ffocws
wm:
border:
width: Lled
Expand Down Expand Up @@ -88,6 +89,7 @@ weg:
dock_side: Safle
delay_to_show: Oedi i ddangos
delay_to_hide: Oedi i guddio
use_multiple_monitor_overlap_logic: Defnyddiwch resymeg arddangos benodol yn hytrach na rhesymeg un ffocws
devtools:
data_folder: Ffolder data
custom_config_file: Llwythwch ffeil ffurfweddu arfer
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/da.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolbar:
label: Værktøjslinje
delay_to_show: Forsinket fremvisning
delay_to_hide: Forsink med at skjule
use_multiple_monitor_overlap_logic: Brug displayspecifik i stedet for enkeltfokuslogik
wm:
border:
width: Grænsebredde
Expand Down Expand Up @@ -88,6 +89,7 @@ weg:
dock_side: Position
delay_to_hide: Forsink med at skjule
delay_to_show: Forsinket fremvisning
use_multiple_monitor_overlap_logic: Brug displayspecifik i stedet for enkeltfokuslogik
devtools:
enable: Aktivér udviklerværktøjer
settings_file: Indstillinger fil
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ toolbar:
label: Symbolleiste
delay_to_hide: Verzögerung zum Verstecken
delay_to_show: Verzögerung beim Anzeigen
use_multiple_monitor_overlap_logic: Verwenden Sie eine anzeigespezifische statt einer einzelnen Fokuslogik
wm:
layout: Layout
author: Autor
Expand Down Expand Up @@ -95,6 +96,7 @@ weg:
dock_side: Position
delay_to_show: Verzögerung beim Anzeigen
delay_to_hide: Verzögerung zum Verstecken
use_multiple_monitor_overlap_logic: Verwenden Sie eine anzeigespezifische statt einer einzelnen Fokuslogik
devtools:
enable: Entwicklerwerkzeuge aktivieren
app_folders: Anwendungsordner
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/el.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolbar:
label: Γραμμή εργαλείων
delay_to_hide: Καθυστέρηση για απόκρυψη
delay_to_show: Καθυστέρηση εμφάνισης
use_multiple_monitor_overlap_logic: Χρησιμοποιήστε συγκεκριμένα την οθόνη αντί για λογική εστίασης
wm:
border:
offset: Μετατόπιση των συνόρων
Expand Down Expand Up @@ -88,6 +89,7 @@ weg:
dock_side: Θέση
delay_to_show: Καθυστέρηση εμφάνισης
delay_to_hide: Καθυστέρηση για απόκρυψη
use_multiple_monitor_overlap_logic: Χρησιμοποιήστε συγκεκριμένα την οθόνη αντί για λογική εστίασης
devtools:
data_folder: Φάκελος δεδομένων
custom_config_file: Φόρτωση προσαρμοσμένου αρχείου ρυθμίσεων
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ toolbar:
auto_hide: Auto Hide
delay_to_show: Delay to show
delay_to_hide: Delay to hide
use_multiple_monitor_overlap_logic: Use display specific instead of single focus logic
vd:
disabled_windows_version: Native Virtual Desktop Strategy is not available for your Windows version.
strategy:
Expand Down Expand Up @@ -112,6 +113,7 @@ weg:
visible_separators: Visible Separators
delay_to_show: Delay to show
delay_to_hide: Delay to hide
use_multiple_monitor_overlap_logic: Use display specific instead of single focus logic
devtools:
enable: Enable Developer Tools
app_folders: App Folders
Expand Down
6 changes: 6 additions & 0 deletions src/apps/settings/i18n/translations/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ toolbar:
label: Barra de herramientas
delay_to_hide: Retraso para esconderse
delay_to_show: Retraso para mostrar
use_multiple_monitor_overlap_logic: >-
Utilice una lógica de visualización específica en lugar de una lógica de
enfoque único
wm:
layout: Distribución
author: Autor
Expand Down Expand Up @@ -95,6 +98,9 @@ weg:
dock_side: Posición
delay_to_hide: Retraso para esconderse
delay_to_show: Retraso para mostrar
use_multiple_monitor_overlap_logic: >-
Utilice una lógica de visualización específica en lugar de una lógica de
enfoque único
devtools:
enable: Habilitar herramientas de desarrollador
app_folders: Carpetas de aplicaciones
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/et.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolbar:
label: Tööriistariba
delay_to_show: Näitamisega viivitus
delay_to_hide: Viivitage peitmine
use_multiple_monitor_overlap_logic: Kasutage ühe fookuse loogika asemel kuvapõhist
wm:
border:
width: Piirilaius
Expand Down Expand Up @@ -88,6 +89,7 @@ weg:
dock_side: Positsioon
delay_to_show: Näitamisega viivitus
delay_to_hide: Viivitage peitmine
use_multiple_monitor_overlap_logic: Kasutage ühe fookuse loogika asemel kuvapõhist
devtools:
app_folders: Rakenduse kaustad
data_folder: Andmekaust
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/eu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolbar:
label: Tresna barra
delay_to_hide: Ezkutatzeko atzeratu
delay_to_show: Erakusteko atzerapena
use_multiple_monitor_overlap_logic: Erabili pantaila espezifikoa foku bakarraren ordez
wm:
border:
width: Ertzaren zabalera
Expand Down Expand Up @@ -88,6 +89,7 @@ weg:
dock_side: Kokaleku
delay_to_hide: Ezkutatzeko atzeratu
delay_to_show: Erakusteko atzerapena
use_multiple_monitor_overlap_logic: Erabili pantaila espezifikoa foku bakarraren ordez
devtools:
enable: Gaitu garatzaileen tresnak
load: Zamatu
Expand Down
2 changes: 2 additions & 0 deletions src/apps/settings/i18n/translations/fa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ toolbar:
label: نوار ابزار
delay_to_show: تاخیر برای نمایش
delay_to_hide: تاخیر برای پنهان شدن
use_multiple_monitor_overlap_logic: به جای منطق فوکوس منفرد از صفحه نمایش خاص استفاده کنید
wm:
border:
enable: مرز پنجره را فعال کنید
Expand Down Expand Up @@ -87,6 +88,7 @@ weg:
dock_side: موقعیت
delay_to_hide: تاخیر برای پنهان شدن
delay_to_show: تاخیر برای نمایش
use_multiple_monitor_overlap_logic: به جای منطق فوکوس منفرد از صفحه نمایش خاص استفاده کنید
devtools:
load: بار
install_folder: پوشه نصب
Expand Down
Loading