]> git.rmz.io Git - dotfiles.git/blob - awesome/themes/nord/theme.lua
b90cc14fa73a1d4517b36ea5385f12fbe6e6a371
[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 -- There are other variable sets
54 -- overriding the default one when
55 -- defined, the sets are:
56 -- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
57 -- tasklist_[bg|fg]_[focus|urgent]
58 -- titlebar_[bg|fg]_[normal|focus]
59 -- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
60 -- mouse_finder_[color|timeout|animate_timeout|radius|factor]
61 -- prompt_[fg|bg|fg_cursor|bg_cursor|font]
62 -- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
63 -- Example:
64 theme.taglist_bg_focus = theme.nord3
65
66 -- TODO icons
67 theme.taglist_icon_only = false
68
69 -- Display the taglist squares
70 local taglist_square_size = dpi(4)
71 theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
72 taglist_square_size, theme.fg_normal
73 )
74 theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
75 taglist_square_size, theme.fg_normal
76 )
77
78 -- Variables set for theming notifications:
79 -- notification_font
80 -- notification_[bg|fg]
81 -- notification_[width|height|margin]
82 -- notification_[border_color|border_width|shape|opacity]
83
84 -- Variables set for theming the menu:
85 -- menu_[bg|fg]_[normal|focus]
86 -- menu_[border_color|border_width]
87 theme.menu_submenu_icon = theme_path.."/submenu.png"
88 theme.menu_height = dpi(15)
89 theme.menu_width = dpi(100)
90 theme.menu_border_width = dpi(2)
91
92 -- You can add as many variables as
93 -- you wish and access them by using
94 -- beautiful.variable in your rc.lua
95 --theme.bg_widget = "#cc0000"
96
97 -- Define the image to load
98 theme.wallpaper = theme_path.."/background.png"
99
100 theme.layout_fairh = theme_path.."/layouts/fairhw.png"
101 theme.layout_fairv = theme_path.."/layouts/fairvw.png"
102 theme.layout_floating = theme_path.."/layouts/floatingw.png"
103 theme.layout_magnifier = theme_path.."/layouts/magnifierw.png"
104 theme.layout_max = theme_path.."/layouts/maxw.png"
105 theme.layout_fullscreen = theme_path.."/layouts/fullscreenw.png"
106 theme.layout_tilebottom = theme_path.."/layouts/tilebottomw.png"
107 theme.layout_tileleft = theme_path.."/layouts/tileleftw.png"
108 theme.layout_tile = theme_path.."/layouts/tilew.png"
109 theme.layout_tiletop = theme_path.."/layouts/tiletopw.png"
110 theme.layout_spiral = theme_path.."/layouts/spiralw.png"
111 theme.layout_dwindle = theme_path.."/layouts/dwindlew.png"
112 theme.layout_cornernw = theme_path.."/layouts/cornernww.png"
113 theme.layout_cornerne = theme_path.."/layouts/cornernew.png"
114 theme.layout_cornersw = theme_path.."/layouts/cornersww.png"
115 theme.layout_cornerse = theme_path.."/layouts/cornersew.png"
116
117 theme = theme_assets.recolor_layout(theme, theme.fg_normal)
118
119 -- Generate Awesome icon:
120 theme.awesome_icon = theme_assets.awesome_icon(
121 theme.menu_height, theme.bg_focus, theme.fg_focus
122 )
123
124 theme.mpd_default_album = theme_path.."/mpd_default_album.png"
125
126 -- Define the icon theme for application icons. If not set then the icons
127 -- from /usr/share/icons and /usr/share/icons/hicolor will be used.
128 theme.icon_theme = nil
129
130 return theme
131
132 -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80