Compare commits
3 Commits
f6272f0717
...
a4ab733220
Author | SHA1 | Date |
---|---|---|
meldafert | a4ab733220 | |
Сергій | 766e9a9795 | |
Mel Dafert | a5a7185065 |
|
@ -6,17 +6,17 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"POT-Creation-Date: \n"
|
"POT-Creation-Date: \n"
|
||||||
"PO-Revision-Date: 2021-08-18 00:37+0000\n"
|
"PO-Revision-Date: 2024-02-15 13:01+0000\n"
|
||||||
"Last-Translator: Tymofii Lytvynenko <till.svit@gmail.com>\n"
|
"Last-Translator: Сергій <sergiy.goncharuk.1@gmail.com>\n"
|
||||||
"Language-Team: Ukrainian <https://hosted.weblate.org/projects/safe-eyes/"
|
"Language-Team: Ukrainian <https://hosted.weblate.org/projects/safe-eyes/"
|
||||||
"translations/uk/>\n"
|
"translations/uk/>\n"
|
||||||
"Language: uk\n"
|
"Language: uk\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
|
||||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||||
"X-Generator: Weblate 4.8-dev\n"
|
"X-Generator: Weblate 5.4-dev\n"
|
||||||
|
|
||||||
# Short break
|
# Short break
|
||||||
msgid "Tightly close your eyes"
|
msgid "Tightly close your eyes"
|
||||||
|
@ -48,7 +48,7 @@ msgstr "Випийте води"
|
||||||
|
|
||||||
# Long break
|
# Long break
|
||||||
msgid "Walk for a while"
|
msgid "Walk for a while"
|
||||||
msgstr "Трохи походіть"
|
msgstr "Прогуляйтесь"
|
||||||
|
|
||||||
# Long break
|
# Long break
|
||||||
msgid "Lean back at your seat and relax"
|
msgid "Lean back at your seat and relax"
|
||||||
|
@ -289,7 +289,7 @@ msgstr "Нова перерва"
|
||||||
|
|
||||||
# Settings dialog
|
# Settings dialog
|
||||||
msgid "Remove"
|
msgid "Remove"
|
||||||
msgstr "Видалити"
|
msgstr "Вилучити"
|
||||||
|
|
||||||
# Settings dialog
|
# Settings dialog
|
||||||
msgid "Discard"
|
msgid "Discard"
|
||||||
|
|
|
@ -23,7 +23,7 @@ def validate(plugin_config, plugin_settings):
|
||||||
command = None
|
command = None
|
||||||
if utility.DESKTOP_ENVIRONMENT == "gnome" and utility.IS_WAYLAND:
|
if utility.DESKTOP_ENVIRONMENT == "gnome" and utility.IS_WAYLAND:
|
||||||
command = "dbus-send"
|
command = "dbus-send"
|
||||||
elif utility.DESKTOP_ENVIRONMENT == "sway":
|
elif utility.IS_WAYLAND:
|
||||||
command = "swayidle"
|
command = "swayidle"
|
||||||
else:
|
else:
|
||||||
command = "xprintidle"
|
command = "xprintidle"
|
||||||
|
|
|
@ -171,7 +171,7 @@ def init(ctx, safeeyes_config, plugin_config):
|
||||||
long_break_duration = safeeyes_config.get('long_break_duration')
|
long_break_duration = safeeyes_config.get('long_break_duration')
|
||||||
waiting_time = min(2, idle_time) # If idle time is 1 sec, wait only 1 sec
|
waiting_time = min(2, idle_time) # If idle time is 1 sec, wait only 1 sec
|
||||||
is_wayland_and_gnome = context['desktop'] == 'gnome' and context['is_wayland']
|
is_wayland_and_gnome = context['desktop'] == 'gnome' and context['is_wayland']
|
||||||
use_swayidle = context['desktop'] == 'sway'
|
use_swayidle = context['desktop'] != 'gnome' and context['is_wayland']
|
||||||
|
|
||||||
|
|
||||||
def __start_idle_monitor():
|
def __start_idle_monitor():
|
||||||
|
|
Loading…
Reference in New Issue