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
|
local gears = require "gears"
local gfs = require("gears.filesystem")
local xresources = require "beautiful.xresources"
local x_col = xresources.get_current_theme()
local dpi = xresources.apply_dpi
local shape = function(cr,w,h)
gears.shape.rounded_rect(cr,w,h,8)
end
local border_width = dpi(1.5)
local font = "FiraCode Nerd Font Mono SemiBold 8"
local theme_path = gfs.get_configuration_dir() .. "themes/prismite/"
local colors = {
fg = x_col.foreground,
bg = x_col.background,
black = x_col.color0,
red = x_col.color1,
green = x_col.color2,
yellow = x_col.color3,
blue = x_col.color4,
magenta = x_col.color5,
cyan = x_col.color6,
white = x_col.color7,
bright = {
black = x_col.color8,
red = x_col.color9,
green = x_col.color10,
yellow = x_col.color11,
blue = x_col.color12,
magenta = x_col.color13,
cyan = x_col.color14,
white = x_col.color15,
}
}
local vars = {
["shape"] = shape,
["colors"] = colors,
["border_width"] = border_width,
["font"] = font,
["theme_path"] = theme_path
}
return vars
|