diff options
| author | Lignum Crucis | 2026-08-29 01:23:49 -0300 |
|---|---|---|
| committer | Lignum Crucis | 2026-08-29 01:23:49 -0300 |
| commit | 164afc1c655b5dd53c30952962b6da66eb582b93 (patch) | |
| tree | 4c3c69c15f87687efed5aef8345207bb7b8e49bb /.config/awesome/theme/theme.lua | |
Diffstat (limited to '.config/awesome/theme/theme.lua')
| -rw-r--r-- | .config/awesome/theme/theme.lua | 191 |
1 files changed, 191 insertions, 0 deletions
diff --git a/.config/awesome/theme/theme.lua b/.config/awesome/theme/theme.lua new file mode 100644 index 0000000..f4047f5 --- /dev/null +++ b/.config/awesome/theme/theme.lua @@ -0,0 +1,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 |
