Considering your other solution parts include simcard dongle, maybe look at KDE Connect to send/receive sms on your linux machine?
https://community.kde.org/KDEConnect#Desktop_SMS_Messaging_App

Android
DROID DOES
Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
Rules
1. All posts must be relevant to Android devices/operating system.
2. Posts cannot be illegal or NSFW material.
3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.
4. Non-whitelisted bots will be banned.
5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.
6. Memes are not allowed to be posts, but are allowed in the comments.
7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.
8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.
Community Resources:
We are Android girls*,
In our Lemmy.world.
The back is plastic,
It's fantastic.
*Well, not just girls: people of all gender identities are welcomed here.
Our Partner Communities:
Yeah, that's what I'm doing. I'm running a de-Googled Android (/e/OS on a Fairphone 6) and using the KDE Connect app on there to sync up with my desktop (via GSConnect in NixOS since I'm running GNOME, though KDE Connect would be preferable if you're running Plasma). It's not perfect, and I've run into a few bugs (especially with regard to group messages), but it's surprisingly reliable otherwise.
Should be doable with Termux:
- https://f-droid.org/packages/com.termux (the terminal emulator itself);
- https://f-droid.org/packages/com.termux.api (for
termux-sms-listandtermux-sms-sendcommands); - https://f-droid.org/packages/com.termux.boot (to make the script launch automatically after reboots; don't forget a wake lock to keep the process alive).
termux-sms-list returns messages in JSON, which is easy enough to handle with, say, jq in bash or json in python. The script itself can be a simple loop that fetches the latest messages every few minutes, filters for unprocessed ones from whitelisted numbers and calls termux-sms-send.
Maybe it'd make sense to daemonise the script and launch it via sv.
But the Termux app weighs quite a bit itself.
I don't know but I would try Tasker if it were me.
Wow, I was looking for a project idea and if this is open I'd love to fill in the feature vacuum. I'll need to learn a bunch of stuff though.