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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
---------------------------
-- Gruvbox Dark (medium) theme for awesome WM
---------------------------
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir()
local theme = {}
-- Paleta Gruvbox
local gruvbox = {
bg0 = "#282828",
bg1 = "#3c3836",
bg2 = "#504945",
bg3 = "#665c54",
bg4 = "#7c6f64",
fg0 = "#fbf1c7",
fg1 = "#ebdbb2",
fg2 = "#d5c4a1",
fg3 = "#bdae93",
fg4 = "#a89984",
red = "#cc241d",
red_br = "#fb4934",
green = "#98971a",
green_br = "#b8bb26",
yellow = "#d79921",
yellow_br = "#fabd2f",
blue = "#458588",
blue_br = "#83a598",
purple = "#b16286",
purple_br = "#d3869b",
aqua = "#689d6a",
aqua_br = "#8ec07c",
orange = "#d65d0e",
orange_br = "#fe8019",
gray = "#928374",
}
theme.font = "Terminess Nerd Font 11"
-- Cores base
theme.bg_normal = gruvbox.bg0
theme.bg_focus = gruvbox.bg1
theme.bg_urgent = gruvbox.red
theme.bg_minimize = gruvbox.bg0
theme.bg_systray = gruvbox.bg0
theme.fg_normal = gruvbox.fg1
theme.fg_focus = gruvbox.yellow_br
theme.fg_urgent = gruvbox.fg0
theme.fg_minimize = gruvbox.fg4
-- Espaçamento entre janelas
theme.useless_gap = dpi(4)
theme.gap_single_client = true
-- Bordas das janelas
theme.border_width = dpi(2)
theme.border_normal = gruvbox.bg2
theme.border_focus = gruvbox.yellow
theme.border_marked = gruvbox.red
-- Titlebars
theme.titlebar_bg_focus = gruvbox.bg1
theme.titlebar_bg_normal = gruvbox.bg0
theme.titlebar_fg_focus = gruvbox.fg1
theme.titlebar_fg_normal = gruvbox.fg4
-- Tooltips
theme.tooltip_bg = gruvbox.bg1
theme.tooltip_fg = gruvbox.fg1
theme.tooltip_border_color = gruvbox.bg3
theme.tooltip_border_width = dpi(1)
-- Notificações (naughty)
theme.notification_bg = gruvbox.bg1
theme.notification_fg = gruvbox.fg1
theme.notification_border_color = gruvbox.yellow
theme.notification_border_width = dpi(2)
-- Hotkeys popup (Mod+s)
theme.hotkeys_bg = gruvbox.bg0
theme.hotkeys_fg = gruvbox.fg1
theme.hotkeys_border_color = gruvbox.yellow
theme.hotkeys_modifiers_fg = gruvbox.blue_br
-- Menu
theme.menu_height = dpi(20)
theme.menu_width = dpi(160)
theme.menu_bg_normal = gruvbox.bg0
theme.menu_bg_focus = gruvbox.bg2
theme.menu_fg_normal = gruvbox.fg1
theme.menu_fg_focus = gruvbox.yellow_br
theme.menu_border_color = gruvbox.bg3
theme.menu_border_width = dpi(1)
theme.menu_submenu_icon = themes_path .. "default/submenu.png"
-- Wibar (barra superior)
theme.wibar_bg = gruvbox.bg0
theme.wibar_fg = gruvbox.fg1
theme.wibar_height = dpi(22)
-- Taglist (indicadores de workspace)
theme.taglist_bg_focus = gruvbox.blue
theme.taglist_fg_focus = gruvbox.bg0
theme.taglist_bg_urgent = gruvbox.red
theme.taglist_fg_urgent = gruvbox.fg0
theme.taglist_bg_occupied = gruvbox.bg1
theme.taglist_fg_occupied = gruvbox.fg2
theme.taglist_bg_empty = gruvbox.bg0
theme.taglist_fg_empty = gruvbox.fg4
theme.taglist_spacing = dpi(0)
-- Tasklist (lista de janelas na wibar)
theme.tasklist_bg_normal = gruvbox.bg0
theme.tasklist_fg_normal = gruvbox.fg3
theme.tasklist_bg_focus = gruvbox.bg2
theme.tasklist_fg_focus = gruvbox.yellow_br
theme.tasklist_bg_urgent = gruvbox.red
theme.tasklist_fg_urgent = gruvbox.fg0
theme.tasklist_bg_minimize = gruvbox.bg0
theme.tasklist_fg_minimize = gruvbox.fg4
theme.tasklist_spacing = dpi(2)
-- Textclock e widgets simples
theme.textclock_fg = gruvbox.fg1
-- Systray
theme.systray_icon_spacing = dpi(4)
-- Layoutbox / layout icons (reaproveita os do tema default)
theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
theme.layout_floating = themes_path.."default/layouts/floatingw.png"
theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
theme.layout_max = themes_path.."default/layouts/maxw.png"
theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
theme.layout_tile = themes_path.."default/layouts/tilew.png"
theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
-- Titlebar icons (reaproveita os do default, recolorir exigiria SVG próprio)
theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png"
theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png"
theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png"
theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png"
theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png"
theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png"
theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png"
theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png"
theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png"
theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png"
theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png"
theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
-- Wallpaper gerado (gradiente simples, evita depender de arquivo de imagem externo)
theme.wallpaper = "/home/lignum/media/wallpaper.png"
-- Ícone do awesome na wibar (recolorido)
theme.awesome_icon = theme_assets.awesome_icon(
theme.menu_height, gruvbox.yellow, gruvbox.bg0
)
-- Ícones de tema para apps (opcional, deixa em branco se não usa)
theme.icon_theme = nil
return theme
|