]> git.rmz.io Git - dotfiles.git/blob - awesome/themes/nord/theme.lua
vim: do not set pastetoggle in nvim
[dotfiles.git] / awesome / themes / nord / theme.lua
1 ---------------------------
2 -- Default awesome theme --
3 ---------------------------
4
5 local theme_assets = require("beautiful.theme_assets")
6 local xresources = require("beautiful.xresources")
7 local dpi = xresources.apply_dpi
8
9 local gfs = require("gears.filesystem")
10 local theme_path = require("beautiful").theme_path
11
12 local theme = {}
13
14 theme.nord0 = "#2E3440"
15 theme.nord1 = "#3B4252"
16 theme.nord2 = "#434C5E"
17 theme.nord3 = "#4C566A"
18 theme.nord4 = "#D8DEE9"
19 theme.nord5 = "#E5E9F0"
20 theme.nord6 = "#ECEFF4"
21 theme.nord7 = "#8FBCBB"
22 theme.nord8 = "#88C0D0"
23 theme.nord9 = "#81A1C1"
24 theme.nord10 = "#5E81AC"
25 theme.nord11 = "#BF616A"
26 theme.nord12 = "#D08770"
27 theme.nord13 = "#EBCB8B"
28 theme.nord14 = "#A3BE8C"
29 theme.nord15 = "#B48EAD"
30
31 theme.font = "Droid Sans 8"
32
33 theme.bg_normal = theme.nord0
34 theme.bg_focus = theme.nord1
35 theme.bg_urgent = theme.nord11
36 theme.bg_minimize = theme.bg_normal
37 theme.bg_systray = theme.bg_normal
38
39 theme.fg_normal = theme.nord4
40 theme.fg_focus = theme.fg_normal
41 theme.fg_urgent = theme.fg_normal
42 theme.fg_minimize = theme.fg_normal
43
44 theme.useless_gap = dpi(0)
45 theme.border_width = dpi(5)
46 theme.border_normal = theme.nord1
47 theme.border_focus = theme.nord3
48 theme.border_marked = theme.nord14
49
50 theme.tooltip_fg = theme.fg_normal
51 theme.tooltip_bg = theme.bg_normal
52
53 theme.wibar_height = dpi(20)
54
55 -- There are other variable sets
56 -- overriding the default one when
57 -- defined, the sets are:
58 -- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
59 -- tasklist_[bg|fg]_[focus|urgent]
60 -- titlebar_[bg|fg]_[normal|focus]
61 -- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
62 -- mouse_finder_[color|timeout|animate_timeout|radius|factor]
63 -- prompt_[fg|bg|fg_cursor|bg_cursor|font]
64 -- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
65 -- Example:
66 theme.taglist_bg_focus = theme.nord3
67
68 theme.taglist_icon_only = true
69 theme.taglist_icon_01 = theme_path.."/runi/A.svg"
70 theme.taglist_icon_02 = theme_path.."/runi/B.svg"
71 theme.taglist_icon_03 = theme_path.."/runi/C.svg"
72 theme.taglist_icon_04 = theme_path.."/runi/D.svg"
73 theme.taglist_icon_05 = theme_path.."/runi/E.svg"
74 theme.taglist_icon_06 = theme_path.."/runi/F.svg"
75 theme.taglist_icon_07 = theme_path.."/runi/G.svg"
76 theme.taglist_icon_08 = theme_path.."/runi/H.svg"
77 theme.taglist_icon_09 = theme_path.."/runi/I.svg"
78 theme.taglist_icon_10 = theme_path.."/runi/J.svg"
79 theme.taglist_icon_11 = theme_path.."/runi/K.svg"
80 theme.taglist_icon_12 = theme_path.."/runi/L.svg"
81 theme.taglist_icon_13 = theme_path.."/runi/Y.svg" -- M is not great
82 theme.taglist_icon_14 = theme_path.."/runi/N.svg"
83 theme.taglist_icon_15 = theme_path.."/runi/O.svg"
84 theme.taglist_icon_16 = theme_path.."/runi/P.svg"
85 theme.taglist_icon_17 = theme_path.."/runi/R.svg"
86 theme.taglist_icon_18 = theme_path.."/runi/S.svg"
87 theme.taglist_icon_19 = theme_path.."/runi/T.svg"
88 theme.taglist_icon_20 = theme_path.."/runi/U.svg"
89 theme.taglist_icon_21 = theme_path.."/runi/V.svg"
90 theme.taglist_icon_22 = theme_path.."/runi/W.svg"
91 theme.taglist_icon_23 = theme_path.."/runi/Y.svg"
92 theme.taglist_icon_24 = theme_path.."/runi/Z.svg"
93
94 local recolor_image = require("gears.color").recolor_image
95 for i=0,24 do
96 local name = 'taglist_icon_'..string.format('%02d', i)
97 print(name)
98 local image = theme[name]
99 if image then
100 theme[name] = recolor_image(image, theme.nord4)
101 end
102 end
103
104 -- Display the taglist squares
105 local taglist_square_size = dpi(4)
106 theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
107 taglist_square_size, theme.fg_normal
108 )
109 theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
110 taglist_square_size, theme.fg_normal
111 )
112
113 -- Variables set for theming notifications:
114 -- notification_font
115 -- notification_[bg|fg]
116 -- notification_[width|height|margin]
117 -- notification_[border_color|border_width|shape|opacity]
118
119 -- Variables set for theming the menu:
120 -- menu_[bg|fg]_[normal|focus]
121 -- menu_[border_color|border_width]
122 theme.menu_submenu_icon = theme_path.."/submenu.png"
123 theme.menu_height = dpi(15)
124 theme.menu_width = dpi(100)
125 theme.menu_border_width = dpi(2)
126
127 -- You can add as many variables as
128 -- you wish and access them by using
129 -- beautiful.variable in your rc.lua
130 --theme.bg_widget = "#cc0000"
131
132 -- Define the image to load
133 theme.wallpaper = theme_path.."/background.png"
134
135 theme.layout_fairh = theme_path.."/layouts/fairhw.png"
136 theme.layout_fairv = theme_path.."/layouts/fairvw.png"
137 theme.layout_floating = theme_path.."/layouts/floatingw.png"
138 theme.layout_magnifier = theme_path.."/layouts/magnifierw.png"
139 theme.layout_max = theme_path.."/layouts/maxw.png"
140 theme.layout_fullscreen = theme_path.."/layouts/fullscreenw.png"
141 theme.layout_tilebottom = theme_path.."/layouts/tilebottomw.png"
142 theme.layout_tileleft = theme_path.."/layouts/tileleftw.png"
143 theme.layout_tile = theme_path.."/layouts/tilew.png"
144 theme.layout_tiletop = theme_path.."/layouts/tiletopw.png"
145 theme.layout_spiral = theme_path.."/layouts/spiralw.png"
146 theme.layout_dwindle = theme_path.."/layouts/dwindlew.png"
147 theme.layout_cornernw = theme_path.."/layouts/cornernww.png"
148 theme.layout_cornerne = theme_path.."/layouts/cornernew.png"
149 theme.layout_cornersw = theme_path.."/layouts/cornersww.png"
150 theme.layout_cornerse = theme_path.."/layouts/cornersew.png"
151
152 theme = theme_assets.recolor_layout(theme, theme.fg_normal)
153
154 -- Generate Awesome icon:
155 theme.awesome_icon = theme_assets.awesome_icon(
156 theme.menu_height, theme.bg_focus, theme.fg_focus
157 )
158
159 theme.mpd_default_album = theme_path.."/mpd_default_album.png"
160
161 -- Define the icon theme for application icons. If not set then the icons
162 -- from /usr/share/icons and /usr/share/icons/hicolor will be used.
163 theme.icon_theme = nil
164
165 return theme
166
167 -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80