From 06b72f50ce15a5e5bcf4f2c7653e092351ea96c0 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 25 Jan 2021 19:46:37 +0100 Subject: Add keyboard indicator --- ayatana-settings | 10 + data/ayatana-settings/ayatana-settings.glade | 580 +++++++++++++++------------ po/ayatana-settings.pot | 63 +-- 3 files changed, 361 insertions(+), 292 deletions(-) diff --git a/ayatana-settings b/ayatana-settings index dde807e..a8ea538 100755 --- a/ayatana-settings +++ b/ayatana-settings @@ -157,6 +157,16 @@ class AyatanaSettings: self.pLabelNotifications.set_sensitive(False) + # Keyboard + if pathlib.Path('/etc/xdg/autostart/ayatana-indicator-keyboard.desktop').exists(): + + bEnabled = self.isEnabled('keyboard') + self.pCheckButtonKeyboardEnable.set_active(bEnabled) + + else: + + self.pLabelKeyboard.set_sensitive(False) + self.bInit = True Gtk.main() diff --git a/data/ayatana-settings/ayatana-settings.glade b/data/ayatana-settings/ayatana-settings.glade index 346dc8d..7b6d0ad 100644 --- a/data/ayatana-settings/ayatana-settings.glade +++ b/data/ayatana-settings/ayatana-settings.glade @@ -1,7 +1,7 @@ - + - + @@ -17,207 +17,207 @@ 1 10 - 1 - 1 + 1 + 1 True - False - 5 - list-add + False + 5 + list-add True - False - 5 - list-remove + False + 5 + list-remove - 640 - 480 - False + 640 + 480 + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - center-always - True + center-always True - False - 10 - 10 - 10 - 10 + False + 10 + 10 + 10 + 10 True True vertical True - True + True True True - left + left + True - False - 10 - 10 - 10 - 10 + False + 10 + 10 + 10 + 10 True True - 10 - 10 + 10 + 10 True - True + True - 1 - 0 + 1 + 0 True - True + True - 1 - 1 + 1 + 1 True - True + True - 1 - 2 + 1 + 2 True - True + True - 1 - 3 + 1 + 3 True - True + True - 1 - 4 + 1 + 4 True - True + True - 1 - 5 + 1 + 5 True - False + False end True Show full user name on the panel - 0 - 0 + 0 + 0 True - False + False end True Remove the Log Out item from the menu - 0 - 1 + 0 + 1 True - False + False end True Suppress the Log Out, Restart and Shut Down confirmation - 0 - 2 + 0 + 2 True - False + False end True Remove the Restart item from the menu - 0 - 3 + 0 + 3 True - False + False end True Remove the Shut Down item from the menu - 0 - 4 + 0 + 4 True - False + False end True Show the user list in the menu - 0 - 5 + 0 + 5 True - False + False end True - 0 - 6 + 0 + 6 @@ -225,17 +225,17 @@ Enable this indicator on login session True - True - False + True + False end True True - False + False - 0 - 6 + 0 + 6 2 @@ -244,186 +244,187 @@ True - False + False True Session 0 - False + False + True - False - 10 - 10 - 10 - 10 + False + 10 + 10 + 10 + 10 True True - 10 - 10 + 10 + 10 True - False + False end True Show the number of seconds on the panel - 0 - 3 + 0 + 3 True - False + False end True Show the calendar in the menu - 0 - 4 + 0 + 4 True - False + False end True Show week numbers in the calendar - 0 - 5 + 0 + 5 True - False + False end True Show events in the menu - 0 - 6 + 0 + 6 True - True + True - 1 - 0 + 1 + 0 True - True + True - 1 - 1 + 1 + 1 True - True + True - 1 - 2 + 1 + 2 True - True + True - 1 - 3 + 1 + 3 True - True + True - 1 - 4 + 1 + 4 True - True + True - 1 - 5 + 1 + 5 True - True + True - 1 - 6 + 1 + 6 True - False + False end True Show the year on the panel - 0 - 0 + 0 + 0 True - False + False end True Show the day of the week on the panel - 0 - 2 + 0 + 2 True - False + False end True Show the month and date on the panel - 0 - 1 + 0 + 1 @@ -431,17 +432,17 @@ Enable this indicator on login datetime True - True - False + True + False end True True - False + False - 0 - 7 + 0 + 7 2 @@ -453,49 +454,50 @@ True - False + False True Date and Time 0 1 - False + False + True - False - 10 - 10 - 10 - 10 + False + 10 + 10 + 10 + 10 True True - 10 - 10 + 10 + 10 True - False + False end True Allow setting the volume above 100% - 0 - 0 + 0 + 0 True - True + True - 1 - 0 + 1 + 0 @@ -503,17 +505,17 @@ Enable this indicator on login sound True - True - False + True + False end True True - False + False - 0 - 1 + 0 + 1 2 @@ -525,91 +527,92 @@ True - False + False True Sound 0 2 - False + False + True - False - 10 - 10 - 10 - 10 + False + 10 + 10 + 10 + 10 True True - 10 - 10 + 10 + 10 Enable this indicator on login power True - True - False + True + False end True True - False + False - 0 - 2 + 0 + 2 2 True - False + False end True Show percentage on the panel - 0 - 0 + 0 + 0 True - False + False end True Show time on the panel - 0 - 1 + 0 + 1 True - True + True - 1 - 0 + 1 + 0 True - True + True - 1 - 1 + 1 + 1 @@ -620,44 +623,45 @@ True - False + False True Power 0 3 - False + False + True - False - 10 - 10 - 10 - 10 + False + 10 + 10 + 10 + 10 True True - 10 - 10 + 10 + 10 Enable this indicator on login messages True - True - False + True + False end True True - False + False - 0 - 0 + 0 + 0 2 @@ -669,44 +673,45 @@ True - False + False True Messages 0 4 - False + False + True - False - 10 - 10 - 10 - 10 + False + 10 + 10 + 10 + 10 True True - 10 - 10 + 10 + 10 Enable this indicator on login bluetooth True - True - False + True + False end True True - False + False - 0 - 0 + 0 + 0 2 @@ -718,122 +723,124 @@ True - False + False True Bluetooth 0 5 - False + False + True - False - 10 - 10 - 10 - 10 + False + 10 + 10 + 10 + 10 True True - 10 - 10 + 10 + 10 True - False + False end True Maximum number of visible items - 0 - 0 + 0 + 0 True - False + False end True Discard notifications by application name - 0 - 1 + 0 + 1 True - True - 2 - 2 - 2 - False - number + True + 2 + 2 + 2 + False + number adjustmentNotificationsMaxItems - True + True True - 1 - 0 + 1 + 0 + True - False - 5 + False + 5 True - True + True - 0 - 0 + 0 + 0 Add True - True - True + True + True imageAdd - 1 - 0 + 1 + 0 Remove True - True - True + True + True imageRemove - 2 - 0 + 2 + 0 - 1 - 2 + 1 + 2 @@ -841,36 +848,36 @@ Enable this indicator on login notifications True - True - False + True + False end True True - False + False - 0 - 3 + 0 + 3 2 True - True - in - 200 - True + True + in + 200 + True True - True + True ListStoreNotificationsFilters - False - False - True - False + False + False + True + False @@ -890,8 +897,8 @@ - 1 - 1 + 1 + 1 @@ -905,14 +912,64 @@ True - False + False True Notifications 0 6 - False + False + + + + + + True + False + 10 + 10 + 10 + 10 + True + True + 10 + 10 + + + Enable this indicator on login + keyboard + True + True + False + end + True + True + False + + + + 0 + 0 + 2 + + + + + 7 + + + + + True + False + True + Keyboard + 0 + + + 7 + False @@ -924,8 +981,5 @@ - - - diff --git a/po/ayatana-settings.pot b/po/ayatana-settings.pot index a92b604..9f557ac 100644 --- a/po/ayatana-settings.pot +++ b/po/ayatana-settings.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: ayatana-settings 20.11.09.2\n" +"Project-Id-Version: ayatana-settings 21.1.25\n" "Report-Msgid-Bugs-To: https://github.com/AyatanaIndicators/ayatana-settings/issues\n" -"POT-Creation-Date: 2020-11-10 14:01+0100\n" +"POT-Creation-Date: 2021-01-25 19:21+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -42,12 +42,13 @@ msgid "Show the user list in the menu" msgstr "" #: data/ayatana-settings/ayatana-settings.glade:225 -#: data/ayatana-settings/ayatana-settings.glade:431 -#: data/ayatana-settings/ayatana-settings.glade:503 -#: data/ayatana-settings/ayatana-settings.glade:552 -#: data/ayatana-settings/ayatana-settings.glade:647 -#: data/ayatana-settings/ayatana-settings.glade:696 -#: data/ayatana-settings/ayatana-settings.glade:841 +#: data/ayatana-settings/ayatana-settings.glade:432 +#: data/ayatana-settings/ayatana-settings.glade:505 +#: data/ayatana-settings/ayatana-settings.glade:555 +#: data/ayatana-settings/ayatana-settings.glade:651 +#: data/ayatana-settings/ayatana-settings.glade:701 +#: data/ayatana-settings/ayatana-settings.glade:848 +#: data/ayatana-settings/ayatana-settings.glade:940 msgid "Enable this indicator on login" msgstr "" @@ -55,90 +56,94 @@ msgstr "" msgid "Session" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:274 +#: data/ayatana-settings/ayatana-settings.glade:275 msgid "Show the number of seconds on the panel" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:287 +#: data/ayatana-settings/ayatana-settings.glade:288 msgid "Show the calendar in the menu" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:300 +#: data/ayatana-settings/ayatana-settings.glade:301 msgid "Show week numbers in the calendar" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:313 +#: data/ayatana-settings/ayatana-settings.glade:314 msgid "Show events in the menu" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:396 +#: data/ayatana-settings/ayatana-settings.glade:397 msgid "Show the year on the panel" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:409 +#: data/ayatana-settings/ayatana-settings.glade:410 msgid "Show the day of the week on the panel" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:422 +#: data/ayatana-settings/ayatana-settings.glade:423 msgid "Show the month and date on the panel" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:458 +#: data/ayatana-settings/ayatana-settings.glade:459 msgid "Date and Time" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:484 +#: data/ayatana-settings/ayatana-settings.glade:486 msgid "Allow setting the volume above 100%" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:530 +#: data/ayatana-settings/ayatana-settings.glade:532 msgid "Sound" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:575 +#: data/ayatana-settings/ayatana-settings.glade:578 msgid "Show percentage on the panel" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:588 +#: data/ayatana-settings/ayatana-settings.glade:591 msgid "Show time on the panel" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:625 +#: data/ayatana-settings/ayatana-settings.glade:628 msgid "Power" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:674 +#: data/ayatana-settings/ayatana-settings.glade:678 msgid "Messages" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:723 +#: data/ayatana-settings/ayatana-settings.glade:728 msgid "Bluetooth" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:749 +#: data/ayatana-settings/ayatana-settings.glade:755 msgid "Maximum number of visible items" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:762 +#: data/ayatana-settings/ayatana-settings.glade:768 msgid "Discard notifications by application name" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:807 +#: data/ayatana-settings/ayatana-settings.glade:814 msgid "Add" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:821 +#: data/ayatana-settings/ayatana-settings.glade:828 msgid "Remove" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:880 +#: data/ayatana-settings/ayatana-settings.glade:887 msgid "column" msgstr "" -#: data/ayatana-settings/ayatana-settings.glade:910 +#: data/ayatana-settings/ayatana-settings.glade:917 msgid "Notifications" msgstr "" +#: data/ayatana-settings/ayatana-settings.glade:967 +msgid "Keyboard" +msgstr "" + #: data/applications/ayatana-settings.desktop.in:3 msgid "Indicators" msgstr "" -- cgit v1.2.3