Setting a GTK Theme from Dark to Light
After setting up my latest theme based on the vimix-dark-amethyst on my i3-gaps I have grown to love it. That being said I prefer a light theme when it comes to writing in LibreOffice and Obsidian. I’m old school in the fact that I used microsoft word for school growing up and the white and bright theme is what my eyes prefer to use when writing more than a few sentences. For my normal writing, like what I am doing right now I use vim in a dark window with some transparency in urxvt. This works fine as I can focus on writing and not having to do to much back and forth with researching and whatnot. So I searched for ways to change the LibreOffice theme due to the dark background does not constrast well with the blank white sheet they present in front of you. After doing some searching I found a way to set the theme as it is launched. Here are the steps to do so:
cp /usr/share/applications/libreoffice-writer.desktop ~/.local/share/applications/
I then edited the libreoffice-writer.desktop file that I placed in my ~/.local/share/applications/ by replacing the part from below:
Exec=libreoffice --writer %U
with
Exec=env GTK_THEME=Adwaita libreoffice --writer %U
And that is it. The same can be applied to all other programs that run on GTK3. I chose Adwaita but any number of themes could replace it.