From 392b4061226c658a68bbabbec40f6e626d0db1fe Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 17 Sep 2021 23:52:12 +0200 Subject: Add new languages/variants --- contrib/ayatana-indicator-keyboard-icon-generator.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'contrib/ayatana-indicator-keyboard-icon-generator.py') diff --git a/contrib/ayatana-indicator-keyboard-icon-generator.py b/contrib/ayatana-indicator-keyboard-icon-generator.py index 0316d7f4..586c8229 100755 --- a/contrib/ayatana-indicator-keyboard-icon-generator.py +++ b/contrib/ayatana-indicator-keyboard-icon-generator.py @@ -168,7 +168,9 @@ m_lLanguages = [ 'Wo', #Wolof 'Ya', #Yakut 'Yo', #Yoruba -'00' #Unknown +'emoji', #Emoji +'custom', #Custom +'00' #Unknown ] def printHelp(): @@ -253,6 +255,14 @@ if __name__ == '__main__': sLanguage = '?' + elif sLanguage == 'emoji': + + sLanguage = '😐' + + elif sLanguage == 'custom': + + sLanguage = '#' + pLayout.set_text(sLanguage, -1) nLayoutWidth, nLayoutHeight = pLayout.get_size() nBaseline = pLayout.get_baseline() -- cgit v1.2.3