diff --git a/lib/beautiful/xresources.lua b/lib/beautiful/xresources.lua index 1fb098cad..3bb07e435 100644 --- a/lib/beautiful/xresources.lua +++ b/lib/beautiful/xresources.lua @@ -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