Advertisement
constantin-net

haru2

Mar 15th, 2021
743
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.45 KB | None | 0 0
  1. -------------------------------
  2. --  "Haru" awesome theme  --
  3. --      default based     --
  4. -------------------------------
  5. ----------------------------
  6.  
  7. -- {{{ Main
  8. local theme_assets = require("beautiful.theme_assets")
  9. local xresources = require("beautiful.xresources")
  10. local dpi = xresources.apply_dpi
  11.  
  12. --local gfs = require("gears.filesystem")
  13. --local themes_path = gfs.get_themes_dir()
  14. local themes_path = config_dir .. "themes/"
  15.  
  16. theme = {}
  17.  
  18. theme.wallpaper = themes_path .. "haru/background.png"
  19. -- }}}
  20.  
  21. -- {{{ Styles
  22. theme.font          = "Droid Sans 11"
  23.  
  24. -- {{{ Colors
  25. theme.bg_normal     = "#615666"
  26. theme.bg_focus      = "#636363"
  27. theme.bg_urgent     = "#C17593"
  28. theme.bg_minimize   = "#453E46"
  29. theme.bg_systray    = theme.bg_normal
  30.  
  31. theme.fg_normal     = "#A8989F"
  32. theme.fg_focus      = "#FDFCFC"
  33. theme.fg_urgent     = "#ffffff"
  34. theme.fg_minimize   = "#aaaaaa"
  35.  
  36. theme.useless_gap = dpi(6)
  37. theme.useless_gap_width = dpi(6)
  38.  
  39. -- }}}
  40.  
  41. -- {{{ Borders
  42. theme.border_width  = dpi(5)
  43. theme.border_normal = "#726271"
  44. theme.border_focus  = "#b07a99"
  45. theme.border_marked = "#91231c"
  46.  
  47. theme.bg_systray    = theme.border_normal
  48. theme.systray_icon_spacing = 2
  49. -- }}}
  50.  
  51. -- {{{ Useless gap
  52.  
  53. -- }}}
  54.  
  55. --theme.bg_systray = "#FF00FF"
  56.  
  57. -- There are other variable sets
  58. -- overriding the default one when
  59. -- defined, the sets are:
  60. -- [taglist|tasklist]_[bg|fg]_[focus|urgent]
  61. -- titlebar_[bg|fg]_[normal|focus]
  62. -- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
  63. -- mouse_finder_[color|timeout|animate_timeout|radius|factor]
  64. -- Example:
  65. --theme.taglist_bg_focus = "#00000000"
  66. --theme.taglist_bg_focus = "#b07a9945"
  67.  
  68. -- {{{ Display the taglist squares
  69. local taglist_square_size = dpi(2)
  70. theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
  71.     taglist_square_size, theme.fg_normal
  72. )
  73. theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
  74.     taglist_square_size, theme.fg_normal
  75. )
  76. -- }}}
  77.  
  78. -- {{{ Variables set for theming the menu:
  79. -- menu_[bg|fg]_[normal|focus]
  80. -- menu_[border_color|border_width]
  81. --theme.menu_fg_focus = themes_path .. "/22025.png"
  82. --theme.menu_bg_focus = themes_path .. "/22025.png"
  83. theme.menu_submenu_icon = themes_path .. "haru/icons/submenu.png"
  84. theme.menu_height = dpi(25)
  85. theme.menu_width  = dpi(220)
  86. -- }}}
  87.  
  88. -- {{{ You can add as many variables as
  89. -- you wish and access them by using
  90. -- beautiful.variable in your rc.lua
  91. --theme.bg_widget = "#cc0000"
  92. -- }}}
  93.  
  94. -- {{{ Define the image to load
  95. theme.titlebar_close_button_normal = themes_path .. "haru/titlebar/close_normal.png"
  96. theme.titlebar_close_button_focus  = themes_path .. "haru/titlebar/close_focus.png"
  97.  
  98. theme.titlebar_ontop_button_normal_inactive = themes_path .. "haru/titlebar/ontop_normal_inactive.png"
  99. theme.titlebar_ontop_button_focus_inactive  = themes_path .. "haru/titlebar/ontop_focus_inactive.png"
  100. theme.titlebar_ontop_button_normal_active = themes_path .. "haru/titlebar/ontop_normal_active.png"
  101. theme.titlebar_ontop_button_focus_active  = themes_path .. "haru/titlebar/ontop_focus_active.png"
  102.  
  103. theme.titlebar_sticky_button_normal_inactive = themes_path .. "haru/titlebar/sticky_normal_inactive.png"
  104. theme.titlebar_sticky_button_focus_inactive  = themes_path .. "haru/titlebar/sticky_focus_inactive.png"
  105. theme.titlebar_sticky_button_normal_active = themes_path .. "haru/titlebar/sticky_normal_active.png"
  106. theme.titlebar_sticky_button_focus_active  = themes_path .. "haru/titlebar/sticky_focus_active.png"
  107.  
  108. theme.titlebar_floating_button_normal_inactive = themes_path .. "haru/titlebar/floating_normal_inactive.png"
  109. theme.titlebar_floating_button_focus_inactive  = themes_path .. "haru/titlebar/floating_focus_inactive.png"
  110. theme.titlebar_floating_button_normal_active = themes_path .. "haru/titlebar/floating_normal_active.png"
  111. theme.titlebar_floating_button_focus_active  = themes_path .. "haru/titlebar/floating_focus_active.png"
  112.  
  113. theme.titlebar_maximized_button_normal_inactive = themes_path .. "haru/titlebar/maximized_normal_inactive.png"
  114. theme.titlebar_maximized_button_focus_inactive  = themes_path .. "haru/titlebar/maximized_focus_inactive.png"
  115. theme.titlebar_maximized_button_normal_active = themes_path .. "haru/titlebar/maximized_normal_active.png"
  116. theme.titlebar_maximized_button_focus_active  = themes_path .. "haru/titlebar/maximized_focus_active.png"
  117. -- }}}
  118.  
  119. -- {{{ You can use your own layout icons like this:
  120. theme.layout_dwindle = themes_path .. "haru/layouts/dwindle.png"
  121. theme.layout_fairh = themes_path .. "haru/layouts/fairh.png"
  122. theme.layout_fairv = themes_path .. "haru/layouts/fairv.png"
  123. theme.layout_floating  = themes_path .. "haru/layouts/floating.png"
  124. theme.layout_magnifier = themes_path .. "haru/layouts/magnifier.png"
  125. theme.layout_max = themes_path .. "haru/layouts/max.png"
  126. theme.layout_fullscreen = themes_path .. "haru/layouts/fullscreen.png"
  127. theme.layout_tilebottom = themes_path .. "haru/layouts/tilebottom.png"
  128. theme.layout_tileleft   = themes_path .. "haru/layouts/tileleft.png"
  129. theme.layout_tile = themes_path .. "haru/layouts/tile.png"
  130. theme.layout_tiletop = themes_path .. "haru/layouts/tiletop.png"
  131. theme.layout_spiral  = themes_path .. "haru/layouts/spiral.png"
  132. -- }}}
  133.  
  134. -- {{{ Custom icons
  135.  
  136. -- Generate Awesome icon:
  137. theme.awesome_icon = theme_assets.awesome_icon(
  138.     theme.menu_height, theme.bg_focus, theme.border_focus
  139. )
  140. -- }}}
  141. theme.icon_theme = "moblin"
  142.  
  143. return theme
  144. -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
  145.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement