Merge branch 'master' of github.com:chrys87/fenrir
This commit is contained in:
commit
19e59dcbd5
@ -99,14 +99,14 @@ KEY_FENRIR,KEY_SHIFT,KEY_S=remove_word_from_spell_check
|
|||||||
KEY_FENRIR,KEY_F2=forward_keypress
|
KEY_FENRIR,KEY_F2=forward_keypress
|
||||||
KEY_FENRIR,KEY_ALT,KEY_UP=inc_sound_volume
|
KEY_FENRIR,KEY_ALT,KEY_UP=inc_sound_volume
|
||||||
KEY_FENRIR,KEY_ALT,KEY_DOWN=dec_sound_volume
|
KEY_FENRIR,KEY_ALT,KEY_DOWN=dec_sound_volume
|
||||||
KEY_FENRIR,KEY_CTRL,KEY_SHIFT,KEY_C=clear_clipboard
|
#=clear_clipboard
|
||||||
KEY_FENRIR,KEY_HOME=first_clipboard
|
KEY_FENRIR,KEY_HOME=first_clipboard
|
||||||
KEY_FENRIR,KEY_END=last_clipboard
|
KEY_FENRIR,KEY_END=last_clipboard
|
||||||
KEY_FENRIR,KEY_PAGEUP=prev_clipboard
|
KEY_FENRIR,KEY_PAGEUP=prev_clipboard
|
||||||
KEY_FENRIR,KEY_PAGEDOWN=next_clipboard
|
KEY_FENRIR,KEY_PAGEDOWN=next_clipboard
|
||||||
KEY_FENRIR,KEY_SHIFT,KEY_C=curr_clipboard
|
KEY_FENRIR,KEY_SHIFT,KEY_C=curr_clipboard
|
||||||
KEY_FENRIR,KEY_C=copy_marked_to_clipboard
|
KEY_FENRIR,KEY_C=copy_marked_to_clipboard
|
||||||
KEY_FENRIR,KEY_CTRL,KEY_U=copy_last_echo_to_clipboard
|
KEY_FENRIR,KEY_CTRL,KEY_SHIFT,KEY_C=copy_last_echo_to_clipboard
|
||||||
KEY_FENRIR,KEY_V=paste_clipboard
|
KEY_FENRIR,KEY_V=paste_clipboard
|
||||||
KEY_FENRIR,KEY_F5=import_clipboard_from_file
|
KEY_FENRIR,KEY_F5=import_clipboard_from_file
|
||||||
KEY_FENRIR,KEY_F6=export_clipboard_to_file
|
KEY_FENRIR,KEY_F6=export_clipboard_to_file
|
||||||
|
@ -99,14 +99,14 @@ KEY_FENRIR,KEY_SHIFT,KEY_S=remove_word_from_spell_check
|
|||||||
KEY_FENRIR,KEY_F2=forward_keypress
|
KEY_FENRIR,KEY_F2=forward_keypress
|
||||||
KEY_FENRIR,KEY_ALT,KEY_UP=inc_sound_volume
|
KEY_FENRIR,KEY_ALT,KEY_UP=inc_sound_volume
|
||||||
KEY_FENRIR,KEY_ALT,KEY_DOWN=dec_sound_volume
|
KEY_FENRIR,KEY_ALT,KEY_DOWN=dec_sound_volume
|
||||||
KEY_FENRIR,KEY_CTRL,KEY_SHIFT,KEY_C=clear_clipboard
|
#=clear_clipboard
|
||||||
#=first_clipboard
|
#=first_clipboard
|
||||||
#=last_clipboard
|
#=last_clipboard
|
||||||
KEY_FENRIR,KEY_PAGEUP=prev_clipboard
|
KEY_FENRIR,KEY_PAGEUP=prev_clipboard
|
||||||
KEY_FENRIR,KEY_PAGEDOWN=next_clipboard
|
KEY_FENRIR,KEY_PAGEDOWN=next_clipboard
|
||||||
KEY_FENRIR,KEY_SHIFT,KEY_C=curr_clipboard
|
KEY_FENRIR,KEY_SHIFT,KEY_C=curr_clipboard
|
||||||
KEY_FENRIR,KEY_C=copy_marked_to_clipboard
|
KEY_FENRIR,KEY_C=copy_marked_to_clipboard
|
||||||
KEY_FENRIR,KEY_CTRL,KEY_U=copy_last_echo_to_clipboard
|
KEY_FENRIR,KEY_CTRL,KEY_SHIFT,KEY_C=copy_last_echo_to_clipboard
|
||||||
KEY_FENRIR,KEY_V=paste_clipboard
|
KEY_FENRIR,KEY_V=paste_clipboard
|
||||||
KEY_FENRIR,KEY_F5=import_clipboard_from_file
|
KEY_FENRIR,KEY_F5=import_clipboard_from_file
|
||||||
KEY_FENRIR,KEY_F6=export_clipboard_to_file
|
KEY_FENRIR,KEY_F6=export_clipboard_to_file
|
||||||
|
@ -20,7 +20,7 @@ class command():
|
|||||||
# Prefer review cursor over text cursor
|
# Prefer review cursor over text cursor
|
||||||
cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor()
|
cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor()
|
||||||
|
|
||||||
self.env['runtime']['outputManager'].presentText(_("line {0}, column {1}").format(cursorPos['y']+1, cursorPos['x']+1), interrupt=True)
|
self.env['runtime']['outputManager'].presentText(_("line {0}, column {1}, Terminal {2}").format(cursorPos['y']+1, cursorPos['x']+1, self.env['screen']['newTTY']), interrupt=True)
|
||||||
|
|
||||||
def setCallback(self, callback):
|
def setCallback(self, callback):
|
||||||
pass
|
pass
|
||||||
|
@ -28,7 +28,7 @@ class command():
|
|||||||
return
|
return
|
||||||
clipboard = self.env['runtime']['memoryManager'].getIndexListElement('clipboardHistory')
|
clipboard = self.env['runtime']['memoryManager'].getIndexListElement('clipboardHistory')
|
||||||
for display in range(10):
|
for display in range(10):
|
||||||
p = Popen('su ' + self.env['general']['currUser'] + ' -c "echo -n \\\"' + clipboard.replace('"','\\\\\\"') +'\\\" | xclip -d :' + str(display) + ' -selection c"' , stdout=PIPE, stderr=PIPE, shell=True)
|
p = Popen('su ' + self.env['general']['currUser'] + ' -c "cat << \\\"EOF\\\" | xclip -d :' + str(display) + ' -selection clipboard\n' + clipboard + '\nEOF\n"', stdout=PIPE, stderr=PIPE, shell=True)
|
||||||
stdout, stderr = p.communicate()
|
stdout, stderr = p.communicate()
|
||||||
self.env['runtime']['outputManager'].interruptOutput()
|
self.env['runtime']['outputManager'].interruptOutput()
|
||||||
#screenEncoding = self.env['runtime']['settingsManager'].getSetting('screen', 'encoding')
|
#screenEncoding = self.env['runtime']['settingsManager'].getSetting('screen', 'encoding')
|
||||||
|
@ -38,7 +38,7 @@ class fenrirManager():
|
|||||||
parser.add_argument('-o', '--options', metavar='SECTION#SETTING=VALUE;..', default='', help='Overwrite options in given settings file. Sections, settings and Values are cases sensitive')
|
parser.add_argument('-o', '--options', metavar='SECTION#SETTING=VALUE;..', default='', help='Overwrite options in given settings file. Sections, settings and Values are cases sensitive')
|
||||||
parser.add_argument('-d', '--debug', action='store_true', help='Turns on Debugmode')
|
parser.add_argument('-d', '--debug', action='store_true', help='Turns on Debugmode')
|
||||||
parser.add_argument('-p', '--print', action='store_true', help='Print debug messages on screen')
|
parser.add_argument('-p', '--print', action='store_true', help='Print debug messages on screen')
|
||||||
parser.add_argument('-e', '--emulated-pty', action='store_true', help=' se PTY emulation and escape sequences for input. Allows to use fenrir on the desktop, in a terminal for X or Wayland')
|
parser.add_argument('-e', '--emulated-pty', action='store_true', help='Use PTY emulation and escape sequences for input. Allows to use fenrir on the desktop, in a terminal for X or Wayland')
|
||||||
parser.add_argument('-E', '--emulated-evdev', action='store_true', help='Use PTY emulation and evdev for input (single instance)')
|
parser.add_argument('-E', '--emulated-evdev', action='store_true', help='Use PTY emulation and evdev for input (single instance)')
|
||||||
try:
|
try:
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
Loading…
Reference in New Issue
Block a user