--------------------------- -- Default awesome theme -- --------------------------- local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local gfs = require("gears.filesystem") local theme_path = require("beautiful").theme_path local theme = {} theme.nord0 = "#2E3440" theme.nord1 = "#3B4252" theme.nord2 = "#434C5E" theme.nord3 = "#4C566A" theme.nord4 = "#D8DEE9" theme.nord5 = "#E5E9F0" theme.nord6 = "#ECEFF4" theme.nord7 = "#8FBCBB" theme.nord8 = "#88C0D0" theme.nord9 = "#81A1C1" theme.nord10 = "#5E81AC" theme.nord11 = "#BF616A" theme.nord12 = "#D08770" theme.nord13 = "#EBCB8B" theme.nord14 = "#A3BE8C" theme.nord15 = "#B48EAD" theme.font = "Droid Sans 8" theme.bg_normal = theme.nord0 theme.bg_focus = theme.nord1 theme.bg_urgent = theme.nord11 theme.bg_minimize = theme.bg_normal theme.bg_systray = theme.bg_normal theme.fg_normal = theme.nord4 theme.fg_focus = theme.fg_normal theme.fg_urgent = theme.fg_normal theme.fg_minimize = theme.fg_normal theme.useless_gap = dpi(0) theme.border_width = dpi(5) theme.border_normal = theme.nord1 theme.border_focus = theme.nord3 theme.border_marked = theme.nord14 theme.tooltip_fg = theme.fg_normal theme.tooltip_bg = theme.bg_normal theme.wibar_height = dpi(20) -- There are other variable sets -- overriding the default one when -- defined, the sets are: -- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile] -- tasklist_[bg|fg]_[focus|urgent] -- titlebar_[bg|fg]_[normal|focus] -- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color] -- mouse_finder_[color|timeout|animate_timeout|radius|factor] -- prompt_[fg|bg|fg_cursor|bg_cursor|font] -- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font] -- Example: theme.taglist_bg_focus = theme.nord3 theme.taglist_icon_only = true theme.taglist_icon_01 = theme_path.."/runi/A.svg" theme.taglist_icon_02 = theme_path.."/runi/B.svg" theme.taglist_icon_03 = theme_path.."/runi/C.svg" theme.taglist_icon_04 = theme_path.."/runi/D.svg" theme.taglist_icon_05 = theme_path.."/runi/E.svg" theme.taglist_icon_06 = theme_path.."/runi/F.svg" theme.taglist_icon_07 = theme_path.."/runi/G.svg" theme.taglist_icon_08 = theme_path.."/runi/H.svg" theme.taglist_icon_09 = theme_path.."/runi/I.svg" theme.taglist_icon_10 = theme_path.."/runi/J.svg" theme.taglist_icon_11 = theme_path.."/runi/K.svg" theme.taglist_icon_12 = theme_path.."/runi/L.svg" theme.taglist_icon_13 = theme_path.."/runi/Y.svg" -- M is not great theme.taglist_icon_14 = theme_path.."/runi/N.svg" theme.taglist_icon_15 = theme_path.."/runi/O.svg" theme.taglist_icon_16 = theme_path.."/runi/P.svg" theme.taglist_icon_17 = theme_path.."/runi/R.svg" theme.taglist_icon_18 = theme_path.."/runi/S.svg" theme.taglist_icon_19 = theme_path.."/runi/T.svg" theme.taglist_icon_20 = theme_path.."/runi/U.svg" theme.taglist_icon_21 = theme_path.."/runi/V.svg" theme.taglist_icon_22 = theme_path.."/runi/W.svg" theme.taglist_icon_23 = theme_path.."/runi/Y.svg" theme.taglist_icon_24 = theme_path.."/runi/Z.svg" local recolor_image = require("gears.color").recolor_image for i=0,24 do local name = 'taglist_icon_'..string.format('%02d', i) print(name) local image = theme[name] if image then theme[name] = recolor_image(image, theme.nord4) end end -- Display the taglist squares local taglist_square_size = dpi(4) theme.taglist_squares_sel = theme_assets.taglist_squares_sel( taglist_square_size, theme.fg_normal ) theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel( taglist_square_size, theme.fg_normal ) -- Variables set for theming notifications: -- notification_font -- notification_[bg|fg] -- notification_[width|height|margin] -- notification_[border_color|border_width|shape|opacity] -- Variables set for theming the menu: -- menu_[bg|fg]_[normal|focus] -- menu_[border_color|border_width] theme.menu_submenu_icon = theme_path.."/submenu.png" theme.menu_height = dpi(15) theme.menu_width = dpi(100) theme.menu_border_width = dpi(2) -- You can add as many variables as -- you wish and access them by using -- beautiful.variable in your rc.lua --theme.bg_widget = "#cc0000" -- Define the image to load theme.wallpaper = theme_path.."/background.png" theme.layout_fairh = theme_path.."/layouts/fairhw.png" theme.layout_fairv = theme_path.."/layouts/fairvw.png" theme.layout_floating = theme_path.."/layouts/floatingw.png" theme.layout_magnifier = theme_path.."/layouts/magnifierw.png" theme.layout_max = theme_path.."/layouts/maxw.png" theme.layout_fullscreen = theme_path.."/layouts/fullscreenw.png" theme.layout_tilebottom = theme_path.."/layouts/tilebottomw.png" theme.layout_tileleft = theme_path.."/layouts/tileleftw.png" theme.layout_tile = theme_path.."/layouts/tilew.png" theme.layout_tiletop = theme_path.."/layouts/tiletopw.png" theme.layout_spiral = theme_path.."/layouts/spiralw.png" theme.layout_dwindle = theme_path.."/layouts/dwindlew.png" theme.layout_cornernw = theme_path.."/layouts/cornernww.png" theme.layout_cornerne = theme_path.."/layouts/cornernew.png" theme.layout_cornersw = theme_path.."/layouts/cornersww.png" theme.layout_cornerse = theme_path.."/layouts/cornersew.png" theme = theme_assets.recolor_layout(theme, theme.fg_normal) -- Generate Awesome icon: theme.awesome_icon = theme_assets.awesome_icon( theme.menu_height, theme.bg_focus, theme.fg_focus ) theme.mpd_default_album = theme_path.."/mpd_default_album.png" -- Define the icon theme for application icons. If not set then the icons -- from /usr/share/icons and /usr/share/icons/hicolor will be used. theme.icon_theme = nil return theme -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80