2009-08-30 03:02:54 +02:00
|
|
|
-------------------------------
|
|
|
|
-- "Zenburn" awesome theme --
|
|
|
|
-- By Adrian C. (anrxc) --
|
|
|
|
-------------------------------
|
|
|
|
|
2017-02-14 00:16:45 +01:00
|
|
|
local themes_path = require("gears.filesystem").get_themes_dir()
|
2020-02-16 07:33:45 +01:00
|
|
|
local rnotification = require("ruled.notification")
|
2017-06-08 17:09:47 +02:00
|
|
|
local dpi = require("beautiful.xresources").apply_dpi
|
2017-01-25 09:29:59 +01:00
|
|
|
|
2009-08-30 03:02:54 +02:00
|
|
|
-- {{{ Main
|
2016-02-07 12:53:26 +01:00
|
|
|
local theme = {}
|
2017-01-25 09:29:59 +01:00
|
|
|
theme.wallpaper = themes_path .. "zenburn/zenburn-background.png"
|
2009-08-30 03:02:54 +02:00
|
|
|
-- }}}
|
|
|
|
|
|
|
|
-- {{{ Styles
|
|
|
|
theme.font = "sans 8"
|
|
|
|
|
|
|
|
-- {{{ Colors
|
2010-10-17 09:24:59 +02:00
|
|
|
theme.fg_normal = "#DCDCCC"
|
|
|
|
theme.fg_focus = "#F0DFAF"
|
|
|
|
theme.fg_urgent = "#CC9393"
|
|
|
|
theme.bg_normal = "#3F3F3F"
|
|
|
|
theme.bg_focus = "#1E2320"
|
|
|
|
theme.bg_urgent = "#3F3F3F"
|
|
|
|
theme.bg_systray = theme.bg_normal
|
2009-08-30 03:02:54 +02:00
|
|
|
-- }}}
|
|
|
|
|
|
|
|
-- {{{ Borders
|
2017-06-08 17:09:47 +02:00
|
|
|
theme.useless_gap = dpi(0)
|
|
|
|
theme.border_width = dpi(2)
|
2019-11-11 02:47:43 +01:00
|
|
|
theme.border_color_normal = "#3F3F3F"
|
|
|
|
theme.border_color_active = "#6F6F6F"
|
|
|
|
theme.border_color_marked = "#CC9393"
|
2009-08-30 03:02:54 +02:00
|
|
|
-- }}}
|
|
|
|
|
|
|
|
-- {{{ Titlebars
|
|
|
|
theme.titlebar_bg_focus = "#3F3F3F"
|
|
|
|
theme.titlebar_bg_normal = "#3F3F3F"
|
|
|
|
-- }}}
|
|
|
|
|
|
|
|
-- There are other variable sets
|
|
|
|
-- overriding the default one when
|
|
|
|
-- defined, the sets are:
|
2017-01-08 05:07:52 +01:00
|
|
|
-- [taglist|tasklist]_[bg|fg]_[focus|urgent|occupied|empty|volatile]
|
2009-08-30 03:02:54 +02:00
|
|
|
-- titlebar_[normal|focus]
|
2009-09-12 14:53:05 +02:00
|
|
|
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
|
2009-08-30 03:02:54 +02:00
|
|
|
-- Example:
|
|
|
|
--theme.taglist_bg_focus = "#CC9393"
|
|
|
|
-- }}}
|
|
|
|
|
|
|
|
-- {{{ Widgets
|
|
|
|
-- You can add as many variables as
|
|
|
|
-- you wish and access them by using
|
|
|
|
-- beautiful.variable in your rc.lua
|
|
|
|
--theme.fg_widget = "#AECF96"
|
|
|
|
--theme.fg_center_widget = "#88A175"
|
|
|
|
--theme.fg_end_widget = "#FF5656"
|
|
|
|
--theme.bg_widget = "#494B4F"
|
|
|
|
--theme.border_widget = "#3F3F3F"
|
|
|
|
-- }}}
|
|
|
|
|
|
|
|
-- {{{ Menu
|
|
|
|
-- Variables set for theming the menu:
|
|
|
|
-- menu_[bg|fg]_[normal|focus]
|
|
|
|
-- menu_[border_color|border_width]
|
2017-06-08 17:09:47 +02:00
|
|
|
theme.menu_height = dpi(15)
|
|
|
|
theme.menu_width = dpi(100)
|
2009-08-30 03:02:54 +02:00
|
|
|
-- }}}
|
|
|
|
|
|
|
|
-- {{{ Icons
|
|
|
|
-- {{{ Taglist
|
2017-01-25 09:29:59 +01:00
|
|
|
theme.taglist_squares_sel = themes_path .. "zenburn/taglist/squarefz.png"
|
|
|
|
theme.taglist_squares_unsel = themes_path .. "zenburn/taglist/squarez.png"
|
2009-08-31 14:20:03 +02:00
|
|
|
--theme.taglist_squares_resize = "false"
|
2009-08-30 03:02:54 +02:00
|
|
|
-- }}}
|
|
|
|
|
|
|
|
-- {{{ Misc
|
2017-01-25 09:29:59 +01:00
|
|
|
theme.awesome_icon = themes_path .. "zenburn/awesome-icon.png"
|
|
|
|
theme.menu_submenu_icon = themes_path .. "default/submenu.png"
|
2009-08-30 03:02:54 +02:00
|
|
|
-- }}}
|
|
|
|
|
|
|
|
-- {{{ Layout
|
2017-01-25 09:29:59 +01:00
|
|
|
theme.layout_tile = themes_path .. "zenburn/layouts/tile.png"
|
|
|
|
theme.layout_tileleft = themes_path .. "zenburn/layouts/tileleft.png"
|
|
|
|
theme.layout_tilebottom = themes_path .. "zenburn/layouts/tilebottom.png"
|
|
|
|
theme.layout_tiletop = themes_path .. "zenburn/layouts/tiletop.png"
|
|
|
|
theme.layout_fairv = themes_path .. "zenburn/layouts/fairv.png"
|
|
|
|
theme.layout_fairh = themes_path .. "zenburn/layouts/fairh.png"
|
|
|
|
theme.layout_spiral = themes_path .. "zenburn/layouts/spiral.png"
|
|
|
|
theme.layout_dwindle = themes_path .. "zenburn/layouts/dwindle.png"
|
|
|
|
theme.layout_max = themes_path .. "zenburn/layouts/max.png"
|
|
|
|
theme.layout_fullscreen = themes_path .. "zenburn/layouts/fullscreen.png"
|
|
|
|
theme.layout_magnifier = themes_path .. "zenburn/layouts/magnifier.png"
|
|
|
|
theme.layout_floating = themes_path .. "zenburn/layouts/floating.png"
|
|
|
|
theme.layout_cornernw = themes_path .. "zenburn/layouts/cornernw.png"
|
|
|
|
theme.layout_cornerne = themes_path .. "zenburn/layouts/cornerne.png"
|
|
|
|
theme.layout_cornersw = themes_path .. "zenburn/layouts/cornersw.png"
|
|
|
|
theme.layout_cornerse = themes_path .. "zenburn/layouts/cornerse.png"
|
2009-08-30 03:02:54 +02:00
|
|
|
-- }}}
|
|
|
|
|
|
|
|
-- {{{ Titlebar
|
2017-01-25 09:29:59 +01:00
|
|
|
theme.titlebar_close_button_focus = themes_path .. "zenburn/titlebar/close_focus.png"
|
|
|
|
theme.titlebar_close_button_normal = themes_path .. "zenburn/titlebar/close_normal.png"
|
|
|
|
|
|
|
|
theme.titlebar_minimize_button_normal = themes_path .. "default/titlebar/minimize_normal.png"
|
|
|
|
theme.titlebar_minimize_button_focus = themes_path .. "default/titlebar/minimize_focus.png"
|
|
|
|
|
|
|
|
theme.titlebar_ontop_button_focus_active = themes_path .. "zenburn/titlebar/ontop_focus_active.png"
|
|
|
|
theme.titlebar_ontop_button_normal_active = themes_path .. "zenburn/titlebar/ontop_normal_active.png"
|
|
|
|
theme.titlebar_ontop_button_focus_inactive = themes_path .. "zenburn/titlebar/ontop_focus_inactive.png"
|
|
|
|
theme.titlebar_ontop_button_normal_inactive = themes_path .. "zenburn/titlebar/ontop_normal_inactive.png"
|
|
|
|
|
|
|
|
theme.titlebar_sticky_button_focus_active = themes_path .. "zenburn/titlebar/sticky_focus_active.png"
|
|
|
|
theme.titlebar_sticky_button_normal_active = themes_path .. "zenburn/titlebar/sticky_normal_active.png"
|
|
|
|
theme.titlebar_sticky_button_focus_inactive = themes_path .. "zenburn/titlebar/sticky_focus_inactive.png"
|
|
|
|
theme.titlebar_sticky_button_normal_inactive = themes_path .. "zenburn/titlebar/sticky_normal_inactive.png"
|
|
|
|
|
|
|
|
theme.titlebar_floating_button_focus_active = themes_path .. "zenburn/titlebar/floating_focus_active.png"
|
|
|
|
theme.titlebar_floating_button_normal_active = themes_path .. "zenburn/titlebar/floating_normal_active.png"
|
|
|
|
theme.titlebar_floating_button_focus_inactive = themes_path .. "zenburn/titlebar/floating_focus_inactive.png"
|
|
|
|
theme.titlebar_floating_button_normal_inactive = themes_path .. "zenburn/titlebar/floating_normal_inactive.png"
|
|
|
|
|
|
|
|
theme.titlebar_maximized_button_focus_active = themes_path .. "zenburn/titlebar/maximized_focus_active.png"
|
|
|
|
theme.titlebar_maximized_button_normal_active = themes_path .. "zenburn/titlebar/maximized_normal_active.png"
|
|
|
|
theme.titlebar_maximized_button_focus_inactive = themes_path .. "zenburn/titlebar/maximized_focus_inactive.png"
|
|
|
|
theme.titlebar_maximized_button_normal_inactive = themes_path .. "zenburn/titlebar/maximized_normal_inactive.png"
|
2009-08-30 03:02:54 +02:00
|
|
|
-- }}}
|
|
|
|
-- }}}
|
|
|
|
|
2020-02-16 07:33:45 +01:00
|
|
|
-- Set different colors for urgent notifications.
|
|
|
|
rnotification.connect_signal('request::rules', function()
|
|
|
|
rnotification.append_rule {
|
|
|
|
rule = { urgency = 'critical' },
|
|
|
|
properties = { bg = '#ff0000', fg = '#ffffff' }
|
|
|
|
}
|
|
|
|
end)
|
|
|
|
|
2009-08-30 03:02:54 +02:00
|
|
|
return theme
|
2015-12-12 17:42:33 +01:00
|
|
|
|
|
|
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|