X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/baa128cd1c95352103ac83027733489151648f2d..9cfb2638d9dd4a28b055cab36c026624e5bf7af8:/awesome/themes/nord/theme.lua diff --git a/awesome/themes/nord/theme.lua b/awesome/themes/nord/theme.lua new file mode 100644 index 0000000..9614695 --- /dev/null +++ b/awesome/themes/nord/theme.lua @@ -0,0 +1,132 @@ +--------------------------- +-- 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.bg_normal +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 + +-- 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 + +-- TODO icons +theme.taglist_icon_only = false + +-- 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