]> git.madduck.net Git - etc/awesome.git/blob - .config/awesome/theme/theme.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

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.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

massive refactor for autorandr and other stuff
[etc/awesome.git] / .config / awesome / theme / theme.lua
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 10"
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_minimize
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(2)
29 theme.border_normal = "#cccccc"
30 theme.border_focus  = "#00aa00"
31 theme.border_marked = "#cc0000"
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
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
50 )
51 theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
52     taglist_square_size, theme.fg_normal
53 )
54
55 -- Variables set for theming notifications:
56 -- notification_font
57 -- notification_[bg|fg]
58 -- notification_[width|height|margin]
59 -- notification_[border_color|border_width|shape|opacity]
60
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)
67
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"
72
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"
76
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"
79
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"
84
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"
89
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"
94
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"
99
100 theme.wallpaper = themes_path.."default/background.png"
101
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"
119
120 -- Generate Awesome icon:
121 theme.awesome_icon = theme_assets.awesome_icon(
122     theme.menu_height, theme.bg_focus, theme.fg_focus
123 )
124
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
128
129 return theme
130
131 -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80