0

How can I select/copy sections of text (from the browser and also from an open editor) that automatically gets appended to a file?

Piping the contents of the clipboard will slow me down and I may as well paste it as I am doing now. The idea is to do nothing other than the copy operation (Ctrl+c) that would result in the selection being appended to the file of my choosing.

2 Answers2

0

I suggest that you try the current version of append_clipboard.py from https://gist.github.com/SergKolo/ff9defd9cef4e704a64be505f28fa3cd

The script was modified 6 hours after your comment regarding Notify 0.7 and appears to address your concerns.

Dont forget you need to have xclip installed as referenced in @Serg answer to How to only append to clipboard (but not overwrite current data)?

Elder Geek
  • 36,752
0

As Byte Commander explained in another thread, bash commands in custom shortcut key should be in single quotes and preceded by bash-c. Therefore to run the python script using a shortcut key, the command that worked for me was:

bash -c 'python ~/myscripts/test_python.py'

and the command to run a shell script using a shortcut key:

bash -c 'bash ~/myscripts/test.sh'