theme.lua 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. -------------------------------
  2. -- My Material awesome theme --
  3. -------------------------------
  4. local theme_assets = require("beautiful.theme_assets")
  5. local xresources = require("beautiful.xresources")
  6. local dpi = xresources.apply_dpi
  7. local gfs = require("gears.filesystem")
  8. local themes_path = gfs.get_themes_dir()
  9. local home = os.getenv("HOME")
  10. local theme = {}
  11. theme.dir = home.."/.config/awesome/themes"
  12. theme.font = "Sarasa Mono SC Nerd 12"
  13. theme.taglist_font = "Ubuntu Nerd Font 12"
  14. theme.bg_normal = "#263238"
  15. theme.bg_focus = "#009185"
  16. theme.bg_urgent = "#e53935"
  17. -- theme.bg_minimize = "#3c4a4f"
  18. theme.bg_systray = theme.bg_normal
  19. theme.systray_icon_spacing = dpi(1)
  20. theme.fg_normal = "#dbdcd5"
  21. theme.fg_focus = "#f7f51b"
  22. theme.fg_urgent = theme.fg_normal
  23. theme.fg_minimize = theme.fg_normal
  24. theme.useless_gap = dpi(4)
  25. theme.gap_single_client = true
  26. theme.border_width = dpi(3)
  27. theme.border_normal = "#1d2330"
  28. theme.border_focus = "#2eb398"
  29. theme.border_marked = "#91231c"
  30. theme.taglist_fg_focus = theme.fg_focus
  31. -- theme.tasklist_bg_focus = "#000000"
  32. -- theme.tasklist_fg_focus = "#A77AC4"
  33. -- theme.taglist_squares_sel = theme.dir.."/icons/square_sel.png"
  34. -- theme.taglist_squares_unsel = theme.dir.."/icons/square_unsel.png"
  35. -- theme.taglist_squares_sel = theme.dir .. "/mymaterial/taglist/focus.png"
  36. -- theme.taglist_squares_unsel = theme.dir .. "/mymaterial/taglist/base.png"
  37. -- Generate taglist squares:
  38. local taglist_square_size = dpi(5)
  39. theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
  40. taglist_square_size, theme.fg_focus
  41. )
  42. theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
  43. taglist_square_size, theme.fg_focus
  44. )
  45. theme.titlebar_bg_focus = "#3c4a4f"
  46. theme.titlebar_bg_normal = "#3c4a4f"
  47. theme.titlebar_bg_focus = theme.bg_focus
  48. theme.titlebar_bg_normal = theme.bg_normal
  49. theme.titlebar_fg_focus = theme.fg_focus
  50. theme.tooltip_border_width = dpi(1)
  51. theme.tooltip_border_color = theme.bg_focus
  52. theme.popup_bg_color = theme.bg_normal
  53. theme.popup_border_width = 1
  54. theme.popup_border_color = theme.bg_focus
  55. theme.hotkeys_bg = theme.bg_normal
  56. theme.hotkeys_fg = theme.fg_normal
  57. theme.hotkeys_border_width = dpi(1)
  58. theme.hotkeys_border_color = theme.bg_focus
  59. theme.hotkeys_font = theme.font
  60. theme.hotkeys_description_font = "Sarasa Mono SC Nerd 13"
  61. theme.hotkeys_modifiers_fg = "#ebe92e"
  62. theme.hotkeys_label_fg = "#000000"
  63. theme.hotkeys_group_rules = { }
  64. theme.tooltip_border_width = dpi(1)
  65. theme.tooltip_border_color = theme.bg_focus
  66. -- There are other variable sets
  67. -- overriding the default one when
  68. -- defined, the sets are:
  69. -- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
  70. -- tasklist_[bg|fg]_[focus|urgent]
  71. -- titlebar_[bg|fg]_[normal|focus]
  72. -- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
  73. -- mouse_finder_[color|timeout|animate_timeout|radius|factor]
  74. -- prompt_[fg|bg|fg_cursor|bg_cursor|font]
  75. -- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
  76. -- Example:
  77. --theme.taglist_bg_focus = "#ff0000"
  78. -- Variables set for theming notifications:
  79. -- theme.notification_font = "Ubuntu Nerd Font 15"
  80. theme.notification_border_color = theme.bg_focus -- Doesn't work!!!
  81. theme.notification_border_width = dpi(7) -- Doesn't work!!!
  82. theme.notification_timeout = dpi(3)
  83. -- notification_[bg|fg]
  84. -- notification_[width|height|margin]
  85. -- notification_[border_color|border_width|shape|opacity]
  86. -- Variables set for theming the menu:
  87. -- menu_[bg|fg]_[normal|focus]
  88. -- menu_[border_color|border_width]
  89. theme.menu_submenu_icon = themes_path.."default/submenu.png"
  90. theme.menu_height = dpi(25)
  91. theme.menu_width = dpi(200)
  92. -- theme.menu.border_width = dpi(1) -- Doesn't work!!!
  93. -- theme.menu.border_color = theme.bg_focus -- Doesn't work!!!
  94. -- You can add as many variables as
  95. -- you wish and access them by using
  96. -- beautiful.variable in your rc.lua
  97. --theme.bg_widget = "#cc0000"
  98. -- Define the image to load
  99. theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png"
  100. theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png"
  101. theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png"
  102. theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png"
  103. theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png"
  104. theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png"
  105. theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png"
  106. theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png"
  107. theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png"
  108. theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png"
  109. theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png"
  110. theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png"
  111. theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png"
  112. theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png"
  113. theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png"
  114. theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png"
  115. theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png"
  116. theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png"
  117. theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png"
  118. theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
  119. theme.wallpaper = themes_path.."default/background.png"
  120. -- You can use your own layout icons like this:
  121. theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
  122. theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
  123. theme.layout_floating = themes_path.."default/layouts/floatingw.png"
  124. theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
  125. theme.layout_max = themes_path.."default/layouts/maxw.png"
  126. theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
  127. theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
  128. theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
  129. theme.layout_tile = themes_path.."default/layouts/tilew.png"
  130. theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
  131. theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
  132. theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
  133. theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
  134. theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
  135. theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
  136. theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
  137. -- Generate Awesome icon:
  138. theme.awesome_icon = theme_assets.awesome_icon(
  139. theme.menu_height, theme.bg_focus, theme.fg_focus
  140. )
  141. -- Define the icon theme for application icons. If not set then the icons
  142. -- from /usr/share/icons and /usr/share/icons/hicolor will be used.
  143. theme.icon_theme = nil
  144. return theme
  145. -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80