summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bash_profile5
-rw-r--r--.bashrc1
-rw-r--r--.config/Xresources36
-rw-r--r--.config/awesome/rc.lua558
-rw-r--r--.config/awesome/theme/theme.lua191
-rw-r--r--.config/bash/aliases9
-rw-r--r--.config/bash/bashrc75
-rw-r--r--.config/fontconfig/fonts.conf23
-rw-r--r--.config/nvim/init.lua14
-rw-r--r--.config/nvim/lua/install-mini.lua12
-rw-r--r--.config/nvim/lua/keys.lua3
-rw-r--r--.config/nvim/lua/plugins.lua25
-rw-r--r--.config/user-dirs.dirs9
-rw-r--r--.xinitrc2
14 files changed, 963 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile
new file mode 100644
index 0000000..5545f00
--- /dev/null
+++ b/.bash_profile
@@ -0,0 +1,5 @@
+#
+# ~/.bash_profile
+#
+
+[[ -f ~/.bashrc ]] && . ~/.bashrc
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..9831ae8
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1 @@
+[ -f "$HOME/.config/bash/bashrc" ] && source "$HOME/.config/bash/bashrc"
diff --git a/.config/Xresources b/.config/Xresources
new file mode 100644
index 0000000..2d39a75
--- /dev/null
+++ b/.config/Xresources
@@ -0,0 +1,36 @@
+! Gruvbox dark colors (medium contrast, bg0)
+*.foreground: #ebdbb2
+*.background: #282828
+*.cursorColor: #ebdbb2
+
+! black
+*.color0: #282828
+*.color8: #928374
+
+! red
+*.color1: #cc241d
+*.color9: #fb4934
+
+! green
+*.color2: #98971a
+*.color10: #b8bb26
+
+! yellow
+*.color3: #d79921
+*.color11: #fabd2f
+
+! blue
+*.color4: #458588
+*.color12: #83a598
+
+! magenta/purple
+*.color5: #b16286
+*.color13: #d3869b
+
+! cyan/aqua
+*.color6: #689d6a
+*.color14: #8ec07c
+
+! white
+*.color7: #a89984
+*.color15: #ebdbb2
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
new file mode 100644
index 0000000..4fe49fc
--- /dev/null
+++ b/.config/awesome/rc.lua
@@ -0,0 +1,558 @@
+-- If LuaRocks is installed, make sure that packages installed through it are
+-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
+pcall(require, "luarocks.loader")
+
+local gears = require("gears")
+local awful = require("awful")
+require("awful.autofocus")
+local wibox = require("wibox")
+local beautiful = require("beautiful")
+local naughty = require("naughty")
+local menubar = require("menubar")
+local hotkeys_popup = require("awful.hotkeys_popup")
+require("awful.hotkeys_popup.keys")
+
+-- Check if awesome encountered an error during startup and fell back to
+-- another config (This code will only ever execute for the fallback config)
+if awesome.startup_errors then
+ naughty.notify({ preset = naughty.config.presets.critical,
+ title = "Oops, there were errors during startup!",
+ text = awesome.startup_errors })
+end
+
+-- Handle runtime errors after startup
+do
+ local in_error = false
+ awesome.connect_signal("debug::error", function (err)
+ if in_error then return end
+ in_error = true
+
+ naughty.notify({ preset = naughty.config.presets.critical,
+ title = "Oops, an error happened!",
+ text = tostring(err) })
+ in_error = false
+ end)
+end
+
+-- {{{ Variable definitions
+-- Themes define colours, icons, font and wallpapers.
+beautiful.init(gears.filesystem.get_configuration_dir() .. "theme/theme.lua")
+
+terminal = "st"
+editor = os.getenv("EDITOR") or "nvim"
+editor_cmd = terminal .. " -e " .. editor
+browser = "firefox"
+menu = "rofi -show run"
+
+modkey = "Mod4"
+
+-- Table of layouts to cover with awful.layout.inc, order matters.
+awful.layout.layouts = {
+ awful.layout.suit.tile,
+ awful.layout.suit.spiral.dwindle,
+ awful.layout.suit.max,
+}
+-- }}}
+
+-- {{{ TODO: Menu
+-- Create a launcher widget and a main menu
+myawesomemenu = {
+ { "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end },
+ { "manual", terminal .. " -e man awesome" },
+ { "edit config", editor_cmd .. " " .. awesome.conffile },
+ { "restart", awesome.restart },
+ { "quit", function() awesome.quit() end },
+}
+
+mymainmenu = awful.menu({
+ items = {
+ { "awesome", myawesomemenu, beautiful.awesome_icon },
+ { "open terminal", terminal }
+}})
+
+mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
+ menu = mymainmenu })
+
+-- Menubar configuration
+menubar.utils.terminal = terminal -- Set the terminal for applications that require it
+-- }}}
+
+-- {{{ Wibar
+mykeyboardlayout = awful.widget.keyboardlayout()
+mytextclock = wibox.widget.textclock("%Y-%m-%d %H:%M")
+
+-- Create a wibox for each screen and add it
+local taglist_buttons = gears.table.join(
+ awful.button({ }, 1, function(t) t:view_only() end),
+ awful.button({ modkey }, 1,
+ function(t)
+ if client.focus then client.focus:move_to_tag(t) end
+ end),
+ awful.button({ }, 3, awful.tag.viewtoggle),
+ awful.button({ modkey }, 3, function(t)
+ if client.focus then
+ client.focus:toggle_tag(t)
+ end
+ end),
+ awful.button({ }, 4, function(t) awful.tag.viewnext(t.screen) end),
+ awful.button({ }, 5, function(t) awful.tag.viewprev(t.screen) end)
+)
+
+local tasklist_buttons = gears.table.join(
+ awful.button({ }, 1, function (c)
+ if c == client.focus then
+ c.minimized = true
+ else
+ c:emit_signal(
+ "request::activate",
+ "tasklist",
+ {raise = true}
+ )
+ end
+ end),
+ awful.button({ }, 3, function()
+ awful.menu.client_list({ theme = { width = 250 } })
+ end),
+ awful.button({ }, 4, function ()
+ awful.client.focus.byidx(1)
+ end),
+ awful.button({ }, 5, function ()
+ awful.client.focus.byidx(-1)
+ end))
+
+local function set_wallpaper(s)
+ -- Wallpaper
+ if beautiful.wallpaper then
+ local wallpaper = beautiful.wallpaper
+ -- If wallpaper is a function, call it with the screen
+ if type(wallpaper) == "function" then
+ wallpaper = wallpaper(s)
+ end
+ gears.wallpaper.maximized(wallpaper, s, true)
+ end
+end
+
+-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
+screen.connect_signal("property::geometry", set_wallpaper)
+
+awful.screen.connect_for_each_screen(function(s)
+ -- Wallpaper
+ set_wallpaper(s)
+
+ -- Each screen has its own tag table.
+ awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
+
+ -- Create a promptbox for each screen
+ s.mypromptbox = awful.widget.prompt()
+ -- Create an imagebox widget which will contain an icon indicating which layout we're using.
+ -- We need one layoutbox per screen.
+ s.mylayoutbox = awful.widget.layoutbox(s)
+ s.mylayoutbox:buttons(gears.table.join(
+ awful.button({ }, 1, function () awful.layout.inc( 1) end),
+ awful.button({ }, 3, function () awful.layout.inc(-1) end),
+ awful.button({ }, 4, function () awful.layout.inc( 1) end),
+ awful.button({ }, 5, function () awful.layout.inc(-1) end)))
+ -- Create a taglist widget
+ s.mytaglist = awful.widget.taglist {
+ screen = s,
+ filter = awful.widget.taglist.filter.all,
+ buttons = taglist_buttons
+ }
+
+ -- Create a tasklist widget
+ s.mytasklist = awful.widget.tasklist {
+ screen = s,
+ filter = awful.widget.tasklist.filter.currenttags,
+ buttons = tasklist_buttons,
+ widget_template = {{{
+ id = 'text_role',
+ widget = wibox.widget.textbox,
+ },
+ layout = wibox.layout.fixed.horizontal,
+ },
+ id = 'background_role',
+ widget = wibox.container.background,
+ },
+ }
+ -- Create the wibox
+ s.mywibox = awful.wibar({ position = "top", screen = s })
+
+ -- Add widgets to the wibox
+ s.mywibox:setup {
+ layout = wibox.layout.align.horizontal,
+ { -- Left widgets
+ layout = wibox.layout.fixed.horizontal,
+ --mylauncher,
+ s.mytaglist,
+ s.mypromptbox,
+ },
+ s.mytasklist, -- Middle widget
+ { -- Right widgets
+ layout = wibox.layout.fixed.horizontal,
+ wibox.widget.systray(),
+ mytextclock,
+ s.mylayoutbox,
+ },
+ }
+end)
+-- }}}
+
+-- {{{ Mouse bindings
+root.buttons(gears.table.join(
+ awful.button({ }, 3, function () mymainmenu:toggle() end),
+ awful.button({ }, 4, awful.tag.viewnext),
+ awful.button({ }, 5, awful.tag.viewprev)
+))
+-- }}}
+
+-- {{{ Key bindings
+globalkeys = gears.table.join(
+ awful.key({ modkey, }, "s",
+ hotkeys_popup.show_help,
+ {description="show help", group="awesome"}),
+
+ awful.key({ modkey }, "j",
+ function() awful.client.focus.byidx(1) end,
+ {description = "focus next by index", group = "client"}),
+ awful.key({ modkey }, "k",
+ function() awful.client.focus.byidx(-1) end,
+ {description = "focus previous by index", group = "client"}),
+
+ awful.key({ modkey }, "l",
+ function() awful.tag.incmwfact( 0.05) end,
+ {description = "increase master width factor", group = "layout"}),
+ awful.key({ modkey }, "h",
+ function() awful.tag.incmwfact(-0.05) end,
+ {description = "decrease master width factor", group = "layout"}),
+ awful.key({ modkey, "Shift" }, "h",
+ function() awful.tag.incnmaster( 1, nil, true) end,
+ {description = "increase the number of master clients", group = "layout"}),
+ awful.key({ modkey, "Shift" }, "l",
+ function() awful.tag.incnmaster(-1, nil, true) end,
+ {description = "decrease the number of master clients", group = "layout"}),
+ awful.key({ modkey, }, "space",
+ function() awful.layout.inc( 1) end,
+ {description = "select next", group = "layout"}),
+ awful.key({ modkey, "Shift" }, "space",
+ function() awful.layout.inc(-1) end,
+ {description = "select previous", group = "layout"}),
+
+ -- Layout manipulation
+ awful.key({ modkey, "Shift" }, "j",
+ function() awful.client.swap.byidx( 1) end,
+ {description = "swap with next client by index", group = "client"}),
+ awful.key({ modkey, "Shift" }, "k",
+ function() awful.client.swap.byidx( -1) end,
+ {description = "swap with previous client by index", group = "client"}),
+ awful.key({ modkey, "Control" }, "j",
+ function() awful.screen.focus_relative( 1) end,
+ {description = "focus the next screen", group = "screen"}),
+ awful.key({ modkey, "Control" }, "k",
+ function() awful.screen.focus_relative(-1) end,
+ {description = "focus the previous screen", group = "screen"}),
+
+ -- Standard program
+ awful.key({ modkey, }, "Return",
+ function () awful.spawn(terminal) end,
+ {description = "open a terminal", group = "launcher"}),
+
+ awful.key({ modkey, }, "b",
+ function () awful.spawn(browser) end,
+ {description = "open browser", group = "launcher"}),
+
+ awful.key({}, "Print", function()
+ awful.spawn.with_shell("maim ~/media/img/ss/$(date +%Y-%m-%d_%H-%M-%S).png")
+ end, {description = "screenshot da tela inteira", group = "screenshot"}),
+
+ awful.key({ "Shift" }, "Print", function()
+ awful.spawn.with_shell("maim -s ~/media/img/ss/$(date +%Y-%m-%d_%H-%M-%S).png")
+ end, {description = "screenshot de uma região (seleção)", group = "screenshot"}),
+
+ awful.key({ "Control" }, "Print", function()
+ awful.spawn.with_shell([[
+ f=~/media/img/ss/$(date +%Y-%m-%d_%H-%M-%S).png
+ maim "$f" && xclip -selection clipboard -t image/png -i "$f"
+ ]])
+ end, {description = "screenshot + copia pro clipboard", group = "screenshot"}),
+
+ awful.key({ modkey, "Control" }, "n",
+ function ()
+ local c = awful.client.restore()
+ -- Focus restored client
+ if c then
+ c:emit_signal(
+ "request::activate", "key.unminimize", {raise = true}
+ )
+ end
+ end,
+ {description = "restore minimized", group = "client"}),
+
+ -- Menubar
+ awful.key({ modkey }, "r",
+ function() awful.spawn(menu) end,
+ {description = "show the menubar", group = "launcher"}),
+
+ awful.key({ modkey, "Shift" }, "r",
+ awesome.restart,
+ {description = "reload awesome", group = "awesome"}),
+ awful.key({ modkey, "Shift" }, "q",
+ awesome.quit,
+ {description = "quit awesome", group = "awesome"})
+)
+
+clientkeys = gears.table.join(
+ awful.key({ modkey, }, "f",
+ function (c)
+ c.fullscreen = not c.fullscreen
+ c:raise()
+ end,
+ {description = "toggle fullscreen", group = "client"}),
+ awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end,
+ {description = "close", group = "client"}),
+ awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
+ {description = "toggle floating", group = "client"}),
+ awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
+ {description = "move to master", group = "client"}),
+ awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
+ {description = "move to screen", group = "client"}),
+ awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
+ {description = "toggle keep on top", group = "client"}),
+ awful.key({ modkey, }, "n",
+ function (c)
+ -- The client currently has the input focus, so it cannot be
+ -- minimized, since minimized clients can't have the focus.
+ c.minimized = true
+ end ,
+ {description = "minimize", group = "client"}),
+ awful.key({ modkey, }, "m",
+ function (c)
+ c.maximized = not c.maximized
+ c:raise()
+ end ,
+ {description = "(un)maximize", group = "client"}),
+ awful.key({ modkey, "Control" }, "m",
+ function (c)
+ c.maximized_vertical = not c.maximized_vertical
+ c:raise()
+ end ,
+ {description = "(un)maximize vertically", group = "client"}),
+ awful.key({ modkey, "Shift" }, "m",
+ function (c)
+ c.maximized_horizontal = not c.maximized_horizontal
+ c:raise()
+ end ,
+ {description = "(un)maximize horizontally", group = "client"})
+)
+
+-- Bind all key numbers to tags.
+-- Be careful: we use keycodes to make it work on any keyboard layout.
+-- This should map on the top row of your keyboard, usually 1 to 9.
+for i = 1, 9 do
+ globalkeys = gears.table.join(globalkeys,
+ -- View tag only.
+ awful.key({ modkey }, "#" .. i + 9,
+ function ()
+ local screen = awful.screen.focused()
+ local tag = screen.tags[i]
+ if tag then
+ tag:view_only()
+ end
+ end,
+ {description = "view tag #"..i, group = "tag"}),
+ -- Toggle tag display.
+ awful.key({ modkey, "Control" }, "#" .. i + 9,
+ function ()
+ local screen = awful.screen.focused()
+ local tag = screen.tags[i]
+ if tag then
+ awful.tag.viewtoggle(tag)
+ end
+ end,
+ {description = "toggle tag #" .. i, group = "tag"}),
+ -- Move client to tag.
+ awful.key({ modkey, "Shift" }, "#" .. i + 9,
+ function ()
+ if client.focus then
+ local tag = client.focus.screen.tags[i]
+ if tag then
+ client.focus:move_to_tag(tag)
+ end
+ end
+ end,
+ {description = "move focused client to tag #"..i, group = "tag"}),
+ -- Toggle tag on focused client.
+ awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
+ function ()
+ if client.focus then
+ local tag = client.focus.screen.tags[i]
+ if tag then
+ client.focus:toggle_tag(tag)
+ end
+ end
+ end,
+ {description = "toggle focused client on tag #" .. i, group = "tag"})
+ )
+end
+
+clientbuttons = gears.table.join(
+ awful.button({ }, 1, function (c)
+ c:emit_signal("request::activate", "mouse_click", {raise = true})
+ end),
+ awful.button({ modkey }, 1, function (c)
+ c:emit_signal("request::activate", "mouse_click", {raise = true})
+ awful.mouse.client.move(c)
+ end),
+ awful.button({ modkey }, 3, function (c)
+ c:emit_signal("request::activate", "mouse_click", {raise = true})
+ awful.mouse.client.resize(c)
+ end)
+)
+
+-- Set keys
+root.keys(globalkeys)
+-- }}}
+
+-- {{{ Rules
+-- Rules to apply to new clients (through the "manage" signal).
+awful.rules.rules = {
+ -- All clients will match this rule.
+ { rule = { },
+ properties = { border_width = beautiful.border_width,
+ border_color = beautiful.border_normal,
+ focus = awful.client.focus.filter,
+ raise = true,
+ keys = clientkeys,
+ buttons = clientbuttons,
+ screen = awful.screen.preferred,
+ placement = awful.placement.no_overlap+awful.placement.no_offscreen
+ }
+ },
+
+ -- Floating clients.
+ { rule_any = {
+ instance = {
+ "DTA", -- Firefox addon DownThemAll.
+ "copyq", -- Includes session name in class.
+ "pinentry",
+ },
+ class = {
+ "Arandr",
+ "Blueman-manager",
+ "Gpick",
+ "Kruler",
+ "MessageWin", -- kalarm.
+ "Sxiv",
+ "Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size.
+ "Wpa_gui",
+ "veromix",
+ "xtightvncviewer"},
+
+ -- Note that the name property shown in xprop might be set slightly after creation of the client
+ -- and the name shown there might not match defined rules here.
+ name = {
+ "Event Tester", -- xev.
+ },
+ role = {
+ "AlarmWindow", -- Thunderbird's calendar.
+ "ConfigManager", -- Thunderbird's about:config.
+ "pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
+ }
+ }, properties = { floating = true }},
+
+ -- Add titlebars to normal clients and dialogs
+ { rule_any = {type = { "normal", "dialog" }
+ }, properties = { titlebars_enabled = false }
+ },
+
+ -- Set Firefox to always map on the tag named "2" on screen 1.
+ -- { rule = { class = "Firefox" },
+ -- properties = { screen = 1, tag = "2" } },
+}
+-- }}}
+
+-- {{{ Signals
+-- Signal function to execute when a new client appears.
+client.connect_signal("manage", function (c)
+ -- Set the windows at the slave,
+ -- i.e. put it at the end of others instead of setting it master.
+ -- if not awesome.startup then awful.client.setslave(c) end
+
+ if awesome.startup
+ and not c.size_hints.user_position
+ and not c.size_hints.program_position then
+ -- Prevent clients from being unreachable after screen count changes.
+ awful.placement.no_offscreen(c)
+ end
+end)
+
+-- Add a titlebar if titlebars_enabled is set to true in the rules.
+client.connect_signal("request::titlebars", function(c)
+ -- buttons for the titlebar
+ local buttons = gears.table.join(
+ awful.button({ }, 1, function()
+ c:emit_signal("request::activate", "titlebar", {raise = true})
+ awful.mouse.client.move(c)
+ end),
+ awful.button({ }, 3, function()
+ c:emit_signal("request::activate", "titlebar", {raise = true})
+ awful.mouse.client.resize(c)
+ end)
+ )
+
+ awful.titlebar(c) : setup {
+ { -- Left
+ awful.titlebar.widget.iconwidget(c),
+ buttons = buttons,
+ layout = wibox.layout.fixed.horizontal
+ },
+ { -- Middle
+ { -- Title
+ align = "center",
+ widget = awful.titlebar.widget.titlewidget(c)
+ },
+ buttons = buttons,
+ layout = wibox.layout.flex.horizontal
+ },
+ { -- Right
+ awful.titlebar.widget.floatingbutton (c),
+ awful.titlebar.widget.maximizedbutton(c),
+ awful.titlebar.widget.stickybutton (c),
+ awful.titlebar.widget.ontopbutton (c),
+ awful.titlebar.widget.closebutton (c),
+ layout = wibox.layout.fixed.horizontal()
+ },
+ layout = wibox.layout.align.horizontal
+ }
+end)
+
+-- Enable sloppy focus, so that focus follows mouse.
+client.connect_signal("mouse::enter", function(c)
+ c:emit_signal("request::activate", "mouse_enter", {raise = false})
+end)
+
+client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
+client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
+
+-- no border when just one client
+local function update_borders(t)
+ t = t or awful.screen.focused().selected_tag
+ if not t then return end
+
+ local clients = t:clients()
+ -- filtra floating/maximized se quiser ignorá-los na contagem; aqui conta tudo
+ if #clients == 1 then
+ clients[1].border_width = 0
+ t.gap = 0
+ else
+ for _, c in ipairs(clients) do
+ c.border_width = beautiful.border_width
+ end
+ t.gap = beautiful.useless_gap
+ end
+end
+
+tag.connect_signal("property::selected", function(t) update_borders(t) end)
+client.connect_signal("tagged", function(c) update_borders(c.first_tag) end)
+client.connect_signal("untagged", function(c) update_borders(c.first_tag) end)
+client.connect_signal("unmanage", function(c) update_borders(c.first_tag) end)
+-- }}}
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
diff --git a/.config/bash/aliases b/.config/bash/aliases
new file mode 100644
index 0000000..52dc749
--- /dev/null
+++ b/.config/bash/aliases
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+alias ls='eza -la --group-directories-first'
+alias grep='rg'
+alias ..='cd ..'
+alias ...='cd ../..'
+alias mkdir='mkdir -p'
+alias p="sudo pacman"
+alias y="yay"
diff --git a/.config/bash/bashrc b/.config/bash/bashrc
new file mode 100644
index 0000000..26e8ee4
--- /dev/null
+++ b/.config/bash/bashrc
@@ -0,0 +1,75 @@
+#!/usr/bin/env bash
+# ~/.config/bash/bashrc
+# Config principal do bash, seguindo XDG (chamado via ~/.bashrc)
+
+[[ $- != *i* ]] && return # só roda em shell interativo
+
+source "$HOME/.config/bash/aliases"
+
+### HISTÓRICO ###
+export HISTFILE="$HOME/.local/state/bash/history"
+if [ ! -f "$HISTFILE" ]; then mkdir -p "$(dirname "$HISTFILE")"; fi
+export HISTSIZE=10000
+export HISTFILESIZE=20000
+export HISTCONTROL=ignoreboth:erasedups # ignora duplicatas e comandos com espaço na frente
+shopt -s histappend # append em vez de overwrite entre sessões
+shopt -s cmdhist # comandos multi-linha viram uma entrada só
+
+### NAVEGAÇÃO ###
+shopt -s autocd
+shopt -s cdspell
+shopt -s dirspell
+shopt -s globstar
+
+### COMPLETION NATIVA ###
+bind "set completion-ignore-case on" # completion case-insensitive
+bind "set show-all-if-ambiguous on" # mostra opções na primeira TAB, sem precisar apertar 2x
+bind "set menu-complete-display-prefix on"
+
+if [ -f /usr/share/bash-completion/bash_completion ]; then
+ source "/usr/share/bash-completion/bash_completion"
+elif [ -f /etc/bash_completion ]; then
+ source "/etc/bash_completion"
+fi
+
+### CORES BASE (gruvbox-ish) ###
+C_RESET="\[\e[0m\]"
+C_USER="\[\e[38;5;214m\]" # laranja
+C_DIR="\[\e[38;5;109m\]" # azul claro
+C_GIT="\[\e[38;5;172m\]" # amarelo/mostarda
+C_ERR="\[\e[38;5;167m\]" # vermelho
+
+### GIT BRANCH NO PROMPT ###
+__git_branch() {
+ local branch
+ branch=$(git symbolic-ref --short HEAD 2>/dev/null) || \
+ branch=$(git rev-parse --short HEAD 2>/dev/null)
+ [ -n "$branch" ] && printf " (%s)" "$branch"
+}
+
+### MONTA O PROMPT ###
+# Formato: [código-erro-se-houver] usuário@host diretório (git-branch)
+# $ (usuário comum) ou # (root)
+build_prompt() {
+ local last_exit=$?
+ PS1=""
+ if [ $last_exit -ne 0 ]; then
+ PS1+="${C_ERR}[${last_exit}]${C_RESET} "
+ fi
+ PS1+="${C_USER}\u@\h${C_RESET}:${C_DIR}\w${C_RESET}"
+ PS1+="${C_GIT}\$(__git_branch)${C_RESET}"
+ if [ "$(id -u)" -eq 0 ]; then
+ PS1+=" \[\e[1;31m\]#\[\e[0m\] "
+ else
+ PS1+=" \[\e[1m\]\$\[\e[0m\] "
+ fi
+}
+PROMPT_COMMAND="build_prompt"
+
+### VARIÁVEIS ÚTEIS ###
+export EDITOR=nvim
+export VISUAL=nvim
+export LESSHISTFILE="$HOME/.local/state/bash/lesshst"
+
+# reorganize
+set bell-style none
diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf
new file mode 100644
index 0000000..5622cd3
--- /dev/null
+++ b/.config/fontconfig/fonts.conf
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.conf.dtd">
+<fontconfig>
+
+ <match target="pattern">
+ <test qual="any" name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend" binding="strong">
+ <string>Terminess Nerd Font</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family">
+ <string>Monospace</string>
+ </test>
+ <edit name="family" mode="prepend" binding="strong">
+ <string>Terminess Nerd Font</string>
+ </edit>
+ </match>
+
+</fontconfig>
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
new file mode 100644
index 0000000..55151c6
--- /dev/null
+++ b/.config/nvim/init.lua
@@ -0,0 +1,14 @@
+require("install-mini")
+require("plugins")
+require("keys")
+
+vim.api.nvim_create_autocmd("BufWritePre", {
+ pattern = "*",
+ command = [[%s/\s\+$//e]],
+})
+
+vim.opt.tabstop = 4
+vim.opt.shiftwidth = 4
+vim.opt.expandtab = true
+
+vim.opt.relativenumber = true
diff --git a/.config/nvim/lua/install-mini.lua b/.config/nvim/lua/install-mini.lua
new file mode 100644
index 0000000..2d6ff45
--- /dev/null
+++ b/.config/nvim/lua/install-mini.lua
@@ -0,0 +1,12 @@
+local path_package = vim.fn.stdpath('data') .. '/site'
+local mini_path = path_package .. '/pack/deps/start/mini.nvim'
+if not vim.loop.fs_stat(mini_path) then
+ vim.cmd('echo "Installing `mini.nvim`" | redraw')
+ local clone_cmd = {
+ 'git', 'clone', '--filter=blob:none', 'https://github.com/nvim-mini/mini.nvim', mini_path
+ }
+ vim.fn.system(clone_cmd)
+ vim.cmd('packadd mini.nvim | helptags ALL')
+ vim.cmd('echo "Installed `mini.nvim`" | redraw')
+end
+
diff --git a/.config/nvim/lua/keys.lua b/.config/nvim/lua/keys.lua
new file mode 100644
index 0000000..b75a763
--- /dev/null
+++ b/.config/nvim/lua/keys.lua
@@ -0,0 +1,3 @@
+local k = vim.keymap.set
+
+k("n", "<Esc><Esc>", ":nohlsearch<CR>", { silent = true, desc = "Clear highlights" })
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
new file mode 100644
index 0000000..7b58c54
--- /dev/null
+++ b/.config/nvim/lua/plugins.lua
@@ -0,0 +1,25 @@
+require("mini.deps").setup({path = { package = path_package }})
+local add = MiniDeps.add
+
+add({source = "ellisonleao/gruvbox.nvim"})
+require("gruvbox").setup({
+ italic = {
+ strings = false,
+ emphasis = false,
+ comments = false,
+ operators = false,
+ folds = false,
+ },
+ transparent_mode = true
+})
+vim.o.background = "dark"
+vim.cmd.colorscheme("gruvbox")
+
+add({source = "nvim-java/nvim-java",
+ depends = {
+ "MunifTanjim/nui.nvim",
+ "mfussenegger/nvim-dap",
+ "JavaHello/spring-boot.nvim"
+}})
+require("java").setup()
+vim.lsp.enable("jdtls")
diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs
new file mode 100644
index 0000000..021f2ba
--- /dev/null
+++ b/.config/user-dirs.dirs
@@ -0,0 +1,9 @@
+XDG_DESKTOP_DIR="$HOME/src"
+XDG_DOWNLOAD_DIR="$HOME/dl"
+XDG_TEMPLATES_DIR="$HOME/dl"
+XDG_PUBLICSHARE_DIR="$HOME/docs"
+XDG_DOCUMENTS_DIR="$HOME/docs"
+XDG_MUSIC_DIR="$HOME/media"
+XDG_PICTURES_DIR="$HOME/media"
+XDG_VIDEOS_DIR="$HOME/media"
+XDG_PROJECTS_DIR="$HOME/src"
diff --git a/.xinitrc b/.xinitrc
new file mode 100644
index 0000000..163f473
--- /dev/null
+++ b/.xinitrc
@@ -0,0 +1,2 @@
+exec awesome
+xrdb "$HOME/.config/Xresources"