Can't make gnome-screenshot to copy selected area to clipboard on Fedora 32 - screenshot

I want to be able to screenshot selected area and copy it to clipboard.
I try:
gnome-screenshot -a -c
It lets me select the area, but afterwards nothing is copied to clipboard.
I'm using Fedora 32

Related

Shorten a text into one word in Jira

I summarize a lot of data in Jira often, and need to provide a CML (command line) to each line in the table I create.
The CML is long, meaningless, has spaces in it and is only used to copy-paste into a Linux shell for running a script.
What I do today is write up a table in the description and then open a comment and repeat every line with a CML below it. Primitive....
I would like to add to the table in the description a one word link that when clicked on, copies the text to the clipboard.
I converted the CML into a link by doing this: [OneWord|#CML]] and indeed the long CML was replaced with OneWord.
I hoped that when I right-clicked on it and selected "Copy link address" it would copy the CML to the clipboard.
What actually happend is that it copied to the clipboard also the Jira URL and replaces every space with %20.
So for example if the CML is:
abc -j xyz -c efg.jp
What i get is:
https://jira.blabla/blabla/bla#abc%20-j%20xyz%20-c%20efg.jp
I would appreciate any help possible.

Google Colab: Run all cells until the current one

I would like to know how to run all cells (from the beginning of the notebook) and stop at the cell that's selected (do not want to run ALL cells..) on Google-Colab.
Is this possible?
Yes, it is possible.
Just select the cell and click on Runtime > Run before in the toolbar at the top of the notebook. Runtime > Run before runs all the cells from the beginning of the notebook until the selected cell (not included).
Another way is to select all the cells you want to run and click on Runtime > Run selection.
Hope it helps!
To run all cells above you can use this shortcut: Ctrl + F8.
Or manually: Runtime > Run before.

How do I set WSL console to print tabs instead of spaces (and copy tabs)?

Printing anything with a tab in WSL prints a series of spaces instead of a tab. When I want to copy and paste these lines, obviously spaces are copied, so I lose a lot of formatting.
I've tried using CMD.exe, PowerShell, and MobaXTerm, but in every case I can't seem to print a tab.
echo -e "Col1\tCol2\tCol3 and spaces"
I expect that tab characters should be output and copyable, but the tabs are converted to spaces. Gnome-Terminal in Ubuntu handles this just fine, but every option in Windows 10 / WSL seems to fail.

Mono Keepass2 Bugs / Errors in Entering Master Password via Paste or Using Backspace

I repro'd this easily with Ubuntu 12.04 Keepass 2.18. I created a new file and saved to the desktop. Set master password as "test". When I close and reopen the same kdbx file, if I type in "text", works fine. If I hit backspace after the last "t" and then retype "t", then hit "ok" I get the keyfile error, even though no keyfile is set and the password should be identical.
In Keepass2 on Ubuntu 12.04 I can NOT copy/paste into the Master Password field when first opening a database file if the copied text includes a symbol. When I paste a symbol characters like the degree symbol, °, it does not paste. Other characters seem to paste fine. The paste function appears in a rmb menu but when I do it nothing seems to happen? What's wrong?
UPDATE
I should note that on pasting passwords into new Keepass2 entries, I also see errant/spurious characters inserted (for example small rectangles). Seems like this may be related. Not sure it will effect most people since the password still pastes ok (paste omits the spurious characters in text fields), but perhaps it may affect other mono password fields used in Ubuntu. Obviously can also be confusing to the user.
create new entry
copy paste a password into password field
save/close/reopen entry
show password
small rectangles appended on end of password
I had the same problem with buggy password characters when using Mono.
Keepassx works better on Linux, it's cross platform and doesn't need Mono.
apt-get install keepassx

To run Sed to Screen's clipboard in Screen's command-mode

I have a copy in Screen's clipboard which contains the word Masi aften.
I would like to replace it with Bond effectively such that I edit the clipboard directly in Screen's command-mode. I know that I could save the clipboard to /tmp and run the replacement there in Vim, but I want to learn Screen.
I run as I have my data in Screen's clipboard
Ctrl-A : sed s/Masi/Bond/ | [Screen's clipboard] /// I do not know how to refer to Screen's clipboard by a command other that C-A ]
I get
unknown command sed
How can you run a command to Screen's clipboard in Screen's command mode?
I don't think screen has any way of running commands on the paste buffer.
One way to do it is to make a bind to save the paste buffer and open a new window in screen that runs a script to modify the buffer. Then make another bind to reload the modified buffer from disk and paste (this can be bound over the normal paste bind).
Add this to screenrc (changing paths):
bind -c screensed s eval "writebuf /pathtoscript/screensed.clipboard" "screen sh /pathtoscript/screensed.sh"
bind -c screensed p eval "readbuf /pathtoscript/screensed.clipboard" "paste ."
bind , command -c screensed
Make a shell script somewhere:
#!/usr/bin/env sh
echo "Enter sed script: "
read sedcommand
sed -i ${sedcommand} /pathtoscript/screensed.clipboard
echo "(Enter to return)"
read something
"ctrl-a , s" in screen will dump the clipboard and make a new window for the sed command to be entered. "ctrl-a , p" will read the clipboard and paste. The pause at the end of the script is to show any errors sed might give.