Re-use variables in color definitions
[tj-awesome-themes.git] / Glossy / theme.lua
1 -- Glossy theme for Awesome 3.5
2 -- Copyright (C) 2011-2016 Tuomas Jormola <tj@solitudo.net>
3 --
4 -- Licensed under the terms of GNU General Public License Version 2.0.
5 --
6 -- Designed to be used with Glossy GTK+ theme and GNOME icon theme.
7 -- Both are included in gnome-themes package of GNOME 2.3x.
8 -- freedesktop.org module for Awesome is required for the icon support.
9 --
10 -- Theme also uses Inconsolata font. On Ubuntu system this font
11 -- is available in the package fonts-inconsolata.
12
13 local awful = require('awful')
14 local freedesktop = { utils = require('freedesktop.utils') }
15
16 local theme = {}
17
18 -- Icon theme and font
19 freedesktop.utils.icon_theme                    = 'Adawaita'
20 theme.icon_theme                                = freedesktop.utils.icon_theme
21 theme.font                                      = 'Inconsolata Medium 12'
22 theme.monospace_font                            = theme.font
23
24 -- Colors
25 theme.bg_focus                                  = '#5598d7'
26 theme.bg_normal                                 = '#f5f2ef'
27 theme.bg_urgent                                 = '#7f55d7'
28 theme.bg_minimize                               = '#808080'
29 theme.bg_systray                                = theme.bg_normal
30
31 theme.fg_normal                                 = '#000000'
32 theme.fg_focus                                  = '#ffffff'
33 theme.fg_urgent                                 = theme.fg_focus
34 theme.fg_minimize                               = theme.fg_normal
35
36 theme.border_normal                             = theme.fg_normal
37 theme.border_focus                              = theme.bg_focus
38 theme.border_marked                             = theme.bg_urgent
39
40 theme.bg_widget                                 = theme.bg_normal
41 theme.fg_widget                                 = '#00a2fe'
42 theme.fg_center_widget                          = '#0066e5'
43 theme.fg_end_widget                             = '#0017ed'
44
45 theme.tooltip_bg_color                          = '#ffffbf'
46 theme.tooltip_fg_color                          = theme.fg_normal
47
48 -- Misc. settings
49 theme.wallpaper_cmd                             = { 'xsetroot -solid \\#40659f' }
50 theme.taglist_squares                           = 'true'
51 theme.titlebar_close_button                     = 'true'
52 theme.border_width                              = '1'
53 theme.menu_height                               = '16'
54 theme.menu_width                                = '250'
55
56 -- Use default images for layout, tasklist, taglist and menu submenus
57 theme.layout_fairh                              = '/usr/share/awesome/themes/default/layouts/fairh.png'
58 theme.layout_fairv                              = '/usr/share/awesome/themes/default/layouts/fairv.png'
59 theme.layout_floating                           = '/usr/share/awesome/themes/default/layouts/floating.png'
60 theme.layout_magnifier                          = '/usr/share/awesome/themes/default/layouts/magnifier.png'
61 theme.layout_max                                = '/usr/share/awesome/themes/default/layouts/max.png'
62 theme.layout_fullscreen                         = '/usr/share/awesome/themes/default/layouts/fullscreen.png'
63 theme.layout_tilebottom                         = '/usr/share/awesome/themes/default/layouts/tilebottom.png'
64 theme.layout_tileleft                           = '/usr/share/awesome/themes/default/layouts/tileleft.png'
65 theme.layout_tile                               = '/usr/share/awesome/themes/default/layouts/tile.png'
66 theme.layout_tiletop                            = '/usr/share/awesome/themes/default/layouts/tiletop.png'
67 theme.layout_spiral                             = '/usr/share/awesome/themes/default/layouts/spiral.png'
68 theme.layout_dwindle                            = '/usr/share/awesome/themes/default/layouts/dwindle.png'
69
70 theme.taglist_squares_sel                       = '/usr/share/awesome/themes/default/taglist/squarefw.png'
71 theme.taglist_squares_unsel                     = '/usr/share/awesome/themes/default/taglist/squarew.png'
72
73 theme.tasklist_floating_icon                    = '/usr/share/awesome/themes/default/layouts/floating.png'
74
75 theme.menu_submenu_icon                         = '/usr/share/awesome/themes/default/submenu.png'
76
77 -- Awesome icon
78 theme.awesome_icon                              = '/usr/share/awesome/icons/awesome16.png'
79
80 -- Titlebar images
81 theme.titlebar_close_button_normal              = '/usr/share/awesome/themes/default/titlebar/close_normal.png'
82 theme.titlebar_close_button_focus               = '/usr/share/awesome/themes/default/titlebar/close_focus.png'
83
84 theme.titlebar_ontop_button_normal_inactive     = '/usr/share/awesome/themes/default/titlebar/ontop_normal_inactive.png'
85 theme.titlebar_ontop_button_focus_inactive      = '/usr/share/awesome/themes/default/titlebar/ontop_focus_inactive.png'
86 theme.titlebar_ontop_button_normal_active       = '/usr/share/awesome/themes/default/titlebar/ontop_normal_active.png'
87 theme.titlebar_ontop_button_focus_active        = '/usr/share/awesome/themes/default/titlebar/ontop_focus_active.png'
88
89 theme.titlebar_sticky_button_normal_inactive    = '/usr/share/awesome/themes/default/titlebar/sticky_normal_inactive.png'
90 theme.titlebar_sticky_button_focus_inactive     = '/usr/share/awesome/themes/default/titlebar/sticky_focus_inactive.png'
91 theme.titlebar_sticky_button_normal_active      = '/usr/share/awesome/themes/default/titlebar/sticky_normal_active.png'
92 theme.titlebar_sticky_button_focus_active       = '/usr/share/awesome/themes/default/titlebar/sticky_focus_active.png'
93
94 theme.titlebar_floating_button_normal_inactive  = '/usr/share/awesome/themes/default/titlebar/floating_normal_inactive.png'
95 theme.titlebar_floating_button_focus_inactive   = '/usr/share/awesome/themes/default/titlebar/floating_focus_inactive.png'
96 theme.titlebar_floating_button_normal_active    = '/usr/share/awesome/themes/default/titlebar/floating_normal_active.png'
97 theme.titlebar_floating_button_focus_active     = '/usr/share/awesome/themes/default/titlebar/floating_focus_active.png'
98
99 theme.titlebar_maximized_button_normal_inactive = '/usr/share/awesome/themes/default/titlebar/maximized_normal_inactive.png'
100 theme.titlebar_maximized_button_focus_inactive  = '/usr/share/awesome/themes/default/titlebar/maximized_focus_inactive.png'
101 theme.titlebar_maximized_button_normal_active   = '/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png'
102 theme.titlebar_maximized_button_focus_active    = '/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png'
103
104 -- Delightful Widget icons
105 -- Generic icons
106 theme.delightful_error                          = '/usr/share/icons/Adwaita/16x16/status/dialog-error.png'
107 theme.delightful_not_found                      = '/usr/share/icons/gnome/16x16/status/dialog-question.png'
108
109 -- CPU widget
110 theme.delightful_cpu                            = '/usr/share/icons/hicolor/22x22/devices/sensors-applet-cpu.png'
111
112 -- Memory widget
113 theme.delightful_memory                         = '/usr/share/icons/hicolor/22x22/devices/sensors-applet-memory.png'
114
115 -- Battery widget
116 theme.delightful_battery_ac                     = '/usr/share/icons/gnome/16x16/actions/help-about.png'
117 theme.delightful_battery_full                   = '/usr/share/icons/gnome/16x16/devices/battery.png'
118 theme.delightful_battery_medium                 = '/usr/share/icons/gnome/16x16/status/battery-low.png'
119 theme.delightful_battery_low                    = '/usr/share/icons/gnome/16x16/status/battery-caution.png'
120
121 -- IMAP widget
122 theme.delightful_imap_mail_read                 = '/usr/share/icons/gnome/32x32/status/stock_mail-open.png'
123 theme.delightful_imap_mail_unread               = '/usr/share/icons/gnome/32x32/status/stock_mail-unread.png'
124
125 -- Network widget
126 theme.delightful_network_dialup                 = '/usr/share/icons/gnome/16x16/devices/modem.png'
127 theme.delightful_network_wired                  = '/usr/share/icons/gnome/16x16/devices/network-wired.png'
128 theme.delightful_network_wireless               = '/usr/share/icons/gnome/16x16/devices/network-wireless.png'
129
130 -- Volume widget
131 theme.delightful_vol                            = '/usr/shape/icons/gnome/16x16/status/multimedia-volume-control.png'
132 theme.delightful_vol_max                        = '/usr/share/icons/gnome/16x16/status/audio-volume-high.png'
133 theme.delightful_vol_med                        = '/usr/share/icons/gnome/16x16/status/audio-volume-medium.png'
134 theme.delightful_vol_min                        = '/usr/share/icons/gnome/16x16/status/audio-volume-low.png'
135 theme.delightful_vol_zero                       = '/usr/share/icons/gnome/16x16/status/audio-volume-low.png'
136 theme.delightful_vol_mute                       = '/usr/share/icons/gnome/16x16/status/audio-volume-muted.png'
137
138 -- Weather widget
139 theme.delightful_weather_clear                  = '/usr/share/icons/gnome/16x16/status/weather-clear.png'
140 theme.delightful_weather_clear_night            = '/usr/share/icons/gnome/16x16/status/weather-clear-night.png'
141 theme.delightful_weather_clear_night_000        = '/usr/share/icons/mate/16x16/status/weather-clear-night-000.png'
142 theme.delightful_weather_clear_night_010        = '/usr/share/icons/mate/16x16/status/weather-clear-night-010.png'
143 theme.delightful_weather_clear_night_020        = '/usr/share/icons/mate/16x16/status/weather-clear-night-020.png'
144 theme.delightful_weather_clear_night_030        = '/usr/share/icons/mate/16x16/status/weather-clear-night-030.png'
145 theme.delightful_weather_clear_night_040        = '/usr/share/icons/mate/16x16/status/weather-clear-night-040.png'
146 theme.delightful_weather_clear_night_050        = '/usr/share/icons/mate/16x16/status/weather-clear-night-050.png'
147 theme.delightful_weather_clear_night_060        = '/usr/share/icons/mate/16x16/status/weather-clear-night-060.png'
148 theme.delightful_weather_clear_night_070        = '/usr/share/icons/mate/16x16/status/weather-clear-night-070.png'
149 theme.delightful_weather_clear_night_080        = '/usr/share/icons/mate/16x16/status/weather-clear-night-080.png'
150 theme.delightful_weather_clear_night_090        = '/usr/share/icons/mate/16x16/status/weather-clear-night-090.png'
151 theme.delightful_weather_clear_night_100        = '/usr/share/icons/mate/16x16/status/weather-clear-night-100.png'
152 theme.delightful_weather_clear_night_110        = '/usr/share/icons/mate/16x16/status/weather-clear-night-110.png'
153 theme.delightful_weather_clear_night_120        = '/usr/share/icons/mate/16x16/status/weather-clear-night-120.png'
154 theme.delightful_weather_clear_night_130        = '/usr/share/icons/mate/16x16/status/weather-clear-night-130.png'
155 theme.delightful_weather_clear_night_140        = '/usr/share/icons/mate/16x16/status/weather-clear-night-140.png'
156 theme.delightful_weather_clear_night_150        = '/usr/share/icons/mate/16x16/status/weather-clear-night-150.png'
157 theme.delightful_weather_clear_night_160        = '/usr/share/icons/mate/16x16/status/weather-clear-night-160.png'
158 theme.delightful_weather_clear_night_170        = '/usr/share/icons/mate/16x16/status/weather-clear-night-170.png'
159 theme.delightful_weather_clear_night_190        = '/usr/share/icons/mate/16x16/status/weather-clear-night-190.png'
160 theme.delightful_weather_clear_night_200        = '/usr/share/icons/mate/16x16/status/weather-clear-night-200.png'
161 theme.delightful_weather_clear_night_210        = '/usr/share/icons/mate/16x16/status/weather-clear-night-210.png'
162 theme.delightful_weather_clear_night_220        = '/usr/share/icons/mate/16x16/status/weather-clear-night-220.png'
163 theme.delightful_weather_clear_night_230        = '/usr/share/icons/mate/16x16/status/weather-clear-night-230.png'
164 theme.delightful_weather_clear_night_240        = '/usr/share/icons/mate/16x16/status/weather-clear-night-240.png'
165 theme.delightful_weather_clear_night_250        = '/usr/share/icons/mate/16x16/status/weather-clear-night-250.png'
166 theme.delightful_weather_clear_night_260        = '/usr/share/icons/mate/16x16/status/weather-clear-night-260.png'
167 theme.delightful_weather_clear_night_270        = '/usr/share/icons/mate/16x16/status/weather-clear-night-270.png'
168 theme.delightful_weather_clear_night_280        = '/usr/share/icons/mate/16x16/status/weather-clear-night-280.png'
169 theme.delightful_weather_clear_night_290        = '/usr/share/icons/mate/16x16/status/weather-clear-night-290.png'
170 theme.delightful_weather_clear_night_300        = '/usr/share/icons/mate/16x16/status/weather-clear-night-300.png'
171 theme.delightful_weather_clear_night_310        = '/usr/share/icons/mate/16x16/status/weather-clear-night-310.png'
172 theme.delightful_weather_clear_night_320        = '/usr/share/icons/mate/16x16/status/weather-clear-night-320.png'
173 theme.delightful_weather_clear_night_330        = '/usr/share/icons/mate/16x16/status/weather-clear-night-330.png'
174 theme.delightful_weather_clear_night_340        = '/usr/share/icons/mate/16x16/status/weather-clear-night-340.png'
175 theme.delightful_weather_clear_night_350        = '/usr/share/icons/mate/16x16/status/weather-clear-night-350.png'
176 theme.delightful_weather_few_clouds             = '/usr/share/icons/gnome/16x16/status/weather-few-clouds.png'
177 theme.delightful_weather_few_clouds_night       = '/usr/share/icons/gnome/16x16/status/weather-few-clouds-night.png'
178 theme.delightful_weather_few_clouds_night_000   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-000.png'
179 theme.delightful_weather_few_clouds_night_010   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-010.png'
180 theme.delightful_weather_few_clouds_night_020   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-020.png'
181 theme.delightful_weather_few_clouds_night_030   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-030.png'
182 theme.delightful_weather_few_clouds_night_040   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-040.png'
183 theme.delightful_weather_few_clouds_night_050   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-050.png'
184 theme.delightful_weather_few_clouds_night_060   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-060.png'
185 theme.delightful_weather_few_clouds_night_070   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-070.png'
186 theme.delightful_weather_few_clouds_night_080   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-080.png'
187 theme.delightful_weather_few_clouds_night_090   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-090.png'
188 theme.delightful_weather_few_clouds_night_100   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-100.png'
189 theme.delightful_weather_few_clouds_night_110   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-110.png'
190 theme.delightful_weather_few_clouds_night_120   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-120.png'
191 theme.delightful_weather_few_clouds_night_130   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-130.png'
192 theme.delightful_weather_few_clouds_night_140   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-140.png'
193 theme.delightful_weather_few_clouds_night_150   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-150.png'
194 theme.delightful_weather_few_clouds_night_160   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-160.png'
195 theme.delightful_weather_few_clouds_night_170   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-170.png'
196 theme.delightful_weather_few_clouds_night_190   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-190.png'
197 theme.delightful_weather_few_clouds_night_200   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-200.png'
198 theme.delightful_weather_few_clouds_night_210   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-210.png'
199 theme.delightful_weather_few_clouds_night_220   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-220.png'
200 theme.delightful_weather_few_clouds_night_230   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-230.png'
201 theme.delightful_weather_few_clouds_night_240   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-240.png'
202 theme.delightful_weather_few_clouds_night_250   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-250.png'
203 theme.delightful_weather_few_clouds_night_260   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-260.png'
204 theme.delightful_weather_few_clouds_night_270   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-270.png'
205 theme.delightful_weather_few_clouds_night_280   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-280.png'
206 theme.delightful_weather_few_clouds_night_290   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-290.png'
207 theme.delightful_weather_few_clouds_night_300   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-300.png'
208 theme.delightful_weather_few_clouds_night_310   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-310.png'
209 theme.delightful_weather_few_clouds_night_320   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-320.png'
210 theme.delightful_weather_few_clouds_night_330   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-330.png'
211 theme.delightful_weather_few_clouds_night_340   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-340.png'
212 theme.delightful_weather_few_clouds_night_350   = '/usr/share/icons/mate/16x16/status/weather-few-clouds-night-350.png'
213 theme.delightful_weather_fog                    = '/usr/share/icons/gnome/16x16/status/weather-fog.png'
214 theme.delightful_weather_overcast               = '/usr/share/icons/gnome/16x16/status/weather-overcast.png'
215 theme.delightful_weather_showers                = '/usr/share/icons/gnome/16x16/status/weather-showers.png'
216 theme.delightful_weather_scattered_showers      = '/usr/share/icons/gnome/16x16/status/weather-showers-scattered.png'
217 theme.delightful_weather_snow                   = '/usr/share/icons/gnome/16x16/status/weather-snow.png'
218 theme.delightful_weather_strom                  = '/usr/share/icons/gnome/16x16/status/weather-storm.png'
219 theme.delightful_weather_alert                  = '/usr/share/icons/gnome/16x16/status/weather-severe-alert.png'
220
221 return theme