make vmenu path configurable
This commit is contained in:
parent
20ff9e1296
commit
58208beb3a
@ -219,6 +219,9 @@ enabled=True
|
||||
inactiveTimeoutSec=120
|
||||
list=
|
||||
|
||||
[menu]
|
||||
vmenuPath=
|
||||
|
||||
[time]
|
||||
enabled=False
|
||||
presentTime=True
|
||||
|
@ -229,6 +229,9 @@ enabled=True
|
||||
inactiveTimeoutSec=120
|
||||
list=
|
||||
|
||||
[menu]
|
||||
vmenuPath=
|
||||
|
||||
[time]
|
||||
# automatic time anouncement
|
||||
enabled=False
|
||||
|
@ -229,6 +229,9 @@ enabled=True
|
||||
inactiveTimeoutSec=120
|
||||
list=
|
||||
|
||||
[menu]
|
||||
vmenuPath=
|
||||
|
||||
[time]
|
||||
# automatic time anouncement
|
||||
enabled=False
|
||||
|
@ -229,6 +229,9 @@ enabled=True
|
||||
inactiveTimeoutSec=120
|
||||
list=
|
||||
|
||||
[menu]
|
||||
vmenuPath=
|
||||
|
||||
[time]
|
||||
# automatic time anouncement
|
||||
enabled=False
|
||||
|
@ -230,6 +230,9 @@ enabled=True
|
||||
inactiveTimeoutSec=120
|
||||
list=
|
||||
|
||||
[menu]
|
||||
vmenuPath=
|
||||
|
||||
[time]
|
||||
# automatic time anouncement
|
||||
enabled=False
|
||||
|
@ -175,6 +175,9 @@ enabled=True
|
||||
inactiveTimeoutSec=120
|
||||
list=
|
||||
|
||||
[menu]
|
||||
vmenuPath=
|
||||
|
||||
[time]
|
||||
# automatic time anouncement
|
||||
enabled=False
|
||||
|
@ -229,6 +229,9 @@ enabled=True
|
||||
inactiveTimeoutSec=120
|
||||
list=
|
||||
|
||||
[menu]
|
||||
vmenuPath=
|
||||
|
||||
[time]
|
||||
# automatic time anouncement
|
||||
enabled=False
|
||||
|
@ -0,0 +1,25 @@
|
||||
#!/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Fenrir TTY screen reader
|
||||
# By Chrys, Storm Dragon, and contributers.
|
||||
|
||||
from fenrirscreenreader.core import debug
|
||||
|
||||
class command():
|
||||
def __init__(self):
|
||||
pass
|
||||
def initialize(self, environment):
|
||||
self.env = environment
|
||||
self.keyMakro = [[1, 'KEY_LEFTCTRL'], [1, 'KEY_G'], [0.05,'sleep'] ,[0, 'KEY_G'], [0, 'KEY_LEFTCTRL']]
|
||||
def shutdown(self):
|
||||
pass
|
||||
def getDescription(self):
|
||||
return 'No description found'
|
||||
def run(self):
|
||||
self.env['runtime']['inputManager'].sendKeys(self.keyMakro)
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
||||
|
||||
|
@ -99,6 +99,9 @@ settingsData = {
|
||||
'leaveReviewOnCursorChange': True,
|
||||
'leaveReviewOnScreenChange': True,
|
||||
},
|
||||
'menu':{
|
||||
'vmenuPath': '',
|
||||
},
|
||||
'promote':{
|
||||
'enabled': True,
|
||||
'inactiveTimeoutSec': 120,
|
||||
|
@ -21,7 +21,15 @@ class vmenuManager():
|
||||
self.lastSearchTime = time.time()
|
||||
def initialize(self, environment):
|
||||
self.env = environment
|
||||
# use default path
|
||||
self.defaultVMenuPath = fenrirPath+ "/commands/vmenu-profiles/" + self.env['runtime']['inputManager'].getShortcutType()
|
||||
# if there is no user configuration
|
||||
if self.env['runtime']['settingsManager'].getSetting('menu', 'vmenuPath') != '':
|
||||
self.defaultVMenuPath = self.env['runtime']['settingsManager'].getSetting('menu', 'vmenuPath')
|
||||
if not self.defaultVMenuPath.endswith('/'):
|
||||
self.defaultVMenuPath += '/'
|
||||
self.defaultVMenuPath += self.env['runtime']['inputManager'].getShortcutType()
|
||||
|
||||
self.createMenuTree()
|
||||
self.closeAfterAction = False
|
||||
def shutdown(self):
|
||||
|
Loading…
Reference in New Issue
Block a user