theme.lua_LAST 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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 awesome_themes_dir = home.."/.config/awesome/themes"
  11. local theme = {}
  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 = "#ff0000"
  17. theme.bg_minimize = "#3c4a4f"
  18. theme.bg_systray = theme.bg_normal
  19. theme.fg_normal = "#dbdcd5"
  20. theme.fg_focus = "#f7f51b"
  21. theme.fg_urgent = "#ffffff"
  22. theme.fg_minimize = "#ffffff"
  23. theme.useless_gap = dpi(4)
  24. theme.border_width = dpi(3)
  25. theme.border_normal = "#1d2330"
  26. theme.border_focus = "#2eb398"
  27. theme.border_marked = "#91231c"
  28. -- There are other variable sets
  29. -- overriding the default one when
  30. -- defined, the sets are:
  31. -- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
  32. -- tasklist_[bg|fg]_[focus|urgent]
  33. -- titlebar_[bg|fg]_[normal|focus]
  34. -- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
  35. -- mouse_finder_[color|timeout|animate_timeout|radius|factor]
  36. -- prompt_[fg|bg|fg_cursor|bg_cursor|font]
  37. -- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
  38. -- Example:
  39. --theme.taglist_bg_focus = "#ff0000"
  40. -- Generate taglist squares:
  41. local taglist_square_size = dpi(5)
  42. theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
  43. taglist_square_size, theme.fg_focus
  44. )
  45. theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
  46. taglist_square_size, theme.fg_normal
  47. )
  48. -- theme.taglist_squares_sel = awesome_themes_dir .. "/mymaterial/taglist/focus.png"
  49. -- theme.taglist_squares_unsel = awesome_themes_dir .. "/mymaterial/taglist/base.png"
  50. -- Variables set for theming notifications:
  51. theme.notification_font = "Ubuntu Nerd Font 15"
  52. theme.notification_bg = theme.bg_normal
  53. theme.notification_fg = theme.fg_normal
  54. theme.notification_border_color = theme.bg_focus
  55. theme.notification_border_width = 7
  56. theme.notification_timeout = 5
  57. -- notification_[bg|fg]
  58. -- notification_[width|height|margin]
  59. -- notification_[border_color|border_width|shape|opacity]
  60. -- Variables set for theming the menu:
  61. -- menu_[bg|fg]_[normal|focus]
  62. -- menu_[border_color|border_width]
  63. theme.menu_submenu_icon = themes_path.."default/submenu.png"
  64. theme.menu_height = dpi(15)
  65. theme.menu_width = dpi(100)
  66. -- You can add as many variables as
  67. -- you wish and access them by using
  68. -- beautiful.variable in your rc.lua
  69. --theme.bg_widget = "#cc0000"
  70. -- Define the image to load
  71. theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png"
  72. theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png"
  73. theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png"
  74. theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png"
  75. theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png"
  76. theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png"
  77. theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png"
  78. theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png"
  79. theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png"
  80. theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png"
  81. theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png"
  82. theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png"
  83. theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png"
  84. theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png"
  85. theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png"
  86. theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png"
  87. theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png"
  88. theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png"
  89. theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png"
  90. theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
  91. theme.wallpaper = themes_path.."default/background.png"
  92. -- You can use your own layout icons like this:
  93. theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
  94. theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
  95. theme.layout_floating = themes_path.."default/layouts/floatingw.png"
  96. theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
  97. theme.layout_max = themes_path.."default/layouts/maxw.png"
  98. theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
  99. theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
  100. theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
  101. theme.layout_tile = themes_path.."default/layouts/tilew.png"
  102. theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
  103. theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
  104. theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
  105. theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
  106. theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
  107. theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
  108. theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
  109. -- Generate Awesome icon:
  110. theme.awesome_icon = theme_assets.awesome_icon(
  111. theme.menu_height, theme.bg_focus, theme.fg_focus
  112. )
  113. -- Define the icon theme for application icons. If not set then the icons
  114. -- from /usr/share/icons and /usr/share/icons/hicolor will be used.
  115. theme.icon_theme = nil
  116. return theme
  117. -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80