add xsel and log output to log file

This commit is contained in:
Jorge Morante 2020-12-27 20:24:15 +01:00
parent ab6aca59b7
commit 7dcae54cd2
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class Fingers::ActionRunner
return unless final_shell_command
`tmux run-shell -b "#{final_shell_command} &> /dev/null"`
`tmux run-shell -b "#{final_shell_command} &> #{Fingers::Dirs::LOG_PATH}"`
end
private
@ -82,6 +82,8 @@ class Fingers::ActionRunner
'wl-copy'
elsif program_exists?('xclip')
'xclip -selection clipboard'
elsif program_exists?('xsel')
'xsel -i --clipboard'
elsif program_exists?('putclip')
'putclip'
end

View File

@ -20,7 +20,6 @@ class Fingers::View
end
def run_action
# TODO: handle exit_message, no need to run action
Fingers::ActionRunner.new(
hint: state.input,
modifier: state.modifier,