From 2d7fc8bc49b96801618599c1016d0c8ca2ab6705 Mon Sep 17 00:00:00 2001 From: actionless Date: Mon, 7 Dec 2015 09:31:16 +0100 Subject: [PATCH] feat(beautiful: xresources): read rgb: and argb: prefixed colors --- lib/beautiful/xresources.lua | 3 +++ 1 file changed, 3 insertions(+) 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