this post was submitted on 22 Jul 2024
86 points (94.8% liked)
Linux
48287 readers
619 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Any examples?
Just from the top of my head.
It seems to exist: https://www.gimp.org/tutorials/Basic_Batch/
There are many things you can do in the GIMP gui that can't be done programmatically :(
This is one reason I love FreeCAD. Everything done in the GUI is just a python call
For anyconnect: openconnect works perfectly, either as standalone script or via networkmangler.
For Excel there is a PowerShell module called Import-Excel that I use all the time.
I see, nice, but I'm on Linux, so perhaps I need to run power shell there ^^
If you don't want to use PowerShell in Linux, there's also nushell, which is another (non-POSIX) shell that can process Excel files
I forgot where I was posting. (I use both win and Linux pretty heavily.) I have pwsh, let me see if import-excel works on linux and report back.
Appears to work as well as it does on windows. I guess the only downside is learning powershell if you have no previous experience with it.
@jeena@piefed.jeena.net
Check out openconnect to connect to anyconnect VPNs
I did, doesn't work with our company setup with 2FA.
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.
pavucontrol. I switch between usb headset and my external speakers all the time. Continually going to this gui is kind of annoying.
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:
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.
Yeah, it changes without skipping a beat for me in pipewire, even in things like zoom/teams.
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.