If a q us on board QUA.
Just a cat wandering about Tamriel.
If a q us on board QUA.
You could write a simple python script using datetime
and pyperclip
. Datetime would supply the date format and pyperclip to copy that to your clipboard. You could setup a key binding to call the script then [
to paste. ]
I believe all linix distros have python installed OTB.
There are probably a bash solution but my bash is rubbish.
Edit:
The bash solution that has been provided is the best option IMO. I just thought I should provide the code for my solution so you have options. This python script is easily extendable / customizable. All this depends in you installing the python module pyperclip
. datetime
should be part if the standard python library so you dont have to install it.
installing pyperclip
with pip
.
pip install pyperclip
The script:
#!/usr/bin/env python3
"""A simple script to copy a formatted datetime string to the users clipboard"""
import datetime
import pyperclip
def clipboard_timestamp(initials) -> None:
"""Function to create a formatted timestamp string to users clipboard.
Arguments:
initials: Uses the provided string during formatting of the timestamp."""
time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
pyperclip.copy(f"{initials} {time}")
if __name__ == "__main__":
clipboard_timestamp('ABC')
The above script also adds the hours minutes and seconds to the timestamp. If not needed remove the %H:%M:%S
. Dont forget to edit anything that you want like the 'ABC'
near the end.
Save script somewhere. I usually save personal scripts to ~/.local/bin
so they are out of the way. I used the name clipboard_timestamp.py
Doesn’t really matter as long as you remember the name. Next you have 2 options. You can make the script executable using chmod a+x clipboard_timestamp.py
. If you dont want to take this step you will have to tell the shortcut that python is executing the script by prefacing the script’s full path with python
like so python ~/.local/bin/clipboard_timestamp.py
If you made the script executable you just use ~/.local/bin/clipboard_timestamp.py
.
I use KDE but your system should be similar-ish. in your desktop’s setting’s search for keyboard
and you should see something that says something like shortcuts
. Add New
-> Command or Script
. Point this to your newly saved python script /.local/bin/clipboard_timestamp.py
. Then you choose the keystroke combination.
You might want to file a bug report so they can grab some info from you that could help an updater get pushed sooner and help others.
Very glad you got up and running. Hopefully they will get a better update pushed out soon.
Hay if the restore works might hold off on doing an update for a few days just too see if kubuntu had pushed a bad update. If they did they did they should fix it pretty quickly when they get a bunch of people with broken systems.
I haven’t used timeshift in at least three years so Im going to give you this instead of relying on my possibly faulty memory.
https://itsfoss.com/backup-restore-linux-timeshift/
Command line instructions
https://dev.to/rahedmir/how-to-use-timeshift-from-command-line-in-linux-1l9b
Yes try to do that first. First research how to restore from timeshift backup so you do it properly.
Does ethernet work?
Did you chroot and reupdate? You might want to reuse timeshift to roll back before doing so.
Could also try going back a couple timeshifts ago.
Have you tried making sure network manager is enabled and started?
sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager
From a live USB do you have networking?
Sounds like a beautiful dream.
Skyrim’s for the nords, so they say. This one sees many others in Skyrim. So maybe not.
Like sweet sweet moonsugar.
I herd they are remastering it. Hope so.
Me too. Such a great series.
Soul reaver
Grand teresmo
Rayman 2
I think your best bet is https://xdaforums.com/.
Trump is an enemy of democracy. An enemy of all free peoples. A clear and present danger to us all.
They took their oath to defend the constitution. Clearly trump is the enemy from within.
“Unhinged Orange Dictator Wannabe, Does Calm Reasonable Action” is not on my bingo card.