geo_c wrote: Mon Feb 07, 2022 1:19 amAnd I'm able to do that by simply using the sed command on the ROX options file and inserting what I want. Like this line which replaces the color title and variable color number characters with the color title and my preferred color number (which in ROX is 12 digits for some reason)
Code: Select all
sed -i 's/display_unkn_colour">#\b[0-9,a-z,A-Z]\{12\}\b</display_unkn_colour">#7e163bb83bb8<'/ /root/.config/rox.sourceforge.net/ROX-Filer/Options
Looks more complicated than it needs to be. I don't understand what you mean by replacing the "color title". The name? Isn't that defined by ROX and therefore "untouchable"?
You could change all colors with a single sed statement, something like this (example for 3 colors with fake values, add your own):
Code: Select all
sed -ri '
s/(display_unkn_colour">)([^<]*)/\1#888888888888/
s/(pinboard_fg_colour">)([^<]*)/\1#222222222222/
s/(display_pipe_colour">)([^<]*)/\1#555555555555/
' /root/.config/rox.sourceforge.net/ROX-Filer/Options