With crush I was able to make a small "DST notification" script on my new linux machine
I finally ditched windows and moved to linux (Zorin OS).
As a small test of what crush was capable of on system-wide stuff, I figured that I miss Windows notifying me about DST changes and always get whiplash when it happens and the hour seems off. They retired the feature a year or two ago.
The agent seems like it's able to run a lot more commands on Linux which is scary and definitely something to be careful about. I think the "Allow for session" perm on linux means it can run any command for this crush session without asking for perms - on my windows it didn't work like that, so something to be mindful of. If that happens close the session, make a new one and start over. Don't give it free reign over a live system.
It fetched my OS data with a command, saw that I was on zorin (ubuntu base) and got to work. However, at first it wanted to make a script that runs once an hour every day which is just overkill. Instead, I came up with a much simpler system: Run the script once, then it calls itself for the next year on Jan 1st.
Features:
minimal footprint: 200 line python script, only runs for 5 seconds once a year.
set and forget - run the script once and it calls itself for next jan 1st automatically
uses systemd to set up desktop notifications and next call
uses zdump to fetch DST dates for your timezone
full readme with instructions to remove the notifs entirely if you want to scrub the script from your system
config file to customize the notifications timer and exact messaging
Does it work though? Well, the components have been tested but not as a whole in real conditions and I don't want to change my system date just for this. So I'll only know for sure in March when I get the notifs.
This is why I'm not publishing it yet (it will be FOSS on my codeberg) but if you want an advance copy I can send you what I have so far and you can do what you like with it.
Anyway, pretty cool that we can make that type of stuff on our systems, it's exactly that kind of tinkering that I want to be able to do.
CriticalResist8 in crushagent
With crush I was able to make a small "DST notification" script on my new linux machine
I finally ditched windows and moved to linux (Zorin OS).
As a small test of what crush was capable of on system-wide stuff, I figured that I miss Windows notifying me about DST changes and always get whiplash when it happens and the hour seems off. They retired the feature a year or two ago.
The agent seems like it's able to run a lot more commands on Linux which is scary and definitely something to be careful about. I think the "Allow for session" perm on linux means it can run any command for this crush session without asking for perms - on my windows it didn't work like that, so something to be mindful of. If that happens close the session, make a new one and start over. Don't give it free reign over a live system.
It fetched my OS data with a command, saw that I was on zorin (ubuntu base) and got to work. However, at first it wanted to make a script that runs once an hour every day which is just overkill. Instead, I came up with a much simpler system: Run the script once, then it calls itself for the next year on Jan 1st.
Features:
Does it work though? Well, the components have been tested but not as a whole in real conditions and I don't want to change my system date just for this. So I'll only know for sure in March when I get the notifs.
This is why I'm not publishing it yet (it will be FOSS on my codeberg) but if you want an advance copy I can send you what I have so far and you can do what you like with it.
Anyway, pretty cool that we can make that type of stuff on our systems, it's exactly that kind of tinkering that I want to be able to do.