48 lines
1.9 KiB
Lua
48 lines
1.9 KiB
Lua
local gears = require("gears")
|
|
local beautiful = require("beautiful")
|
|
local naughty = require("naughty")
|
|
local colors = require("config.colors")
|
|
|
|
beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
|
|
|
|
beautiful.useless_gap = 8
|
|
beautiful.gap_single_client = true
|
|
beautiful.font = "JetBrainsMono Nerd Font 11"
|
|
beautiful.border_width = 4
|
|
beautiful.border_normal = colors.background_alt
|
|
beautiful.border_focus = colors.accent
|
|
|
|
beautiful.taglist_bg_focus = colors.accent
|
|
beautiful.taglist_fg_focus = colors.background
|
|
beautiful.taglist_fg_occupied = colors.white
|
|
beautiful.taglist_bg_occupied = colors.background
|
|
beautiful.taglist_fg_empty = colors.disabled
|
|
beautiful.taglist_bg_empty = colors.background
|
|
beautiful.taglist_bg_urgent = colors.red
|
|
beautiful.taglist_fg_urgent = colors.background
|
|
|
|
beautiful.bg_systray = colors.background
|
|
beautiful.systray_icon_spacing = 4
|
|
|
|
-- Notifications, styled to match the wibar/client theme
|
|
naughty.config.defaults.position = "top_right"
|
|
naughty.config.defaults.timeout = 5
|
|
naughty.config.padding = 12
|
|
naughty.config.defaults.margin = 12
|
|
naughty.config.defaults.spacing = 8
|
|
naughty.config.defaults.icon_size = 48
|
|
naughty.config.defaults.border_width = 3
|
|
naughty.config.defaults.font = "JetBrainsMono Nerd Font 11"
|
|
naughty.config.defaults.shape = function(cr, w, h) gears.shape.rounded_rect(cr, w, h, 13) end
|
|
|
|
naughty.config.presets.normal = {
|
|
bg = colors.background, fg = colors.foreground, border_color = colors.background_alt,
|
|
border_width = 3, font = "JetBrainsMono Nerd Font 11", timeout = 5,
|
|
}
|
|
naughty.config.presets.low = naughty.config.presets.normal
|
|
naughty.config.presets.critical = {
|
|
bg = colors.background, fg = colors.red, border_color = colors.red,
|
|
border_width = 3, font = "JetBrainsMono Nerd Font 11", timeout = 0, -- stays until dismissed
|
|
}
|
|
|