Advertisement
Guest User

theme.lua

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