It's been years since I had to admin Windows servers, but I was quite impressed with the number of MS products where the install and configuration tools would output the Powershell commands to carry out the changes you'd asked for. It made it quite a lot easier to automate. I'd love to see that paradigm catch on more widely, with the GUI and CLI having the same functionality and the GUI giving you the commands to run.
What kind of prompt does your company 2FA provide? Using openconnect with networkmangler, I get a pop up to input my pin+totp. I haven't done the script way in the last few years, but the connection script is plain shell and I was able to handle the 2FA from there too
It's some time ago I dug deeper on what was happening, but openconnect was getting a different response from the server than it expected and it just failed because of that.
I use a little oneliner with tofi (rofi/wofi would also work) to select the current output and avoid pavucontrol. It's mapped to a sway binding but would probably work in any wm/de:
pactl set-default-sink $(pactl list short sinks |awk '{print $2}' |tofi $tofi_args)
I'm using pipewire so the functionality of pactl is actually provided through pipewire-pulse I think
Does set-default-sink change an already current stream? Or do you need move-sink-input.
I've looked at the manpages but was a bit overwhelmed and didn't try to make my own script. Your solution gives me motivation to do so. I also use sway and pipewire. Though I use fuzzel for my launcher.
I love programs like freecad despite the really hard/unintuitive gui.
95% of all the modelling i need to do (as an amateur) can be done easily in a python script.
The finishing touches like adding filets and chamfers are the annoying part were gui is easier, due to the way edges are referenced.
Likewise at work, we have to produce a lot of regular reports in excel.
All done via python / sql.
I want to preserve and archive information I used because it's a reflection of the things I did, learned and studied throughout life.
Then my use case are:
Orientation about "events": places to visit on daytrips or holidays (musea, nature, parks, campsites) and looking for practical information and background as well.
Gather a "dossier": info to help make a decision (buying expensive things, how to do home improvement etc)
Building a personal knowledge database: interesting articles and blogs.
My current workflow:
Browse
Bookmark extensively
Download pdf or other content (maps, routes, images) when provided.
Open bookmarks.
Fireshot every webpage to pdf and png
Save everything with a consequent filename (YYYYMMDD - Source - Title)
I would like to automate the last 3 steps of my workflow.
This one doesn't actually seem to load new network requests, but the way the scrolling works seems to break any other screenshot application I've tried.
Can confirm, tested it with Signal forum, also discourse.
Fireshot stops at the end of the current loaded messages (20 of 94) and doesnt scroll further by itself.