On 07/06/18 19:46, Patrick O'Callaghan wrote: > I found a Python script (I think on Github, but I can't seem to locate > the URL or the original author) that saves or restores the desktop > location of each open Firefox window*. It does this by calling > wmctrl(1) and storing/loading the location as a JSON data structure. > The data structure is indexed by the window title, but Firefox changes > the title based on the currently active tab in each window. Thus the > saved data will depend on which tab happens to be active in each > window. > > The script already works when called manually but I just want to > automate the process when I log in or out of KDE. > > The Save script has to run *after* Plasma starts and all my windows are > already created. According to the KDE manual, this seems to rule out > Autostart. Not really. I had a kvm guest where I needed to run xrandr and autostart didn't work for me. That is until I made the first line of the script "sleep 15". > > The Restore script should run just before killing any running windows. > It should also work even if I reboot directly from the KDE Leave tab > without logging out. > > Is this possible? Don't know about that part. -- Conjecture is just a conclusion based on incomplete information. It isn't a fact.
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ kde mailing list -- kde@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kde-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kde@xxxxxxxxxxxxxxxxxxxxxxx/message/J7OUB7YQAWSOWICGV76FPMTPB65SB5L2/