Greetings fellow Linux connoisseur,
I'd like to make a simple script for Hexchat. You see, it's still GTK2, and pretty much everything else I use is GTK3, so when I switch from a light to a dark theme once night time hits, all my applications change to dark, but Hexchat only half changes. Now to make Hexchat go full dark the way nature intended, I had to edit a copy of Hexchats color.conf file to make it dark themed all around. I also have another copy of that color.conf file, but edited for a light theme version. So essentially, I have to replace the light theme color.conf file with the dark theme color.conf file each time my theme changes from light to dark during sunrise and sunset, so long as I want to keep some consistency with my system.
The way I maintain this now is, I go to my backups folder where I keep copies of the light and dark themed Hexchat color.conf files that I edited and then I have to track down Hexchats .config folder deep within the hidden folders of the Nautilus realm, and I replace whatever the current color.conf file is at the time, with the theme I want to replace it with and badabing badaboom, once I close and reopen Hexchat, I've got the theme working and styling to be more system compliant, which by all accounts makes me one happy user.
My question really is does anyone know where to point me to make a script like this possible instead of me having to go into the folders each time and manually change it? It's not the worst thing in the world to manually change it, but if I can automate the process with a script that runs every night at 8:00PM or something, that would be more than ideal. Something like a script saying, hey at 8:00PM, file colors.conf located in home/Documents/Backups/Hexchat/dark-theme/colors.conf make a copy and replace colors.conf file located in home/.config/Hexchat and then another script at 8:00AM run automatically saying something similar, but going from a dark to light theme like, home/Documents/Backups/Hexchat/light-theme/colors.conf make a copy and replace colors.conf file located in home/.config/Hexchat
If anyone knows how to write a script like that, that would be perfect! If not no worries, if anyone could perhaps point me in the direction of an easy to understand tutorial that would help make this happen, I'd also appreciate that as well, thank you very much.