feat(beautiful: xresources): read rgb: and argb: prefixed colors

This commit is contained in:
actionless 2015-12-07 09:31:16 +01:00
parent 6ca85af53b
commit 2d7fc8bc49
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ function xresources.get_current_theme()
print("W: beautiful: can't get colorscheme from xrdb (using fallback).")
return fallback
end
if colors[key]:find("rgb:") then
colors[key] = "#"..colors[key]:gsub("[a]?rgb:", ""):gsub("/", "")
end
end
return colors
end