-
Notifications
You must be signed in to change notification settings - Fork 3
/
theme.lua
executable file
·98 lines (79 loc) · 3.51 KB
/
theme.lua
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
-- Entry point for themes
local bling = require("bling")
local gears = require("gears")
local awful = require("awful")
local dpi = require("beautiful.xresources").apply_dpi
local bar = require("bar.bar")
local naughty = require("naughty")
-- For changing themes
local chosen_theme = "ef-deuteranopia-light"
local colors = require("themes." .. chosen_theme .. ".colors")
local theme = colors
-- theme.font = "Iosevka Nerd Font 10"
theme.font = "Iosevka Comfy 10"
theme.taglist_font = theme.font
-- theme.taglist_font = "awesomewm-font 13"
theme.notification_font = "Iosevka Comfy 19"
theme.notification_max_width = 400
theme.fg_normal = theme.fg_main
theme.fg_focus = theme.fb_main
theme.bg_normal = theme.bg_main
theme.bg_focus = theme.bg_main
theme.fg_urgent = theme.red
theme.bg_urgent = theme.black
theme.border_normal = theme.bg_main
theme.border_focus = theme.bg_accent_alt
theme.taglist_fg_focus = theme.fg_main
theme.taglist_bg_focus = theme.bg_alt
theme.taglist_fg_occupied = theme.fg_main
-- theme.taglist_bg_occupied = theme.bg_inactive
theme.taglist_fg_empty = theme.fg_dim
theme.taglist_fg_urgent = theme.fg_main
theme.taglist_bg_urgent = theme.red
theme.barcolor = theme.bg_main
theme.bg_systray = theme.bg_main
theme.border_width = dpi(2)
theme.useless_gap = dpi(4)
-- theme.useless_gap = dpi(0)
theme.tasklist_plain_task_name = true
theme.tasklist_disable_icon = true
theme.notification_fg = theme.fg_accent_alt
theme.notification_bg = theme.bg_accent_alt
theme.notification_border_color = theme.bg_accent_alt
naughty.config.defaults.margin = dpi(12)
theme.menubar_fg_focus = theme.fg_accent_alt
theme.menubar_bg_focus = theme.bg_accent_alt
theme.menubar_fg_normal = theme.fg_dim
theme.menubar_bg_normal = theme.bg_main
theme.menubar_border_color = theme.bg_main
theme.menubar_border_width = dpi(4)
-- Rounded corners
-- theme.rounded_corner = 16
-- theme.notification_shape = function (cr, w, h)
-- gears.shape.rounded_rect(cr, w, h, theme.rounded_corner)
-- end
awful.util.tagnames = { "1", "2", "3", "4", "5", "6", "7" }
-- awful.util.tagnames = { "A", "W", "E", "S", "O", "M", "E" }
function theme.at_screen_connect(s)
if theme.wallpaper:match("^#") then
-- local symbol = "♥"
local symbol = "⚝"
bling.module.tiled_wallpaper(symbol, s, {
fg = theme.bg_accent_alt, -- define the foreground color
bg = theme.wallpaper, -- define the background color
offset_y = 10, -- set a y offset
offset_x = 10, -- set a x offset
font = "Noto Sans Symbols", -- set the font (without the size)
font_size = 30, -- set the font size
padding = 140, -- set padding (default is 100)
zickzack = true -- rectangular pattern or criss cross
})
-- gears.wallpaper.set(theme.wallpaper, s, true)
else
gears.wallpaper.maximized(theme.wallpaper, s, true)
end
-- Tags
awful.tag(awful.util.tagnames, s, awful.layout.layouts[1])
bar(s, theme)
end
return theme