theme.lua 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. -- Init theme, return it at the end
  2. local theme = {}
  3. local dpi = require("beautiful.xresources").apply_dpi
  4. -- Theme working directory
  5. theme.wd = "~/.config/awesome/themes/gruvbox/"
  6. -- wallpaper
  7. theme.wallpaper = theme.wd .. "wallpapers/background.png"
  8. -- awesome icon
  9. theme.awesome_icon = theme.wd .. "icons/aorus.png"
  10. theme.play_icon = theme.wd .. "icons/play.png"
  11. theme.pause_icon = theme.wd .. "icons/pause.png"
  12. theme.wired = theme.wd .. "icons/wired.png"
  13. theme.wired_na = theme.wd .. "icons/wired_na.png"
  14. theme.vpn = theme.wd .. "icons/vpn.png"
  15. theme.systray_visible_icon = theme.wd .. "icons/systray_visible_icon.png"
  16. theme.systray_hidden_icon = theme.wd .. "icons/systray_hidden_icon.png"
  17. -- fonts
  18. theme.base_font = "JetBrainsMono Nerd Font 10"
  19. theme.font = theme.base_font
  20. theme.hotkeys_font = theme.base_font
  21. theme.taglist_font = theme.base_font
  22. theme.icon_font = theme.base_font
  23. theme.hotkeys_description_font = theme.base_font
  24. -- colors
  25. theme.bg_normal = "#28282880"
  26. theme.bg_focus = "#3C383680"
  27. theme.fg_normal = "#ebdbb2"
  28. theme.fg_urgent = "#cc241d"
  29. theme.border_normal = "#928374"
  30. theme.border_focus = "#fabd2f"
  31. theme.bg_urgent = theme.bg_normal
  32. theme.bg_minimize = theme.bg_focus
  33. theme.bg_systray = theme.bg_normal
  34. theme.hotkeys_bg = theme.bg_normal
  35. theme.fg_focus = theme.fg_normal
  36. theme.fg_minimize = theme.fg_normal
  37. theme.hotkeys_fg = theme.fg_normal
  38. theme.hotkeys_border_color = theme.border_focus
  39. theme.hotkeys_border_width = theme.border_width
  40. theme.hotkeys_modifiers_fg = theme.fg_urgent
  41. -- borders and gaps
  42. theme.useless_gap = dpi(22)
  43. theme.border_width = dpi(2)
  44. theme.border_color_normal = "#fabd2f"
  45. theme.border_color_active = "#EBDBB2"
  46. theme.border_color_marked = "#928374"
  47. -- taglist
  48. theme.taglist_squares_sel = theme.wd .. "tags/focus.png"
  49. theme.taglist_squares_unsel = theme.wd .. "tags/base.png"
  50. theme.taglist_font = theme.taglist_font
  51. -- tasklist
  52. theme.tasklist_disable_icon = true
  53. -- menu
  54. theme.menu_submenu_icon = theme.wd .. "icons/submenu.png"
  55. theme.menu_height = dpi(20)
  56. theme.menu_width = dpi(180)
  57. -- layouts icons
  58. theme.layout_fairh = theme.wd .. "layouts/fairh.png"
  59. theme.layout_fairv = theme.wd .. "layouts/fairv.png"
  60. theme.layout_floating = theme.wd .. "layouts/floating.png"
  61. theme.layout_magnifier = theme.wd .. "layouts/magnifier.png"
  62. theme.layout_max = theme.wd .. "layouts/max.png"
  63. theme.layout_fullscreen = theme.wd .. "layouts/fullscreen.png"
  64. theme.layout_tilebottom = theme.wd .. "layouts/tilebottom.png"
  65. theme.layout_tileleft = theme.wd .. "layouts/tileleft.png"
  66. theme.layout_tile = theme.wd .. "layouts/tile.png"
  67. theme.layout_tiletop = theme.wd .. "layouts/tiletop.png"
  68. theme.layout_spiral = theme.wd .. "layouts/spiral.png"
  69. theme.layout_dwindle = theme.wd .. "layouts/dwindle.png"
  70. theme.layout_cornernw = theme.wd .. "layouts/cornernw.png"
  71. theme.layout_cornerne = theme.wd .. "layouts/cornerne.png"
  72. theme.layout_cornersw = theme.wd .. "layouts/cornersw.png"
  73. theme.layout_cornerse = theme.wd .. "layouts/cornerse.png"
  74. theme.layout_mstab = theme.wd .. "layouts/mstab.png"
  75. theme.layout_centered = theme.wd .. "layouts/centered.png"
  76. theme.layout_deck = theme.wd .. "layouts/deck.png"
  77. theme.layout_equalarea = theme.wd .. "layouts/equalarea.png"
  78. theme.layout_horizontal = theme.wd .. "layouts/horizontal.png"
  79. theme.layout_vertical = theme.wd .. "layouts/vertical.png"
  80. -- YAWL required theme settings
  81. theme.yawl_font = theme.font
  82. theme.yawl_bg = "#458588"
  83. theme.yawl_bg_ok = "#98971a"
  84. theme.yawl_bg_nok = "#cc241d"
  85. theme.yawl_fg = "#FFFFFF"
  86. theme.yawl_spotify_absent = theme.bg_normal
  87. theme.yawl_spotify_absent_fg = theme.fg_normal
  88. theme.yawl_spotify_pause = "#d79921"
  89. theme.yawl_spotify_play = "#d3869b"
  90. theme.yawl_battery_full = theme.yawl_bg_ok
  91. theme.yawl_battery_mid = "#d79921"
  92. theme.yawl_battery_low = theme.yawl_bg_nok
  93. theme.yawl_pomodoro_absent = theme.bg_normal
  94. theme.yawl_pomodoro = theme.fg_normal
  95. theme.yawl_pomodoro_working = "#d79921"
  96. theme.yawl_pomodoro_break = "#689d6a"
  97. theme.yawl_pomodoro_paused = "#cc241d"
  98. -- {{{ Titlebar
  99. theme.titlebar_close_button_focus = theme.wd .. "titlebars/close_focus.png"
  100. theme.titlebar_close_button_normal = theme.wd .. "titlebars/close_normal.png"
  101. theme.titlebar_ontop_button_focus_active = theme.wd .. "titlebars/ontop_focus_active.png"
  102. theme.titlebar_ontop_button_normal_active = theme.wd .. "titlebars/ontop_normal_active.png"
  103. theme.titlebar_ontop_button_focus_inactive = theme.wd .. "titlebars/ontop_focus_inactive.png"
  104. theme.titlebar_ontop_button_normal_inactive = theme.wd .. "titlebars/ontop_normal_inactive.png"
  105. theme.titlebar_minimize_button_focus = theme.wd .. "titlebars/minimize_focus.png"
  106. theme.titlebar_minimize_button_normal = theme.wd .. "titlebars/minimize_normal.png"
  107. --theme.titlebar_sticky_button_focus_active = theme.wd .. "titlebar/sticky_focus_active.png"
  108. --theme.titlebar_sticky_button_normal_active = theme.wd .. "titlebar/sticky_normal_active.png"
  109. --theme.titlebar_sticky_button_focus_inactive = theme.wd .. "titlebar/sticky_focus_inactive.png"
  110. --theme.titlebar_sticky_button_normal_inactive = theme.wd .. "titlebar/sticky_normal_inactive.png"
  111. --theme.titlebar_floating_button_focus_active = theme.wd .. "titlebar/floating_focus_active.png"
  112. --theme.titlebar_floating_button_normal_active = theme.wd .. "titlebar/floating_normal_active.png"
  113. --theme.titlebar_floating_button_focus_inactive = theme.wd .. "titlebar/floating_focus_inactive.png"
  114. --theme.titlebar_floating_button_normal_inactive = theme.wd .. "titlebar/floating_normal_inactive.png"
  115. theme.titlebar_maximized_button_focus_active = theme.wd .. "titlebars/maximized_focus_active.png"
  116. theme.titlebar_maximized_button_normal_active = theme.wd .. "titlebars/maximized_normal_active.png"
  117. theme.titlebar_maximized_button_focus_inactive = theme.wd .. "titlebars/maximized_focus_inactive.png"
  118. theme.titlebar_maximized_button_normal_inactive = theme.wd .. "titlebars/maximized_normal_inactive.png"
  119. -- }}}
  120. -- Naughty
  121. theme.naughty_bg_urgent = theme.bg_urgent
  122. theme.naughty_fg_urgent = theme.fg_urgent
  123. -- Define the icon theme for application icons. If not set then the icons
  124. -- from /usr/share/icons and /usr/share/icons/hicolor will be used.
  125. theme.icon_theme = "Gruvbox-Material-Dark"
  126. theme.task_preview_widget_border_radius = 0 -- Border radius of the widget (With AA)
  127. theme.task_preview_widget_bg = theme.bg_normal -- The bg color of the widget
  128. theme.task_preview_widget_border_color = theme.border_focus -- The border color of the widget
  129. theme.task_preview_widget_border_width = dpi(2) -- The border width of the widget
  130. theme.task_preview_widget_margin = 0
  131. theme.window_switcher_widget_bg = theme.bg_normal -- The bg color of the widget
  132. theme.window_switcher_widget_border_width = dpi(2) -- The border width of the widget
  133. theme.window_switcher_widget_border_radius = 0 -- The border radius of the widget
  134. theme.window_switcher_widget_border_color = theme.border_focus -- The border color of the widget
  135. theme.window_switcher_clients_spacing = 20 -- The space between each client item
  136. theme.window_switcher_client_icon_horizontal_spacing = 5 -- The space between client icon and text
  137. theme.window_switcher_client_width = 300 -- The width of one client widget
  138. theme.window_switcher_client_height = 300 -- The height of one client widget
  139. theme.window_switcher_client_margins = 10 -- The margin between the content and the border of the widget
  140. theme.window_switcher_thumbnail_margins = 10 -- The margin between one client thumbnail and the rest of the widget
  141. theme.thumbnail_scale = false -- If set to true, the thumbnails fit policy will be set to "fit" instead of "auto"
  142. theme.window_switcher_name_margins = 10 -- The margin of one clients title to the rest of the widget
  143. theme.window_switcher_name_valign = "center" -- How to vertically align one clients title
  144. theme.window_switcher_name_forced_width = 200 -- The width of one title
  145. theme.window_switcher_name_font = "JetBrainsMono Nerd Font 10" -- The font of all titles
  146. theme.window_switcher_name_normal_color = theme.border_normal -- The color of one title if the client is unfocused
  147. theme.window_switcher_name_focus_color = theme.fg_focus -- The color of one title if the client is focused
  148. theme.window_switcher_icon_valign = "center" -- How to vertically align the one icon
  149. theme.window_switcher_icon_width = 10
  150. return theme