diff --git a/safeeyes/config/locale/ar/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/ar/LC_MESSAGES/safeeyes.po index 56fe8de..7210060 100644 --- a/safeeyes/config/locale/ar/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/ar/LC_MESSAGES/safeeyes.po @@ -388,6 +388,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "" diff --git a/safeeyes/config/locale/bg/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/bg/LC_MESSAGES/safeeyes.po index b81bbe5..0fb6a56 100644 --- a/safeeyes/config/locale/bg/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/bg/LC_MESSAGES/safeeyes.po @@ -385,6 +385,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "" diff --git a/safeeyes/config/locale/ca/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/ca/LC_MESSAGES/safeeyes.po index 257542c..134fd4f 100644 --- a/safeeyes/config/locale/ca/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/ca/LC_MESSAGES/safeeyes.po @@ -389,6 +389,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Quant a" diff --git a/safeeyes/config/locale/cs/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/cs/LC_MESSAGES/safeeyes.po index 2f18d1e..6984638 100644 --- a/safeeyes/config/locale/cs/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/cs/LC_MESSAGES/safeeyes.po @@ -391,6 +391,10 @@ msgstr "Zobrazovat ikonu v systémové oblasti" msgid "Show next break time in tray icon" msgstr "Zobrazit čas příští přestávky v systémové oblasti" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "O aplikaci" diff --git a/safeeyes/config/locale/da/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/da/LC_MESSAGES/safeeyes.po index aba553c..a8e3e92 100644 --- a/safeeyes/config/locale/da/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/da/LC_MESSAGES/safeeyes.po @@ -387,6 +387,10 @@ msgstr "Vise en ikon i meddelelsesområdet" msgid "Show next break time in tray icon" msgstr "Vis næste pausetid i bakkeikon" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Om" diff --git a/safeeyes/config/locale/de/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/de/LC_MESSAGES/safeeyes.po index defe246..b0897a8 100644 --- a/safeeyes/config/locale/de/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/de/LC_MESSAGES/safeeyes.po @@ -389,6 +389,10 @@ msgstr "Symbol im Tray anzeigen" msgid "Show next break time in tray icon" msgstr "Nächsten Pausen-Termin im Tray-Symbol anzeigen" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Über" diff --git a/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po index 03ee0d4..bd6dc96 100644 --- a/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po @@ -389,6 +389,10 @@ msgstr "Show a tray icon in the notification area" msgid "Show next break time in tray icon" msgstr "Show next break time in tray icon" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "Allow disabling Safe Eyes" + #: plugins/trayicon msgid "About" msgstr "About" diff --git a/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po index c8d6f28..374c2cc 100644 --- a/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po @@ -388,6 +388,10 @@ msgstr "Mostrar un icono de bandeja en el área de notificacion" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Acerca de" diff --git a/safeeyes/config/locale/et/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/et/LC_MESSAGES/safeeyes.po index 98754d9..956cabc 100644 --- a/safeeyes/config/locale/et/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/et/LC_MESSAGES/safeeyes.po @@ -388,6 +388,10 @@ msgstr "Paneeliikooni näitamine teavitusalas" msgid "Show next break time in tray icon" msgstr "Näita järgmise pausi aega paneeliikooni kõrval" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Programmist" diff --git a/safeeyes/config/locale/fa/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/fa/LC_MESSAGES/safeeyes.po index 0bf8baf..8c3513e 100644 --- a/safeeyes/config/locale/fa/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/fa/LC_MESSAGES/safeeyes.po @@ -388,6 +388,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "" diff --git a/safeeyes/config/locale/fr/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/fr/LC_MESSAGES/safeeyes.po index d706d34..0bdffec 100644 --- a/safeeyes/config/locale/fr/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/fr/LC_MESSAGES/safeeyes.po @@ -399,6 +399,10 @@ msgstr "Afficher une icône dans la zone de notification" msgid "Show next break time in tray icon" msgstr "Afficher l’heure de la prochaine pause dans l’icône de notification" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "À propos" diff --git a/safeeyes/config/locale/hi/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/hi/LC_MESSAGES/safeeyes.po index 5a1ae87..c3ba111 100644 --- a/safeeyes/config/locale/hi/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/hi/LC_MESSAGES/safeeyes.po @@ -386,6 +386,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "" diff --git a/safeeyes/config/locale/hu/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/hu/LC_MESSAGES/safeeyes.po index ea98e2d..61d7e2d 100644 --- a/safeeyes/config/locale/hu/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/hu/LC_MESSAGES/safeeyes.po @@ -387,6 +387,10 @@ msgstr "Mutasd a tálca ikont az értesítési területen" msgid "Show next break time in tray icon" msgstr "Mutasd a következő pihenőt a tálca ikonon" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Névjegy" diff --git a/safeeyes/config/locale/id/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/id/LC_MESSAGES/safeeyes.po index 4205da3..4de3000 100644 --- a/safeeyes/config/locale/id/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/id/LC_MESSAGES/safeeyes.po @@ -386,6 +386,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "" diff --git a/safeeyes/config/locale/it/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/it/LC_MESSAGES/safeeyes.po index 52e8f05..7052505 100644 --- a/safeeyes/config/locale/it/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/it/LC_MESSAGES/safeeyes.po @@ -394,6 +394,10 @@ msgstr "Mostra l'icona nell'area di notifica" msgid "Show next break time in tray icon" msgstr "Mostra la prossima pausa accanto all'icona" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Informazioni" diff --git a/safeeyes/config/locale/lt/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/lt/LC_MESSAGES/safeeyes.po index fbf921b..40fb2cb 100644 --- a/safeeyes/config/locale/lt/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/lt/LC_MESSAGES/safeeyes.po @@ -394,6 +394,10 @@ msgstr "Rodyti dėklo piktogramą pranešimų srityje" msgid "Show next break time in tray icon" msgstr "Rodyti dėklo piktogramoje kitos pertraukos laiką" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Apie" diff --git a/safeeyes/config/locale/mk/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/mk/LC_MESSAGES/safeeyes.po index b4c82bd..5c8f18f 100644 --- a/safeeyes/config/locale/mk/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/mk/LC_MESSAGES/safeeyes.po @@ -388,6 +388,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "" diff --git a/safeeyes/config/locale/nb/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/nb/LC_MESSAGES/safeeyes.po index e382697..5b3c3a9 100644 --- a/safeeyes/config/locale/nb/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/nb/LC_MESSAGES/safeeyes.po @@ -8,8 +8,8 @@ msgstr "" "POT-Creation-Date: \n" "PO-Revision-Date: 2019-02-12 11:27+0000\n" "Last-Translator: Allan Nordhøy \n" -"Language-Team: Norwegian Bokmål \n" +"Language-Team: Norwegian Bokmål \n" "Language: nb\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -388,6 +388,10 @@ msgstr "Vis systemkurvisikon i merknadsområde" msgid "Show next break time in tray icon" msgstr "Vis neste pausetid i systemkurvisikon" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Om" diff --git a/safeeyes/config/locale/nl/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/nl/LC_MESSAGES/safeeyes.po index b1026e5..af1707a 100644 --- a/safeeyes/config/locale/nl/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/nl/LC_MESSAGES/safeeyes.po @@ -394,6 +394,10 @@ msgstr "Pictogram tonen in systeemvak" msgid "Show next break time in tray icon" msgstr "Volgende pauzetijd tonen op systeemvakpictogram" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Over" diff --git a/safeeyes/config/locale/pl/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/pl/LC_MESSAGES/safeeyes.po index b336574..7377024 100644 --- a/safeeyes/config/locale/pl/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/pl/LC_MESSAGES/safeeyes.po @@ -391,6 +391,10 @@ msgstr "Pokaż ikonę w obszarze powiadomień" msgid "Show next break time in tray icon" msgstr "Pokaż następny czas przerwy w obszarze powiadomień" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "O programie" diff --git a/safeeyes/config/locale/pt/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/pt/LC_MESSAGES/safeeyes.po index c1cf1a3..1e61710 100644 --- a/safeeyes/config/locale/pt/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/pt/LC_MESSAGES/safeeyes.po @@ -393,6 +393,10 @@ msgstr "Mostrar um ícone de bandeja na área de notificação" msgid "Show next break time in tray icon" msgstr "Mostrar a próxima hora de parada no ícone de bandeja" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Sobre" diff --git a/safeeyes/config/locale/ru/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/ru/LC_MESSAGES/safeeyes.po index 5149d84..2d65059 100644 --- a/safeeyes/config/locale/ru/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/ru/LC_MESSAGES/safeeyes.po @@ -389,6 +389,10 @@ msgstr "Показывать иконку в трее в области увед msgid "Show next break time in tray icon" msgstr "Показывать время до следующего перерыва на иконке в трее" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "О программе" diff --git a/safeeyes/config/locale/safeeyes.pot b/safeeyes/config/locale/safeeyes.pot index af9c699..0d28826 100644 --- a/safeeyes/config/locale/safeeyes.pot +++ b/safeeyes/config/locale/safeeyes.pot @@ -374,6 +374,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "" diff --git a/safeeyes/config/locale/sk/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/sk/LC_MESSAGES/safeeyes.po index fd373c8..f80cdd6 100644 --- a/safeeyes/config/locale/sk/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/sk/LC_MESSAGES/safeeyes.po @@ -389,6 +389,10 @@ msgstr "Zobraziť ikonu na paneli v oznamovacej oblasti" msgid "Show next break time in tray icon" msgstr "Zobraziť čas nasledujúcej prestávku v ikone" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "O programe" diff --git a/safeeyes/config/locale/sv/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/sv/LC_MESSAGES/safeeyes.po index b5eb20d..bc7a5ab 100644 --- a/safeeyes/config/locale/sv/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/sv/LC_MESSAGES/safeeyes.po @@ -385,6 +385,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "" diff --git a/safeeyes/config/locale/ta/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/ta/LC_MESSAGES/safeeyes.po index 504565d..a348160 100644 --- a/safeeyes/config/locale/ta/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/ta/LC_MESSAGES/safeeyes.po @@ -391,6 +391,10 @@ msgstr "அறிவிப்பு பகுதியில் Safe Eyes சி msgid "Show next break time in tray icon" msgstr "அடுத்த இடைவேளை நேரத்தை Safe Eyes சின்னத்திற்கு அருகில் காண்பிக்கவும்" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "Safe Eyes ஐ செயல்நீக்க அனுமதிக்கவும்" + #: plugins/trayicon msgid "About" msgstr "Safe Eyes குறித்த தகவல்கள்" diff --git a/safeeyes/config/locale/tr/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/tr/LC_MESSAGES/safeeyes.po index 9f25736..8c01ecf 100644 --- a/safeeyes/config/locale/tr/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/tr/LC_MESSAGES/safeeyes.po @@ -392,6 +392,10 @@ msgstr "Bildirim alanında bir simge göster" msgid "Show next break time in tray icon" msgstr "Sonraki mola zamanını tepsi simgesinde göster" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Hakkında" diff --git a/safeeyes/config/locale/ug/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/ug/LC_MESSAGES/safeeyes.po index e43cce8..ae5d142 100644 --- a/safeeyes/config/locale/ug/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/ug/LC_MESSAGES/safeeyes.po @@ -385,6 +385,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "" diff --git a/safeeyes/config/locale/uk/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/uk/LC_MESSAGES/safeeyes.po index 58e48a9..f77b54d 100644 --- a/safeeyes/config/locale/uk/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/uk/LC_MESSAGES/safeeyes.po @@ -394,6 +394,10 @@ msgstr "Показувати значок в панелі завдань в об msgid "Show next break time in tray icon" msgstr "Показувати час наступної перерви на значку" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Про програму" diff --git a/safeeyes/config/locale/uz_Latn/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/uz_Latn/LC_MESSAGES/safeeyes.po index 2136552..3e31d41 100644 --- a/safeeyes/config/locale/uz_Latn/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/uz_Latn/LC_MESSAGES/safeeyes.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" +"Last-Translator: \n" "Language-Team: \n" +"Language: uz@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.0.6\n" -"Last-Translator: \n" "Plural-Forms: nplurals=1; plural=0;\n" -"Language: uz@latin\n" # Short break msgid "Tightly close your eyes" @@ -385,6 +385,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "" diff --git a/safeeyes/config/locale/vi/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/vi/LC_MESSAGES/safeeyes.po index 90bbfda..4b263b8 100644 --- a/safeeyes/config/locale/vi/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/vi/LC_MESSAGES/safeeyes.po @@ -392,6 +392,10 @@ msgstr "Hiện biểu tượng ở khu vực thông báo" msgid "Show next break time in tray icon" msgstr "Hiện thời gian nghỉ tiếp theo ở biểu tượng khay" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "Giới thiệu" diff --git a/safeeyes/config/locale/zh_CN/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/zh_CN/LC_MESSAGES/safeeyes.po index 79e1a34..164ad0f 100644 --- a/safeeyes/config/locale/zh_CN/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/zh_CN/LC_MESSAGES/safeeyes.po @@ -388,6 +388,10 @@ msgstr "在通知区域显示一个托盘图标" msgid "Show next break time in tray icon" msgstr "在托盘图标上显示下次休息的时间" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "关于" diff --git a/safeeyes/config/locale/zh_TW/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/zh_TW/LC_MESSAGES/safeeyes.po index 1f34345..52bbf2c 100644 --- a/safeeyes/config/locale/zh_TW/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/zh_TW/LC_MESSAGES/safeeyes.po @@ -386,6 +386,10 @@ msgstr "" msgid "Show next break time in tray icon" msgstr "" +#: plugins/trayicon +msgid "Allow disabling Safe Eyes" +msgstr "" + #: plugins/trayicon msgid "About" msgstr "" diff --git a/safeeyes/config/safeeyes.json b/safeeyes/config/safeeyes.json index 5c03016..ae82320 100644 --- a/safeeyes/config/safeeyes.json +++ b/safeeyes/config/safeeyes.json @@ -63,17 +63,19 @@ { "id": "audiblealert", "enabled": true, - "version": "0.0.2", + "version": "0.0.3", "settings": { - "pre_break_alert": true + "pre_break_alert": true, + "post_break_alert": true } }, { "id": "trayicon", "enabled": true, - "version": "0.0.1", + "version": "0.0.3", "settings": { "show_time_in_tray": false, + "allow_disabling": true, "disable_options": [{ "time": 30, "unit": "minute" @@ -96,9 +98,11 @@ { "id": "smartpause", "enabled": true, - "version": "0.0.1", + "version": "0.0.3", "settings": { - "idle_time": 3 + "idle_time": 5, + "interpret_idle_as_break": false, + "postpone_if_active": false } }, { diff --git a/safeeyes/plugins/smartpause/config.json b/safeeyes/plugins/smartpause/config.json index fbefb56..33f27f0 100644 --- a/safeeyes/plugins/smartpause/config.json +++ b/safeeyes/plugins/smartpause/config.json @@ -16,7 +16,7 @@ "id": "idle_time", "label": "Minimum idle time to pause Safe Eyes (in seconds)", "type": "INT", - "default": 60, + "default": 5, "max": 3600, "min": 5 }, diff --git a/safeeyes/plugins/trayicon/config.json b/safeeyes/plugins/trayicon/config.json index 5be28e1..28d1b35 100644 --- a/safeeyes/plugins/trayicon/config.json +++ b/safeeyes/plugins/trayicon/config.json @@ -2,7 +2,7 @@ "meta": { "name": "Tray Icon", "description": "Show a tray icon in the notification area", - "version": "0.0.1" + "version": "0.0.3" }, "dependencies": { "python_modules": [], @@ -18,6 +18,12 @@ "type": "BOOL", "default": false }, + { + "id": "allow_disabling", + "label": "Allow disabling Safe Eyes", + "type": "BOOL", + "default": true + }, { "id": "disable_options", "label": "Disable options", diff --git a/safeeyes/plugins/trayicon/plugin.py b/safeeyes/plugins/trayicon/plugin.py index 4c16909..6552421 100644 --- a/safeeyes/plugins/trayicon/plugin.py +++ b/safeeyes/plugins/trayicon/plugin.py @@ -56,6 +56,7 @@ class TrayIcon(object): self.wakeup_time = None self.idle_condition = threading.Condition() self.lock = threading.Lock() + self.allow_disabling = plugin_config['allow_disabling'] # Construct the tray icon self.indicator = appindicator.Indicator.new( @@ -151,6 +152,11 @@ class TrayIcon(object): self.menu.append(self.item_quit) self.menu.show_all() + self.item_enable.set_visible(self.allow_disabling) + self.item_disable.set_visible(self.allow_disabling) + self.item_quit.set_visible(self.allow_disabling) + self.item_quit.set_visible(self.allow_disabling) + self.indicator.set_menu(self.menu) def initialize(self, plugin_config): @@ -159,6 +165,11 @@ class TrayIcon(object): """ self.plugin_config = plugin_config self.set_labels() + self.allow_disabling = plugin_config['allow_disabling'] + self.item_enable.set_visible(self.allow_disabling) + self.item_disable.set_visible(self.allow_disabling) + self.item_quit.set_visible(self.allow_disabling) + self.item_quit.set_visible(self.allow_disabling) def set_labels(self): """ diff --git a/update-po.sh b/update-po.sh index 9e04d07..bf6b8c2 100755 --- a/update-po.sh +++ b/update-po.sh @@ -1,7 +1,7 @@ #!/bin/bash for filename in safeeyes/config/locale/*/LC_MESSAGES/safeeyes.po; do echo "$filename" - msgmerge -U "$filename" safeeyes/config/locale/safeeyes.pot + msgmerge -U -N "$filename" safeeyes/config/locale/safeeyes.pot if [ -f "$filename~" ] ; then rm "$filename~" fi