add xsel and log output to log file
This commit is contained in:
parent
ab6aca59b7
commit
7dcae54cd2
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue