Advertisement
Guest User

theme.lua

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