guest@dotshare [~/groups/wms/awesome] $ ls Awesome-theme/ | cat

Awesome theme (raw, dl)

tpoisot Sep 27, 2014 (wms/awesome)
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
---------------------------
-- Default awesome theme --
---------------------------

theme = {}

theme.font          = "Consolas 8"

-- bg and fg

local h = io.popen("xrdb -query | grep 'foreground:' | awk '{print $2}'")
x_fg = h:read("*l")
h:close()

local h = io.popen("xrdb -query | grep 'background:' | awk '{print $2}'")
x_bg = h:read("*l")
h:close()

-- black
local h = io.popen("xrdb -query | grep 'color0:' | awk '{print $2}'")
black = h:read("*l")
h:close()

local h = io.popen("xrdb -query | grep 'color8:' | awk '{print $2}'")
l_black = h:read("*l")
h:close()

-- red
local h = io.popen("xrdb -query | grep 'color1:' | awk '{print $2}'")
red = h:read("*l")
h:close()

local h = io.popen("xrdb -query | grep 'color9:' | awk '{print $2}'")
l_red = h:read("*l")
h:close()

-- green
local h = io.popen("xrdb -query | grep 'color2:' | awk '{print $2}'")
green = h:read("*l")
h:close()

local h = io.popen("xrdb -query | grep 'color10:' | awk '{print $2}'")
l_green = h:read("*l")
h:close()

-- yellow
local h = io.popen("xrdb -query | grep 'color3:' | awk '{print $2}'")
yellow = h:read("*l")
h:close()

local h = io.popen("xrdb -query | grep 'color11:' | awk '{print $2}'")
l_yellow = h:read("*l")
h:close()

-- blue
local h = io.popen("xrdb -query | grep 'color4:' | awk '{print $2}'")
blue = h:read("*l")
h:close()

local h = io.popen("xrdb -query | grep 'color12:' | awk '{print $2}'")
l_blue = h:read("*l")
h:close()

-- magenta
local h = io.popen("xrdb -query | grep 'color5:' | awk '{print $2}'")
magenta = h:read("*l")
h:close()

local h = io.popen("xrdb -query | grep 'color13:' | awk '{print $2}'")
l_magenta = h:read("*l")
h:close()

-- cyan
local h = io.popen("xrdb -query | grep 'color6:' | awk '{print $2}'")
cyan = h:read("*l")
h:close()

local h = io.popen("xrdb -query | grep 'color14:' | awk '{print $2}'")
l_cyan = h:read("*l")
h:close()

-- white
local h = io.popen("xrdb -query | grep 'color7:' | awk '{print $2}'")
white = h:read("*l")
h:close()

local h = io.popen("xrdb -query | grep 'color15:' | awk '{print $2}'")
l_white = h:read("*l")
h:close()

theme.bg_normal     = x_fg
theme.bg_focus      = x_fg
theme.bg_urgent     = x_fg
theme.bg_minimize   = x_fg
theme.bg_systray    = x_fg

theme.fg_normal     = x_bg
theme.fg_focus      = l_magenta
theme.fg_urgent     = l_red
theme.fg_minimize   = l_black

theme.border_width  = 4
theme.border_normal = l_white
theme.border_focus  = white
theme.border_marked = l_black

theme.taglist_bg_focus = blue
theme.taglist_fg_occupied = l_white
theme.taglist_fg_empty = l_black

CLICK TO VIEW

x

Notes

This will read the colors (0-15 + background/foreground) of your X configuration, and use them as colors in the awesome theme. If you spend 90% of your time in the terminal, it’s nice is the WM color match!