All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 ---------------------------
2 -- Default awesome theme --
3 ---------------------------
5 local theme_assets = require("beautiful.theme_assets")
6 local xresources = require("beautiful.xresources")
7 local dpi = xresources.apply_dpi
9 local gfs = require("gears.filesystem")
10 local themes_path = gfs.get_themes_dir()
14 theme.font = "sans 10"
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_minimize
22 theme.fg_normal = "#aaaaaa"
23 theme.fg_focus = "#ffffff"
24 theme.fg_urgent = "#ffffff"
25 theme.fg_minimize = "#ffffff"
27 theme.useless_gap = dpi(0)
28 theme.border_width = dpi(2)
29 theme.border_normal = "#cccccc"
30 theme.border_focus = "#00aa00"
31 theme.border_marked = "#cc0000"
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]
44 --theme.taglist_bg_focus = "#ff0000"
46 -- Generate taglist squares:
47 local taglist_square_size = dpi(4)
48 theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
49 taglist_square_size, theme.fg_normal
51 theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
52 taglist_square_size, theme.fg_normal
55 -- Variables set for theming notifications:
57 -- notification_[bg|fg]
58 -- notification_[width|height|margin]
59 -- notification_[border_color|border_width|shape|opacity]
61 -- Variables set for theming the menu:
62 -- menu_[bg|fg]_[normal|focus]
63 -- menu_[border_color|border_width]
64 theme.menu_submenu_icon = themes_path.."default/submenu.png"
65 theme.menu_height = dpi(15)
66 theme.menu_width = dpi(100)
68 -- You can add as many variables as
69 -- you wish and access them by using
70 -- beautiful.variable in your rc.lua
71 --theme.bg_widget = "#cc0000"
73 -- Define the image to load
74 theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png"
75 theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png"
77 theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png"
78 theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png"
80 theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png"
81 theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png"
82 theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png"
83 theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png"
85 theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png"
86 theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png"
87 theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png"
88 theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png"
90 theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png"
91 theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png"
92 theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png"
93 theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png"
95 theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png"
96 theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png"
97 theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png"
98 theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
100 theme.wallpaper = themes_path.."default/background.png"
102 -- You can use your own layout icons like this:
103 theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
104 theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
105 theme.layout_floating = themes_path.."default/layouts/floatingw.png"
106 theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
107 theme.layout_max = themes_path.."default/layouts/maxw.png"
108 theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
109 theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
110 theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
111 theme.layout_tile = themes_path.."default/layouts/tilew.png"
112 theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
113 theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
114 theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
115 theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
116 theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
117 theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
118 theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
120 -- Generate Awesome icon:
121 theme.awesome_icon = theme_assets.awesome_icon(
122 theme.menu_height, theme.bg_focus, theme.fg_focus
125 -- Define the icon theme for application icons. If not set then the icons
126 -- from /usr/share/icons and /usr/share/icons/hicolor will be used.
127 theme.icon_theme = nil
131 -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80