Reno is the second iteration of the AWMTK-powered AwesomeWM config.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
6.1 KiB

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