mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main
commit
7d254f1b27
|
|
@ -137,14 +137,20 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
print(screenreader + ' is not a supported TTS system')
|
print(screenreader + ' is not a supported TTS system')
|
||||||
return
|
return
|
||||||
|
|
||||||
print('Running ' + screenreader + ' for ' + nickname + '@' + domain)
|
sayStr = 'Running ' + screenreader + ' for ' + nickname + '@' + domain
|
||||||
|
_sayCommand(sayStr, screenreader,
|
||||||
|
systemLanguage, espeak)
|
||||||
else:
|
else:
|
||||||
print('Running desktop notifications for ' + nickname + '@' + domain)
|
print('Running desktop notifications for ' + nickname + '@' + domain)
|
||||||
if notificationSounds:
|
if notificationSounds:
|
||||||
print('Notification sounds on')
|
sayStr = 'Notification sounds on'
|
||||||
else:
|
else:
|
||||||
print('Notification sounds off')
|
sayStr = 'Notification sounds off'
|
||||||
print('/q or /quit to exit')
|
_sayCommand(sayStr, screenreader,
|
||||||
|
systemLanguage, espeak)
|
||||||
|
sayStr = '/q or /quit to exit'
|
||||||
|
_sayCommand(sayStr, screenreader,
|
||||||
|
systemLanguage, espeak)
|
||||||
|
|
||||||
originalScreenReader = screenreader
|
originalScreenReader = screenreader
|
||||||
domainFull = getFullDomain(domain, port)
|
domainFull = getFullDomain(domain, port)
|
||||||
|
|
@ -295,6 +301,9 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
if keyPress.startswith('/'):
|
if keyPress.startswith('/'):
|
||||||
keyPress = keyPress[1:]
|
keyPress = keyPress[1:]
|
||||||
if keyPress == 'q' or keyPress == 'quit' or keyPress == 'exit':
|
if keyPress == 'q' or keyPress == 'quit' or keyPress == 'exit':
|
||||||
|
sayStr = 'Quit'
|
||||||
|
_sayCommand(sayStr, screenreader,
|
||||||
|
systemLanguage, espeak)
|
||||||
break
|
break
|
||||||
elif keyPress == 'sounds on' or keyPress == 'sound':
|
elif keyPress == 'sounds on' or keyPress == 'sound':
|
||||||
sayStr = 'Notification sounds on'
|
sayStr = 'Notification sounds on'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue