Open nogweii opened 11 years ago
May be I don't understand you, but default coloring scheme is based on some hash (AFAIK, CRC16) of window class. What default values it should write to colors file?
Its not writing colors to the file but changing how or where it looks for the file. (Eg cd to the directory before loading the file) On Mar 4, 2013 11:01 PM, "Timur Sultanov" notifications@github.com wrote:
May be I don't understand you, but default coloring scheme is based on some hash (AFAIK, CRC16) of window class. What default values it should write to colors file?
— Reply to this email directly or view it on GitHubhttps://github.com/soulthreads/xwinmosaic/issues/14#issuecomment-14424983 .
Reading the source code, it shouldn't be too hard to implement. However, the logic assumes that
color_file
exists, so perhaps the default value should only be set if it exists?Why? I'd like to configure xwinmosaic across a broad range of computers that have different
$HOME
.Alternate idea, cd to
$XDG_CONFIG_HOME/xwinmosaic
before trying to open the file, so that absolute paths will work as normal, but any relative files would be within that directory. (Then I could configure 'color_file = colors' and it would load$XDG_CONFIG_HOME/xwinmosaic/colors
.)