# Here, monitoreDP1 is my required display port # The output will be something like this - /backdrop/screen0/monitoreDP1/* # See the value you need using the command: # See the panel number you want to modify using the GUI: # Modify thse properties if you get a 'property does not exist on channel' error. # These are the property values xfce4 uses to determine display configuration. Sed -i "s/^ColorPalette=.*/ColorPalette=$XFCE4_TERMINAL_DARK_PALETTE/" ~/.config/xfce4/terminal/terminalrc Sed -i "s/^ColorBackground=.*/ColorBackground=$XFCE4_TERMINAL_DARK_BACKGROUND/" ~/.config/xfce4/terminal/terminalrc Sed -i "s/^ColorForeground=.*/ColorForeground=$XFCE4_TERMINAL_DARK_TEXT/" ~/.config/xfce4/terminal/terminalrc Xfconf-query -c xsettings -p /Net/IconThemeName -s "$DARK_ICON" Xfconf-query -c xsettings -p /Net/ThemeName -s "$DARK_THEME" Sed -i "s/^ColorPalette=.*/ColorPalette=$XFCE4_TERMINAL_LIGHT_PALETTE/" ~/.config/xfce4/terminal/terminalrc Sed -i "s/^ColorBackground=.*/ColorBackground=$XFCE4_TERMINAL_LIGHT_BACKGROUND/" ~/.config/xfce4/terminal/terminalrc Sed -i "s/^ColorForeground=.*/ColorForeground=$XFCE4_TERMINAL_LIGHT_TEXT/" ~/.config/xfce4/terminal/terminalrc #below replacing panel-0 by panel-1 and so on #This is for panel 0 only, if you have more than 1 panels repeat the code Xfconf-query -c xsettings -p /Net/IconThemeName -s "$LIGHT_ICON" Xfconf-query -c xsettings -p /Net/ThemeName -s "$LIGHT_THEME" # Set the variables according to the arguments #import config file from your stored location So, in the post above this one, Instead of toggling an 'xfconf-query' line, I'll actually be toggling a script with several lines inside to make the complete theme change. This will/could/should be used by the press of a tint2 icon, a keybind, or whatever else, so that in times of weirdness during dark theme use, like, trying to read something with strange colors in thunderbird, you just hit the button, first switching to the light theme chosen, and then when finished, either returning to the original theme (much preferable), or at the least, have another 'chosen' theme to return to on toggle. Xfconf-query -c xsettings -p /Net/ThemeName -s "Glacier"īasically, regardless of which theme is currently active, (meaning not even one of the two themes list above), make an initial switch to Glacier (Light theme) and then on the subsequent press, toggle back to either the previously enabled theme (preferable), or another theme that can be a choice, in this particular case, Anolis (dark theme). Xfconf-query -c xsettings -p /Net/ThemeName -s "Anolis" 8oįILE="$HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml" but how do you then take care of the back and forth after the initial press? Yeah, I'm lost here. My guess is I don't even need $FILE and $STRING as the changes (for my first option) don't care what is currently active. (I would most gladly use the second version though!)Īnyway, the below is obviously not correct but may jog something easy for someone. Ideally, the script would grab the currently activated theme regardless, and switch back to that on return toggle, but that version is beyond me, where the first idea seems quite doable. Easy enough to just set two keybinds but better to have a script. The idea is that when confronted by some dark theme anomoly, or any other reason, you can switch to a decent light theme on a button press or keybind. So basically, regardless of what theme is active, switch to "Glacier", a light theme, and then toggle to "Anolis" on second press, and back and forth. I am trying create a script to toggle between two themes independent of the currently active theme.
0 Comments
Leave a Reply. |