theme.lua 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ---------------------------
  2. -- Default awesome theme --
  3. ---------------------------
  4. local theme_assets = require("beautiful.theme_assets")
  5. local xresources = require("beautiful.xresources")
  6. local dpi = xresources.apply_dpi
  7. local gfs = require("gears.filesystem")
  8. local themes_path = gfs.get_themes_dir()
  9. local pwd = gfs.get_configuration_dir().."theme/"
  10. local theme = {}
  11. theme.font = "Lato 9"
  12. theme.bg_normal = "#ffffff" --"#dee1e6"
  13. theme.bg_focus = "#ffffff"
  14. theme.bg_urgent = "#ffcccc"
  15. theme.bg_minimize = "#444444"
  16. theme.bg_systray = theme.bg_normal
  17. theme.fg_normal = "#606368"
  18. theme.fg_focus = "#606368"
  19. theme.fg_urgent = "#ff1111"
  20. theme.fg_minimize = "#000000"
  21. theme.useless_gap = dpi(8)
  22. theme.border_width = dpi(0)
  23. theme.border_normal = "#fefefe"
  24. theme.border_radius = dpi(8)
  25. -- There are other variable sets
  26. -- overriding the default one when
  27. -- defined, the sets are:
  28. -- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
  29. -- tasklist_[bg|fg]_[focus|urgent]
  30. -- titlebar_[bg|fg]_[normal|focus]
  31. -- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
  32. -- mouse_finder_[color|timeout|animate_timeout|radius|factor]
  33. -- prompt_[fg|bg|fg_cursor|bg_cursor|font]
  34. -- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
  35. -- Example:
  36. --theme.taglist_bg_focus = "#ff0000"
  37. -- Generate taglist squares:
  38. local taglist_square_size = dpi(4)
  39. theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
  40. taglist_square_size, theme.fg_normal
  41. )
  42. theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
  43. taglist_square_size, theme.fg_normal
  44. )
  45. -- Variables set for theming notifications:
  46. -- notification_font
  47. -- notification_[bg|fg]
  48. -- notification_[width|height|margin]
  49. -- notification_[border_color|border_width|shape|opacity]
  50. -- Variables set for theming the menu:
  51. -- menu_[bg|fg]_[normal|focus]
  52. -- menu_[border_color|border_width]
  53. theme.menu_submenu_icon = themes_path.."default/submenu.png"
  54. theme.menu_height = dpi(15)
  55. theme.menu_width = dpi(100)
  56. -- You can add as many variables as
  57. -- you wish and access them by using
  58. -- beautiful.variable in your rc.lua
  59. --theme.bg_widget = "#cc0000"
  60. theme.wallpaper = themes_path.."default/background.png"
  61. -- You can use your own layout icons like this:
  62. theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
  63. theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
  64. theme.layout_floating = themes_path.."default/layouts/floatingw.png"
  65. theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
  66. theme.layout_max = themes_path.."default/layouts/maxw.png"
  67. theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
  68. theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
  69. theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
  70. theme.layout_tile = themes_path.."default/layouts/tilew.png"
  71. theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
  72. theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
  73. theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
  74. theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
  75. theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
  76. theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
  77. theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
  78. -- Generate Awesome icon:
  79. theme.awesome_icon = theme_assets.awesome_icon(
  80. theme.menu_height, theme.bg_focus, theme.fg_focus
  81. )
  82. --]]
  83. theme.wallpaper = pwd.."wallpaper.png"
  84. --theme.icon_theme = "/usr/share/icons/luv"
  85. return theme