aboutsummaryrefslogtreecommitdiff
path: root/ayatana-settings
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-01-25 19:46:37 +0100
committerRobert Tari <robert@tari.in>2021-01-25 19:46:37 +0100
commit06b72f50ce15a5e5bcf4f2c7653e092351ea96c0 (patch)
treee6f226e9e25e06deb27537dab68649238332cde9 /ayatana-settings
parent260678337395b2edd7d0be6091da9fa94fae2279 (diff)
downloadayatana-settings-06b72f50ce15a5e5bcf4f2c7653e092351ea96c0.tar.gz
ayatana-settings-06b72f50ce15a5e5bcf4f2c7653e092351ea96c0.tar.bz2
ayatana-settings-06b72f50ce15a5e5bcf4f2c7653e092351ea96c0.zip
Add keyboard indicator
Diffstat (limited to 'ayatana-settings')
-rwxr-xr-xayatana-settings10
1 files changed, 10 insertions, 0 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()