constantin-net

[awesome_v4.3][sunset]theme.lua

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