finalized widget polymorphism
129
libs/awmtk2.lua
|
@ -7,7 +7,6 @@
|
||||||
-- you should have received a copy of the gnu general public license along with reno desktop. if not, see <https://www.gnu.org/licenses/>.
|
-- you should have received a copy of the gnu general public license along with reno desktop. if not, see <https://www.gnu.org/licenses/>.
|
||||||
-- renotk (formerly awmtk2) - template/granular styling library for reno
|
-- renotk (formerly awmtk2) - template/granular styling library for reno
|
||||||
local wibox = require("wibox")
|
local wibox = require("wibox")
|
||||||
local awful = require("awful")
|
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
local beautiful = require("beautiful")
|
local beautiful = require("beautiful")
|
||||||
beautiful.widgets = beautiful.widgets or {}
|
beautiful.widgets = beautiful.widgets or {}
|
||||||
|
@ -16,20 +15,26 @@ beautiful.templates = beautiful.templates or {}
|
||||||
local awmtk = {}
|
local awmtk = {}
|
||||||
|
|
||||||
-- {{{ utils
|
-- {{{ utils
|
||||||
awmtk.create_delta = function(name,instance_delta,class_delta,parent_delta)
|
awmtk.create_delta = function(name,instance_delta,class_delta,parent_delta,vertical)
|
||||||
-- to save memory, we create proxies for lower layers called "deltas"
|
-- to save memory, we create proxies for lower layers called "deltas"
|
||||||
-- this function creates that proxy layer using metatables
|
-- this function creates that proxy layer using metatables
|
||||||
-- fun story - i used instance_delta instead of {} at first.
|
-- fun story - i used instance_delta instead of {} at first.
|
||||||
-- the results were horrifying and confusing.
|
-- the results were horrifying and confusing.
|
||||||
return setmetatable({},{
|
return setmetatable({},{
|
||||||
__index = function(self,k)
|
__index = function(_,k)
|
||||||
-- per-instance overrides are top priority
|
-- per-instance overrides are top priority
|
||||||
if rawget(instance_delta,k) then
|
if rawget(instance_delta,k) then
|
||||||
return rawget(instance_delta,k)
|
return rawget(instance_delta,k)
|
||||||
-- class-wide overrides are second in priority
|
-- class-wide overrides are second in priority
|
||||||
elseif type(class_delta[name]) == "table"
|
elseif type(class_delta[name]) == "table"
|
||||||
and rawget(class_delta[name],k) then
|
and rawget(class_delta[name],k) then
|
||||||
return rawget(class_delta[name],k)
|
if vertical and
|
||||||
|
type(rawget(class_delta[name],"vertical")) == "table" and
|
||||||
|
rawget(class_delta[name],"vertical")[k] then
|
||||||
|
return rawget(class_delta[name].vertical,k)
|
||||||
|
else
|
||||||
|
return rawget(class_delta[name],k)
|
||||||
|
end
|
||||||
-- parent is fallback
|
-- parent is fallback
|
||||||
elseif parent_delta[k] then
|
elseif parent_delta[k] then
|
||||||
return parent_delta[k]
|
return parent_delta[k]
|
||||||
|
@ -38,17 +43,18 @@ awmtk.create_delta = function(name,instance_delta,class_delta,parent_delta)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
awmtk.create_style = function(name,parent,overrides)
|
awmtk.create_style = function(name,parent,overrides,vertical)
|
||||||
-- a style is essentially a layer of deltas upon the previous (parent) style
|
-- a style is essentially a layer of deltas upon the previous (parent) style
|
||||||
local new_style = {}
|
local new_style = {}
|
||||||
local odelta = (overrides and overrides[name]) or {}
|
local odelta = (overrides and overrides[name]) or {}
|
||||||
local cdelta = beautiful.widgets[name] or {}
|
local cdelta = beautiful.widgets[name] or {}
|
||||||
for name,parent_class in pairs(parent) do
|
for class_name,parent_class in pairs(parent) do
|
||||||
new_style[name] = awmtk.create_delta(
|
new_style[class_name] = awmtk.create_delta(
|
||||||
name,
|
class_name,
|
||||||
odelta,
|
odelta,
|
||||||
cdelta,
|
cdelta,
|
||||||
parent_class
|
parent_class,
|
||||||
|
vertical
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
return new_style
|
return new_style
|
||||||
|
@ -66,7 +72,7 @@ end
|
||||||
|
|
||||||
awmtk.build_templates = function(templates,style,vertical)
|
awmtk.build_templates = function(templates,style,vertical)
|
||||||
local new_templates = {}
|
local new_templates = {}
|
||||||
for name,template in pairs(awmtk.proto_templates) do
|
for name,_ in pairs(awmtk.proto_templates) do
|
||||||
new_templates[name] = templates[name](style,vertical)
|
new_templates[name] = templates[name](style,vertical)
|
||||||
end
|
end
|
||||||
return new_templates
|
return new_templates
|
||||||
|
@ -205,6 +211,15 @@ awmtk.proto_style.slider = awmtk.create_delta("slider", {
|
||||||
|
|
||||||
awmtk.proto_style.checkbox = awmtk.create_delta("checkbox", {
|
awmtk.proto_style.checkbox = awmtk.create_delta("checkbox", {
|
||||||
}, awmtk.proto_style,awmtk.proto_style.base)
|
}, awmtk.proto_style,awmtk.proto_style.base)
|
||||||
|
|
||||||
|
awmtk.proto_style.icon = awmtk.create_delta("icon", {
|
||||||
|
constraint = "max",
|
||||||
|
height = 100,
|
||||||
|
width = 100,
|
||||||
|
valign = "center",
|
||||||
|
halign = "center",
|
||||||
|
margins = 0
|
||||||
|
}, awmtk.proto_style,awmtk.proto_style.base)
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ generic templates
|
-- {{{ generic templates
|
||||||
|
@ -278,6 +293,40 @@ awmtk.proto_templates = {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
icon = function(style)
|
||||||
|
return function(args)
|
||||||
|
args = args or {}
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
{
|
||||||
|
{
|
||||||
|
image = args.image,
|
||||||
|
id = args.id,
|
||||||
|
resize = args.resize,
|
||||||
|
widget = wibox.widget.imagebox
|
||||||
|
},
|
||||||
|
widget = wibox.container.margin,
|
||||||
|
margins = args.margins or style.icon.margins
|
||||||
|
},
|
||||||
|
strategy = args.constraint or style.icon.constraint,
|
||||||
|
height = args.height or
|
||||||
|
style.icon.height,
|
||||||
|
width = args.width or
|
||||||
|
style.icon.width,
|
||||||
|
widget = awmtk.wrap_hooks(wibox.container.constraint,
|
||||||
|
args),
|
||||||
|
id = "constraint"
|
||||||
|
},
|
||||||
|
--widget = awmtk.wrap_hooks(
|
||||||
|
widget = wibox.container.place,
|
||||||
|
-- args
|
||||||
|
--),
|
||||||
|
valign = args.valign or style.icon.valign,
|
||||||
|
halign = style.icon.halign or style.icon.halign
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
vseparator = function(style)
|
vseparator = function(style)
|
||||||
-- i'm running out of comments
|
-- i'm running out of comments
|
||||||
return function(options)
|
return function(options)
|
||||||
|
@ -435,26 +484,50 @@ awmtk.proto_templates = {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
slider = function(style)
|
slider = function(style,vertical)
|
||||||
-- slider widget but wired to work with the awmtk2 namespace system
|
-- slider widget but wired to work with the awmtk2 namespace system
|
||||||
return function(args)
|
return function(args)
|
||||||
return awmtk.merge({
|
if not vertical then
|
||||||
handle_shape = style.slider.handle_shape or style.slider.shape,
|
return awmtk.merge({
|
||||||
handle_color = style.slider.bg_normal,
|
handle_shape = style.slider.handle_shape or style.slider.shape,
|
||||||
handle_margins = style.slider.handle_margins,
|
handle_color = style.slider.bg_normal,
|
||||||
handle_width = style.slider.handle_width,
|
handle_margins = style.slider.handle_margins,
|
||||||
handle_border_color = style.slider.handle_border_color,
|
handle_width = style.slider.handle_width,
|
||||||
handle_border_width = style.slider.handle_border_width,
|
handle_border_color = style.slider.handle_border_color,
|
||||||
bar_shape = style.slider.bar_shape or style.slider.shape,
|
handle_border_width = style.slider.handle_border_width,
|
||||||
bar_height = style.slider.bar_height,
|
bar_shape = style.slider.bar_shape or style.slider.shape,
|
||||||
bar_color = style.slider.bg_focus,
|
bar_height = style.slider.bar_height,
|
||||||
bar_margins = style.slider.bar_margins,
|
bar_color = style.slider.bg_focus,
|
||||||
bar_border_width = style.slider.bar_border_width,
|
bar_margins = style.slider.bar_margins,
|
||||||
bar_border_color = style.slider.bar_border_color,
|
bar_border_width = style.slider.bar_border_width,
|
||||||
forced_width = style.slider.width,
|
bar_border_color = style.slider.bar_border_color,
|
||||||
forced_height = style.slider.height,
|
forced_width = style.slider.width,
|
||||||
widget = awmtk.wrap_hooks(wibox.widget.slider,args)
|
forced_height = style.slider.height,
|
||||||
},args or {})
|
widget = awmtk.wrap_hooks(wibox.widget.slider,args)
|
||||||
|
},args or {})
|
||||||
|
else
|
||||||
|
return {
|
||||||
|
awmtk.merge({
|
||||||
|
handle_shape = style.slider.handle_shape or style.slider.shape,
|
||||||
|
handle_color = style.slider.bg_normal,
|
||||||
|
handle_margins = style.slider.handle_margins,
|
||||||
|
handle_width = style.slider.handle_width,
|
||||||
|
handle_border_color = style.slider.handle_border_color,
|
||||||
|
handle_border_width = style.slider.handle_border_width,
|
||||||
|
bar_shape = style.slider.bar_shape or style.slider.shape,
|
||||||
|
bar_height = style.slider.bar_height,
|
||||||
|
bar_color = style.slider.bg_focus,
|
||||||
|
bar_margins = style.slider.bar_margins,
|
||||||
|
bar_border_width = style.slider.bar_border_width,
|
||||||
|
bar_border_color = style.slider.bar_border_color,
|
||||||
|
forced_width = style.slider.width,
|
||||||
|
forced_height = style.slider.height,
|
||||||
|
widget = awmtk.wrap_hooks(wibox.widget.slider,args)
|
||||||
|
},args or {}),
|
||||||
|
widget = wibox.container.rotate,
|
||||||
|
direction = "west"
|
||||||
|
}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|
|
@ -51,11 +51,17 @@ return function(description,opts)
|
||||||
end
|
end
|
||||||
local function inner_builder(struct,vertical)
|
local function inner_builder(struct,vertical)
|
||||||
if struct.widget then -- External widget descriptions
|
if struct.widget then -- External widget descriptions
|
||||||
return require(struct.widget)(gears.table.join({
|
local args = gears.table.join({
|
||||||
layout = (struct.layout and inner_builder(struct.layout)), client = (struct.client and c),
|
layout = (struct.layout and inner_builder(struct.layout)), client = (struct.client and c),
|
||||||
screen = (struct.screen and s),
|
screen = (struct.screen and s),
|
||||||
vertical = vertical
|
vertical = (function()
|
||||||
},struct.options or {},opts.passthrough or {}))
|
if type(struct.vertical) ~= "nil" then
|
||||||
|
return struct.vertical
|
||||||
|
end
|
||||||
|
return vertical
|
||||||
|
end)()
|
||||||
|
},struct.options or {},opts.passthrough or {})
|
||||||
|
return require(struct.widget)(args)
|
||||||
elseif struct.list then -- List descriptions
|
elseif struct.list then -- List descriptions
|
||||||
local list = {
|
local list = {
|
||||||
layout = wibox.layout.fixed[(
|
layout = wibox.layout.fixed[(
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
-- POLYMENU - brutal deluxe
|
-- POLYMENU - brutal deluxe
|
||||||
-- This isn't in the widgets folder because it's too meta to be there
|
-- This isn't in the widgets folder because it's too meta to be there
|
||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
local gears = require("gears")
|
|
||||||
local menubar_utils = require("menubar.utils")
|
|
||||||
local wibox = require("wibox")
|
local wibox = require("wibox")
|
||||||
local awmtk2 = require("awmtk2")
|
local awmtk2 = require("awmtk2")
|
||||||
|
|
||||||
|
|
|
@ -5,12 +5,18 @@
|
||||||
-- Reno desktop is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
-- Reno desktop is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License along with Reno desktop. If not, see <https://www.gnu.org/licenses/>.
|
-- You should have received a copy of the GNU General Public License along with Reno desktop. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
-- garbage collection timer
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
gears.timer {
|
gears.timer {
|
||||||
timeout = 10,
|
timeout = 30,
|
||||||
autostart = true,
|
autostart = true,
|
||||||
callback = function()
|
callback = function()
|
||||||
collectgarbage("step", 20000)
|
local out_string = tostring(os.date()) .. "\nLua memory usage:"..tostring(collectgarbage("count")).."\n"
|
||||||
return true
|
collectgarbage()
|
||||||
|
out_string = out_string .. "\nLua memory usage after GC: "..tostring(collectgarbage("count")).."\n"
|
||||||
|
out_string = out_string.."Objects alive:"
|
||||||
|
for name, obj in pairs{button = button, client = client, drawable = drawable, drawin = drawin, key = key, screen = screen, tag = tag } do
|
||||||
|
out_string = out_string .. "\n" .. tostring(name) .. " = "..tostring(obj.instances())
|
||||||
|
end
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,6 @@ local wibox = require("wibox")
|
||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
local beautiful = require("beautiful")
|
local beautiful = require("beautiful")
|
||||||
local builder = require("builder")
|
local builder = require("builder")
|
||||||
local mbarutils = require("menubar").utils
|
|
||||||
local menugen = require("context_menu")
|
|
||||||
local json = require("dkjson")
|
local json = require("dkjson")
|
||||||
|
|
||||||
local function read_file(fname)
|
local function read_file(fname)
|
||||||
|
@ -49,9 +47,9 @@ end -- }}}
|
||||||
do --{{{ Screen
|
do --{{{ Screen
|
||||||
local wibar_config = {}
|
local wibar_config = {}
|
||||||
local style = awmtk2.create_style("wibar",awmtk2.generic.composite_widget,{})
|
local style = awmtk2.create_style("wibar",awmtk2.generic.composite_widget,{})
|
||||||
for k,v in pairs({"wibar_top","wibar_bottom","wibar_left","wibar_right"}) do
|
for _,v in pairs({"wibar_top","wibar_bottom","wibar_left","wibar_right"}) do
|
||||||
style[v] = awmtk2.create_delta(v, {},
|
style[v] = awmtk2.create_delta(v, {},
|
||||||
(beautiful.widgets and beautiful.widgets.wibar) or {},
|
(beautiful.widgets and beautiful.widgets.wibar) or {},
|
||||||
style.wibar)
|
style.wibar)
|
||||||
wibar_config[v] = read_file(root_path.."/themes/"..global.theme.."/config/"..v..".json")
|
wibar_config[v] = read_file(root_path.."/themes/"..global.theme.."/config/"..v..".json")
|
||||||
end
|
end
|
||||||
|
@ -59,18 +57,14 @@ local templates = awmtk2.create_template_lib("wibar",awmtk2.templates,{})
|
||||||
local t = awmtk2.build_templates(templates,style)
|
local t = awmtk2.build_templates(templates,style)
|
||||||
|
|
||||||
awful.screen.connect_for_each_screen(function(s)
|
awful.screen.connect_for_each_screen(function(s)
|
||||||
for k,v in pairs({"wibar_top","wibar_bottom","wibar_left","wibar_right"}) do
|
for _,v in pairs({"wibar_top","wibar_bottom","wibar_left","wibar_right"}) do
|
||||||
local contents = { widget = wibox.container.background }
|
local contents = { widget = wibox.container.background }
|
||||||
if wibar_config[v] then
|
if wibar_config[v] then
|
||||||
contents = builder(wibar_config[v],{
|
contents = builder(wibar_config[v],{
|
||||||
client = c,
|
client = c,
|
||||||
style = style[v],
|
style = style[v],
|
||||||
buttons = buttons,
|
buttons = buttons,
|
||||||
screen = s,
|
screen = s
|
||||||
passthrough = {
|
|
||||||
vertical = ((v == "wibar_left") or
|
|
||||||
(v == "wibar_right"))
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
s[v] = awful.wibar({
|
s[v] = awful.wibar({
|
||||||
-- There really isn't a better way to do this. I wish there was.
|
-- There really isn't a better way to do this. I wish there was.
|
||||||
|
@ -99,10 +93,10 @@ end -- }}}
|
||||||
do -- {{{ Titlebars
|
do -- {{{ Titlebars
|
||||||
local titlebar_config = {}
|
local titlebar_config = {}
|
||||||
local style = awmtk2.create_style("titlebar",awmtk2.generic.composite_widget,{})
|
local style = awmtk2.create_style("titlebar",awmtk2.generic.composite_widget,{})
|
||||||
for k,v in pairs({"titlebar_top","titlebar_left","titlebar_right","titlebar_bottom"}) do
|
for _,v in pairs({"titlebar_top","titlebar_left","titlebar_right","titlebar_bottom"}) do
|
||||||
-- Create styles for each titlebar
|
-- Create styles for each titlebar
|
||||||
style[v] = awmtk2.create_delta(v, {},
|
style[v] = awmtk2.create_delta(v, {},
|
||||||
(beautiful.widgets and beautiful.widgets.titlebar) or {},
|
(beautiful.widgets and beautiful.widgets.titlebar) or {},
|
||||||
style.titlebar)
|
style.titlebar)
|
||||||
-- Load in json layouts for titlebars
|
-- Load in json layouts for titlebars
|
||||||
titlebar_config[v] = read_file(root_path.."/themes/"..global.theme.."/config/"..v..".json")
|
titlebar_config[v] = read_file(root_path.."/themes/"..global.theme.."/config/"..v..".json")
|
||||||
|
@ -238,4 +232,3 @@ client.connect_signal("manage",function(c)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end --}}}
|
end --}}}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
local sysctl = require("syscontrol")
|
local sysctl = require("syscontrol")
|
||||||
local naughty = require("naughty")
|
local naughty = require("naughty")
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
local awful = require("awful")
|
|
||||||
local batteries = sysctl.power_supply.enumerate()
|
local batteries = sysctl.power_supply.enumerate()
|
||||||
local state_tracking = {}
|
local state_tracking = {}
|
||||||
-- Configuration variables
|
-- Configuration variables
|
||||||
|
@ -17,12 +16,12 @@ local cfg = config.powerman or {}
|
||||||
local quality_min = cfg.battery_quality_min or 33
|
local quality_min = cfg.battery_quality_min or 33
|
||||||
local capacity_min = cfg.battery_capacity_min or 15
|
local capacity_min = cfg.battery_capacity_min or 15
|
||||||
-- Main loop
|
-- Main loop
|
||||||
local update_loop = gears.timer({
|
gears.timer({
|
||||||
timeout = 2,
|
timeout = 2,
|
||||||
autostart = true,
|
autostart = true,
|
||||||
callback = function()
|
callback = function()
|
||||||
for k,v in pairs(batteries) do
|
for _,v in pairs(batteries) do
|
||||||
local data,err = sysctl.power_supply.read_attribs(v)
|
local data,_ = sysctl.power_supply.read_attribs(v)
|
||||||
state_tracking[v] = state_tracking[v] or {}
|
state_tracking[v] = state_tracking[v] or {}
|
||||||
if data.type == "Battery" then
|
if data.type == "Battery" then
|
||||||
if (tonumber(data.quality) < quality_min) and
|
if (tonumber(data.quality) < quality_min) and
|
||||||
|
|
|
@ -136,7 +136,6 @@ awesome.connect_signal("xdg::dir_finished",function(dir)
|
||||||
end
|
end
|
||||||
-- Save the cache if it doesn't exist yet
|
-- Save the cache if it doesn't exist yet
|
||||||
io.open(gears.filesystem.get_xdg_cache_home()..".reno_xdg_cache.json","w"):write(json.encode(xdg)):close()
|
io.open(gears.filesystem.get_xdg_cache_home()..".reno_xdg_cache.json","w"):write(json.encode(xdg)):close()
|
||||||
require("naughty").notify({title = "Human time: "..tostring(os.time()-start_human),text = "Computer time: "..tostring(os.clock()-start_computer)})
|
|
||||||
-- Finally, call the all_finished signal
|
-- Finally, call the all_finished signal
|
||||||
awesome.emit_signal("xdg::all_finished")
|
awesome.emit_signal("xdg::all_finished")
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{
|
{
|
||||||
"list": [
|
"list": [
|
||||||
{"widget": "widgets.clientcontrols"},
|
{"widget": "widgets.clientmenu.volume","vertical":false},
|
||||||
{"widget": "widgets.clientbuttons"}
|
{"widget": "widgets.clientmenu.controls"},
|
||||||
|
{"widget": "widgets.clientmenu.buttons"}
|
||||||
],
|
],
|
||||||
"vertical":true
|
"vertical":true
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,22 +2,27 @@
|
||||||
"list": [
|
"list": [
|
||||||
{"widget": "widgets.base.popuptitle",
|
{"widget": "widgets.base.popuptitle",
|
||||||
"options":{
|
"options":{
|
||||||
"icon":"icons/reno98.png",
|
"title":"Reno Unity"
|
||||||
"title":"Reno 98"
|
},
|
||||||
}
|
"vertical":true
|
||||||
},
|
},
|
||||||
{"widget": "widgets.base.tagswitcher",
|
{
|
||||||
"screen":true
|
"list": [
|
||||||
},
|
{"widget": "widgets.base.tagswitcher",
|
||||||
{"widget": "widgets.rootcontrols"},
|
"screen":true
|
||||||
{"widget": "widgets.xdgmenu",
|
},
|
||||||
"options": {
|
{"widget": "widgets.rootmenu.controls"},
|
||||||
"exclude_category": [
|
{"widget": "widgets.xdgmenu",
|
||||||
"Other"
|
"options": {
|
||||||
]
|
"exclude_category": [
|
||||||
}
|
"Other"
|
||||||
},
|
]
|
||||||
{"widget": "widgets.rootbuttons"}
|
}
|
||||||
|
},
|
||||||
|
{"widget": "widgets.rootmenu.buttons"}
|
||||||
|
],
|
||||||
|
"vertical": true
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"vertical": true
|
"vertical": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,7 @@
|
||||||
"align": {
|
"align": {
|
||||||
"left": [
|
"left": [
|
||||||
{
|
{
|
||||||
"widget": "widgets.launcher"
|
"widget": "widgets.desktop.tasklist",
|
||||||
},
|
|
||||||
{
|
|
||||||
"widget": "widgets.tasklist",
|
|
||||||
"screen": true
|
"screen": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -13,6 +10,9 @@
|
||||||
|
|
||||||
],
|
],
|
||||||
"right": [
|
"right": [
|
||||||
|
{
|
||||||
|
"widget": "widgets.desktop.launcher"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,30 +1,25 @@
|
||||||
{
|
{
|
||||||
"align": {
|
"align": {
|
||||||
"left": [
|
"left": [
|
||||||
{ "widget": "widgets.soundclown" }
|
{ "widget": "widgets.desktop.soundclown" }
|
||||||
],
|
],
|
||||||
"center": [
|
"center": [
|
||||||
|
|
||||||
],
|
],
|
||||||
"right": [
|
"right": [
|
||||||
{ "widget": "widgets.notifications",
|
{ "widget":"widgets.desktop.volume" },
|
||||||
|
{ "widget": "widgets.desktop.notifications",
|
||||||
"screen": true
|
"screen": true
|
||||||
},
|
},
|
||||||
{ "widget": "widgets.wallpapers",
|
{ "widget": "widgets.desktop.wallpapers",
|
||||||
"screen": true,
|
"screen": true,
|
||||||
"options": {
|
"options": {
|
||||||
"path": "$HOME/Pictures/Wallpapers"
|
"path": "$HOME/Pictures/Wallpapers"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ "widget": "widgets.base.subpanel",
|
{ "widget": "widgets.desktop.battery" },
|
||||||
"layout": {
|
{ "widget": "widgets.base.systray" },
|
||||||
"list": [
|
{ "widget": "widgets.base.clock" }
|
||||||
{ "widget": "widgets.battery" },
|
|
||||||
{ "widget": "widgets.base.systray" },
|
|
||||||
{ "widget": "widgets.base.clock" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"list": [
|
"list": [
|
||||||
{"widget": "widgets.clientvolume"},
|
{"widget": "widgets.clientmenu.volume","vertical":false},
|
||||||
{"widget": "widgets.clientcontrols"},
|
{"widget": "widgets.clientmenu.controls"},
|
||||||
{"widget": "widgets.clientbuttons"}
|
{"widget": "widgets.clientmenu.buttons"}
|
||||||
],
|
],
|
||||||
"vertical":true
|
"vertical":true
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,20 +3,26 @@
|
||||||
{"widget": "widgets.base.popuptitle",
|
{"widget": "widgets.base.popuptitle",
|
||||||
"options":{
|
"options":{
|
||||||
"title":"Reno Unity"
|
"title":"Reno Unity"
|
||||||
}
|
},
|
||||||
|
"vertical":true
|
||||||
},
|
},
|
||||||
{"widget": "widgets.base.tagswitcher",
|
{
|
||||||
"screen":true
|
"list": [
|
||||||
},
|
{"widget": "widgets.base.tagswitcher",
|
||||||
{"widget": "widgets.rootcontrols"},
|
"screen":true
|
||||||
{"widget": "widgets.xdgmenu",
|
},
|
||||||
"options": {
|
{"widget": "widgets.rootmenu.controls"},
|
||||||
"exclude_category": [
|
{"widget": "widgets.xdgmenu",
|
||||||
"Other"
|
"options": {
|
||||||
]
|
"exclude_category": [
|
||||||
}
|
"Other"
|
||||||
},
|
]
|
||||||
{"widget": "widgets.rootbuttons"}
|
}
|
||||||
|
},
|
||||||
|
{"widget": "widgets.rootmenu.buttons"}
|
||||||
|
],
|
||||||
|
"vertical": true
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"vertical": true
|
"vertical": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"align": {
|
"align": {
|
||||||
"left": [
|
"left": [
|
||||||
{
|
{
|
||||||
"widget": "widgets.tasklist",
|
"widget": "widgets.desktop.tasklist",
|
||||||
"screen": true
|
"screen": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
],
|
],
|
||||||
"right": [
|
"right": [
|
||||||
{
|
{
|
||||||
"widget": "widgets.launcher"
|
"widget": "widgets.desktop.launcher"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
{
|
{
|
||||||
"align": {
|
"align": {
|
||||||
"left": [
|
"left": [
|
||||||
{ "widget": "widgets.soundclown" }
|
{ "widget": "widgets.desktop.soundclown" }
|
||||||
],
|
],
|
||||||
"center": [
|
"center": [
|
||||||
|
|
||||||
],
|
],
|
||||||
"right": [
|
"right": [
|
||||||
{ "widget":"widgets.volume" },
|
{ "widget":"widgets.desktop.volume" },
|
||||||
{ "widget": "widgets.notifications",
|
{ "widget": "widgets.desktop.notifications",
|
||||||
"screen": true
|
"screen": true
|
||||||
},
|
},
|
||||||
{ "widget": "widgets.wallpapers",
|
{ "widget": "widgets.desktop.wallpapers",
|
||||||
"screen": true,
|
"screen": true,
|
||||||
"options": {
|
"options": {
|
||||||
"path": "$HOME/Pictures/Wallpapers"
|
"path": "$HOME/Pictures/Wallpapers"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ "widget": "widgets.battery" },
|
{ "widget": "widgets.desktop.battery" },
|
||||||
{ "widget": "widgets.base.systray" },
|
{ "widget": "widgets.base.systray" },
|
||||||
{ "widget": "widgets.base.clock" }
|
{ "widget": "widgets.base.clock" }
|
||||||
]
|
]
|
||||||
|
|
|
@ -25,6 +25,7 @@ theme.bg_minimize = "#2E2E2E"
|
||||||
theme.bg_highlight = "#45433D"
|
theme.bg_highlight = "#45433D"
|
||||||
theme.bg_systray = theme.bg_normal
|
theme.bg_systray = theme.bg_normal
|
||||||
|
|
||||||
|
|
||||||
theme.fg_normal = "#e1dec7"
|
theme.fg_normal = "#e1dec7"
|
||||||
theme.fg_focus = "#e1dec7"
|
theme.fg_focus = "#e1dec7"
|
||||||
theme.fg_urgent = "#e1dec7"
|
theme.fg_urgent = "#e1dec7"
|
||||||
|
@ -39,12 +40,36 @@ theme.border_normal = "#c0c0c0"
|
||||||
theme.border_focus = "#c0c0c0"
|
theme.border_focus = "#c0c0c0"
|
||||||
theme.border_marked = "#c0c0c0"
|
theme.border_marked = "#c0c0c0"
|
||||||
|
|
||||||
local bsize = 50
|
local wibar_height = 26
|
||||||
|
local wibar_width = 56
|
||||||
|
|
||||||
|
|
||||||
|
theme.horizontal_button_bg_focus = {
|
||||||
|
type = "linear",
|
||||||
|
from = {0,0},
|
||||||
|
to = {0,wibar_height},
|
||||||
|
stops = {
|
||||||
|
{0,"#32322C"},
|
||||||
|
{1,"#4E4E46"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.horizontal_button_bg_normal = {
|
||||||
|
type = "linear",
|
||||||
|
from = {0,0},
|
||||||
|
to = {0,wibar_height},
|
||||||
|
stops = {
|
||||||
|
{0,"#51514E"},
|
||||||
|
{1,"#343431"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.horizontal_button_border_bg = "#51514E"
|
||||||
|
|
||||||
theme.button_bg_focus = {
|
theme.button_bg_focus = {
|
||||||
type = "radial",
|
type = "radial",
|
||||||
from = {bsize/2,-0.5*bsize,bsize/10},
|
from = {wibar_width/2,-0.5*wibar_width,wibar_width/10},
|
||||||
to = {bsize/2,-0.5*bsize,bsize*2},
|
to = {wibar_width/2,-0.5*wibar_width,wibar_width*2},
|
||||||
stops = {
|
stops = {
|
||||||
{ 0 , "#FFFFFFBB"},
|
{ 0 , "#FFFFFFBB"},
|
||||||
{ 0.45, "#DF744E99"},
|
{ 0.45, "#DF744E99"},
|
||||||
|
@ -55,8 +80,8 @@ theme.button_bg_focus = {
|
||||||
|
|
||||||
theme.button_bg_normal = {
|
theme.button_bg_normal = {
|
||||||
type = "radial",
|
type = "radial",
|
||||||
from = {bsize/2,-0.5*bsize,bsize/10},
|
from = {wibar_width/2,-0.5*wibar_width,wibar_width/10},
|
||||||
to = {bsize/2,-0.2*bsize,bsize*1.5},
|
to = {wibar_width/2,-0.2*wibar_width,wibar_width*1.5},
|
||||||
stops = {
|
stops = {
|
||||||
{ 0 , "#FFFFFFFF"},
|
{ 0 , "#FFFFFFFF"},
|
||||||
{ 0.5, "#33333333"},
|
{ 0.5, "#33333333"},
|
||||||
|
@ -99,8 +124,8 @@ theme.bar_bg_inverted_focus = {
|
||||||
|
|
||||||
theme.bar_border_color = {
|
theme.bar_border_color = {
|
||||||
type = "radial",
|
type = "radial",
|
||||||
from = {bsize/2,bsize/(-3),bsize/8},
|
from = {wibar_width/2,wibar_width/(-3),wibar_width/8},
|
||||||
to = {bsize/2,bsize/(-5),bsize*1},
|
to = {wibar_width/2,wibar_width/(-5),wibar_width*1},
|
||||||
stops = {
|
stops = {
|
||||||
{ 0 , "#FFFFFF66"},
|
{ 0 , "#FFFFFF66"},
|
||||||
{ 1, "#43434366"},
|
{ 1, "#43434366"},
|
||||||
|
@ -193,7 +218,7 @@ local icons = {
|
||||||
"battery-good-charging-symbolic",
|
"battery-good-charging-symbolic",
|
||||||
"battery-low-charging-symbolic"
|
"battery-low-charging-symbolic"
|
||||||
}
|
}
|
||||||
for k,v in pairs(icons) do
|
for _,v in pairs(icons) do
|
||||||
theme[v] = themes_path.."unity/icons/"..v..".png"
|
theme[v] = themes_path.."unity/icons/"..v..".png"
|
||||||
theme[v:gsub("-charging","")] = themes_path.."unity/icons/"..v:gsub("-charging","")..".png"
|
theme[v:gsub("-charging","")] = themes_path.."unity/icons/"..v:gsub("-charging","")..".png"
|
||||||
end
|
end
|
||||||
|
@ -224,7 +249,7 @@ theme.wallpapers_icon = themes_path.."unity/icons/wallpapers.png"
|
||||||
-- This one has to be baked as a surface to avoid memory leaks
|
-- This one has to be baked as a surface to avoid memory leaks
|
||||||
theme.icon_default = themes_path.."unity/icons/unknown-app.png"
|
theme.icon_default = themes_path.."unity/icons/unknown-app.png"
|
||||||
|
|
||||||
for k,v in pairs({
|
for _,v in pairs({
|
||||||
"battery-caution-symbolic",
|
"battery-caution-symbolic",
|
||||||
"battery-empty-symbolic",
|
"battery-empty-symbolic",
|
||||||
"battery-full-symbolic",
|
"battery-full-symbolic",
|
||||||
|
@ -304,8 +329,8 @@ theme.widgets = {
|
||||||
shape = function(cr,width,height)
|
shape = function(cr,width,height)
|
||||||
return gears.shape.rounded_rect(cr,width,height,0)
|
return gears.shape.rounded_rect(cr,width,height,0)
|
||||||
end,
|
end,
|
||||||
height = 26,
|
height = wibar_height,
|
||||||
width = 60,
|
width = wibar_width+6,
|
||||||
margins = 3,
|
margins = 3,
|
||||||
stretch = true
|
stretch = true
|
||||||
},
|
},
|
||||||
|
@ -332,6 +357,10 @@ theme.widgets = {
|
||||||
border_color = theme.bg_normal,
|
border_color = theme.bg_normal,
|
||||||
paddings = {2,2,2,2}
|
paddings = {2,2,2,2}
|
||||||
},
|
},
|
||||||
|
icon = {
|
||||||
|
width = 25,
|
||||||
|
height = 25
|
||||||
|
}
|
||||||
},
|
},
|
||||||
-- }}}
|
-- }}}
|
||||||
-- {{{ Menus
|
-- {{{ Menus
|
||||||
|
@ -432,6 +461,10 @@ theme.widgets = {
|
||||||
article = {
|
article = {
|
||||||
icon_size = 30
|
icon_size = 30
|
||||||
},
|
},
|
||||||
|
icon = {
|
||||||
|
height = 60,
|
||||||
|
width = 100
|
||||||
|
}
|
||||||
},
|
},
|
||||||
-- }}}
|
-- }}}
|
||||||
soundclown = {
|
soundclown = {
|
||||||
|
@ -469,46 +502,88 @@ theme.widgets = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tasklist = {
|
tasklist = {
|
||||||
|
icon = {
|
||||||
|
margins = 2
|
||||||
|
},
|
||||||
button = {
|
button = {
|
||||||
width = 160,
|
width = 160,
|
||||||
height = 44,
|
height = wibar_width-4,
|
||||||
margins = 5,
|
margins = 4,
|
||||||
shape_focus = theme.button_shape,
|
shape_focus = theme.button_shape,
|
||||||
shape_normal = theme.button_shape,
|
shape_normal = theme.button_shape,
|
||||||
shape_urgent = theme.button_shape,
|
shape_urgent = theme.button_shape,
|
||||||
shape_minimize = theme.button_shape,
|
shape_minimize = theme.button_shape,
|
||||||
bg_normal = theme.button_bg_normal,
|
|
||||||
bg_focus = theme.button_bg_focus,
|
|
||||||
bg_urgent = theme.bg_urgent,
|
|
||||||
bg_minimize = theme.bg_minimize,
|
|
||||||
shape_border_color_normal = theme.bar_border_color,
|
|
||||||
shape_border_color_focus = theme.bar_border_color,
|
|
||||||
shape_border_color_urgent = theme.bar_border_color,
|
|
||||||
shape_border_color_minimize = theme.bar_border_color,
|
|
||||||
shape_border_width_normal = dpi(1),
|
shape_border_width_normal = dpi(1),
|
||||||
shape_border_width_focus = dpi(1),
|
shape_border_width_focus = dpi(1),
|
||||||
shape_border_width_urgent = dpi(1),
|
shape_border_width_urgent = dpi(1),
|
||||||
shape_border_width_minimize = dpi(1),
|
shape_border_width_minimize = dpi(1),
|
||||||
|
bg_normal = theme.horizontal_button_bg_normal,
|
||||||
|
bg_focus = theme.horizontal_button_bg_focus,
|
||||||
|
bg_urgent = theme.bg_urgent,
|
||||||
|
bg_minimize = theme.bg_minimize,
|
||||||
|
shape_border_color_normal = theme.horizontal_button_border_bg,
|
||||||
|
shape_border_color_focus = theme.horizontal_button_border_bg,
|
||||||
|
shape_border_color_minimize = theme.horizontal_button_border_bg,
|
||||||
|
shape_border_color_urgent = theme.horizontal_button_border_bg,
|
||||||
|
vertical = {
|
||||||
|
margins = 2,
|
||||||
|
shape_border_width_normal = dpi(1),
|
||||||
|
shape_border_width_focus = dpi(1),
|
||||||
|
shape_border_width_urgent = dpi(1),
|
||||||
|
shape_border_width_minimize = dpi(1),
|
||||||
|
bg_normal = theme.button_bg_normal,
|
||||||
|
bg_focus = theme.button_bg_focus,
|
||||||
|
bg_urgent = theme.bg_urgent,
|
||||||
|
bg_minimize = theme.bg_minimize,
|
||||||
|
shape_border_color_normal = theme.bar_border_color,
|
||||||
|
shape_border_color_focus = theme.bar_border_color,
|
||||||
|
shape_border_color_urgent = theme.bar_border_color,
|
||||||
|
shape_border_color_minimize = theme.bar_border_color
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
launcher = {
|
launcher = {
|
||||||
|
icon = {
|
||||||
|
width = wibar_width,
|
||||||
|
height = wibar_width,
|
||||||
|
margins = 2
|
||||||
|
},
|
||||||
button = {
|
button = {
|
||||||
margins = 5,
|
forced_height = wibar_width,
|
||||||
bg_normal = theme.button_bg_normal,
|
forced_width = wibar_width,
|
||||||
bg_focus = theme.button_bg_focus,
|
margins = 2,
|
||||||
|
bg_normal = theme.horizontal_button_bg_normal,
|
||||||
|
bg_focus = theme.horizontal_button_bg_focus,
|
||||||
shape_border_width = dpi(1),
|
shape_border_width = dpi(1),
|
||||||
shape_border_color = theme.bar_border_color,
|
shape_border_color = theme.horizontal_button_border_bg,
|
||||||
|
vertical = {
|
||||||
|
margins = 1,
|
||||||
|
bg_normal = theme.button_bg_normal,
|
||||||
|
bg_focus = theme.button_bg_focus,
|
||||||
|
shape_border_width = dpi(1),
|
||||||
|
shape_border_color = theme.bar_border_color,
|
||||||
|
onpress = function(widget)
|
||||||
|
widget:set_bg(theme.button_bg_focus)
|
||||||
|
end,
|
||||||
|
onrelease = function(widget)
|
||||||
|
widget:set_bg(theme.button_bg_normal)
|
||||||
|
end
|
||||||
|
},
|
||||||
onpress = function(widget)
|
onpress = function(widget)
|
||||||
widget:set_bg(theme.button_bg_focus)
|
widget:set_bg(theme.horizontal_button_bg_focus)
|
||||||
end,
|
end,
|
||||||
onrelease = function(widget)
|
onrelease = function(widget)
|
||||||
widget:set_bg(theme.button_bg_normal)
|
widget:set_bg(theme.horizontal_button_bg_normal)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lockscreen = {
|
lockscreen = {
|
||||||
popup = {
|
popup = {
|
||||||
margins = 0
|
margins = 0
|
||||||
|
},
|
||||||
|
icon = {
|
||||||
|
width = 150,
|
||||||
|
height = 150
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lockbar = {
|
lockbar = {
|
||||||
|
@ -592,12 +667,23 @@ theme.widgets = {
|
||||||
wibar_top = {
|
wibar_top = {
|
||||||
bg_normal = theme.bar_bg_normal,
|
bg_normal = theme.bar_bg_normal,
|
||||||
fg_normal = theme.fg_normal,
|
fg_normal = theme.fg_normal,
|
||||||
size = 22,
|
height = 28,
|
||||||
},
|
},
|
||||||
wibar_left = {
|
wibar_left = {
|
||||||
bg_normal = "#0D0D0966",
|
bg_normal = "#0D0D0966",
|
||||||
border_width = dpi(1),
|
border_width = dpi(1),
|
||||||
border_color = "#26262666"
|
border_color = "#26262666"
|
||||||
|
},
|
||||||
|
wibar_bottom = {
|
||||||
|
bg_normal = theme.bar_bg_normal,
|
||||||
|
fg_normal = theme.fg_normal,
|
||||||
|
height = 28,
|
||||||
|
margins = 0
|
||||||
|
},
|
||||||
|
wibar_right = {
|
||||||
|
bg_normal = "#0D0D0966",
|
||||||
|
border_width = dpi(1),
|
||||||
|
border_color = "#26262666"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -662,7 +748,7 @@ theme.templates = {
|
||||||
ontop = true
|
ontop = true
|
||||||
},options or {})
|
},options or {})
|
||||||
end
|
end
|
||||||
end
|
end,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,121 @@
|
||||||
|
Creative Commons Legal Code
|
||||||
|
|
||||||
|
CC0 1.0 Universal
|
||||||
|
|
||||||
|
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
||||||
|
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
||||||
|
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
||||||
|
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
||||||
|
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
||||||
|
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
||||||
|
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
||||||
|
HEREUNDER.
|
||||||
|
|
||||||
|
Statement of Purpose
|
||||||
|
|
||||||
|
The laws of most jurisdictions throughout the world automatically confer
|
||||||
|
exclusive Copyright and Related Rights (defined below) upon the creator
|
||||||
|
and subsequent owner(s) (each and all, an "owner") of an original work of
|
||||||
|
authorship and/or a database (each, a "Work").
|
||||||
|
|
||||||
|
Certain owners wish to permanently relinquish those rights to a Work for
|
||||||
|
the purpose of contributing to a commons of creative, cultural and
|
||||||
|
scientific works ("Commons") that the public can reliably and without fear
|
||||||
|
of later claims of infringement build upon, modify, incorporate in other
|
||||||
|
works, reuse and redistribute as freely as possible in any form whatsoever
|
||||||
|
and for any purposes, including without limitation commercial purposes.
|
||||||
|
These owners may contribute to the Commons to promote the ideal of a free
|
||||||
|
culture and the further production of creative, cultural and scientific
|
||||||
|
works, or to gain reputation or greater distribution for their Work in
|
||||||
|
part through the use and efforts of others.
|
||||||
|
|
||||||
|
For these and/or other purposes and motivations, and without any
|
||||||
|
expectation of additional consideration or compensation, the person
|
||||||
|
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
||||||
|
is an owner of Copyright and Related Rights in the Work, voluntarily
|
||||||
|
elects to apply CC0 to the Work and publicly distribute the Work under its
|
||||||
|
terms, with knowledge of his or her Copyright and Related Rights in the
|
||||||
|
Work and the meaning and intended legal effect of CC0 on those rights.
|
||||||
|
|
||||||
|
1. Copyright and Related Rights. A Work made available under CC0 may be
|
||||||
|
protected by copyright and related or neighboring rights ("Copyright and
|
||||||
|
Related Rights"). Copyright and Related Rights include, but are not
|
||||||
|
limited to, the following:
|
||||||
|
|
||||||
|
i. the right to reproduce, adapt, distribute, perform, display,
|
||||||
|
communicate, and translate a Work;
|
||||||
|
ii. moral rights retained by the original author(s) and/or performer(s);
|
||||||
|
iii. publicity and privacy rights pertaining to a person's image or
|
||||||
|
likeness depicted in a Work;
|
||||||
|
iv. rights protecting against unfair competition in regards to a Work,
|
||||||
|
subject to the limitations in paragraph 4(a), below;
|
||||||
|
v. rights protecting the extraction, dissemination, use and reuse of data
|
||||||
|
in a Work;
|
||||||
|
vi. database rights (such as those arising under Directive 96/9/EC of the
|
||||||
|
European Parliament and of the Council of 11 March 1996 on the legal
|
||||||
|
protection of databases, and under any national implementation
|
||||||
|
thereof, including any amended or successor version of such
|
||||||
|
directive); and
|
||||||
|
vii. other similar, equivalent or corresponding rights throughout the
|
||||||
|
world based on applicable law or treaty, and any national
|
||||||
|
implementations thereof.
|
||||||
|
|
||||||
|
2. Waiver. To the greatest extent permitted by, but not in contravention
|
||||||
|
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
||||||
|
irrevocably and unconditionally waives, abandons, and surrenders all of
|
||||||
|
Affirmer's Copyright and Related Rights and associated claims and causes
|
||||||
|
of action, whether now known or unknown (including existing as well as
|
||||||
|
future claims and causes of action), in the Work (i) in all territories
|
||||||
|
worldwide, (ii) for the maximum duration provided by applicable law or
|
||||||
|
treaty (including future time extensions), (iii) in any current or future
|
||||||
|
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
||||||
|
including without limitation commercial, advertising or promotional
|
||||||
|
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
||||||
|
member of the public at large and to the detriment of Affirmer's heirs and
|
||||||
|
successors, fully intending that such Waiver shall not be subject to
|
||||||
|
revocation, rescission, cancellation, termination, or any other legal or
|
||||||
|
equitable action to disrupt the quiet enjoyment of the Work by the public
|
||||||
|
as contemplated by Affirmer's express Statement of Purpose.
|
||||||
|
|
||||||
|
3. Public License Fallback. Should any part of the Waiver for any reason
|
||||||
|
be judged legally invalid or ineffective under applicable law, then the
|
||||||
|
Waiver shall be preserved to the maximum extent permitted taking into
|
||||||
|
account Affirmer's express Statement of Purpose. In addition, to the
|
||||||
|
extent the Waiver is so judged Affirmer hereby grants to each affected
|
||||||
|
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
||||||
|
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
||||||
|
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
||||||
|
maximum duration provided by applicable law or treaty (including future
|
||||||
|
time extensions), (iii) in any current or future medium and for any number
|
||||||
|
of copies, and (iv) for any purpose whatsoever, including without
|
||||||
|
limitation commercial, advertising or promotional purposes (the
|
||||||
|
"License"). The License shall be deemed effective as of the date CC0 was
|
||||||
|
applied by Affirmer to the Work. Should any part of the License for any
|
||||||
|
reason be judged legally invalid or ineffective under applicable law, such
|
||||||
|
partial invalidity or ineffectiveness shall not invalidate the remainder
|
||||||
|
of the License, and in such case Affirmer hereby affirms that he or she
|
||||||
|
will not (i) exercise any of his or her remaining Copyright and Related
|
||||||
|
Rights in the Work or (ii) assert any associated claims and causes of
|
||||||
|
action with respect to the Work, in either case contrary to Affirmer's
|
||||||
|
express Statement of Purpose.
|
||||||
|
|
||||||
|
4. Limitations and Disclaimers.
|
||||||
|
|
||||||
|
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
||||||
|
surrendered, licensed or otherwise affected by this document.
|
||||||
|
b. Affirmer offers the Work as-is and makes no representations or
|
||||||
|
warranties of any kind concerning the Work, express, implied,
|
||||||
|
statutory or otherwise, including without limitation warranties of
|
||||||
|
title, merchantability, fitness for a particular purpose, non
|
||||||
|
infringement, or the absence of latent or other defects, accuracy, or
|
||||||
|
the present or absence of errors, whether or not discoverable, all to
|
||||||
|
the greatest extent permissible under applicable law.
|
||||||
|
c. Affirmer disclaims responsibility for clearing rights of other persons
|
||||||
|
that may apply to the Work or any use thereof, including without
|
||||||
|
limitation any person's Copyright and Related Rights in the Work.
|
||||||
|
Further, Affirmer disclaims responsibility for obtaining any necessary
|
||||||
|
consents, permissions or other rights required for any use of the
|
||||||
|
Work.
|
||||||
|
d. Affirmer understands and acknowledges that Creative Commons is not a
|
||||||
|
party to this document and has no duty or obligation with respect to
|
||||||
|
this CC0 or use of the Work.
|
|
@ -0,0 +1,3 @@
|
||||||
|
A compositor (like compton) is ***required*** for this theme to work as intended.
|
||||||
|
This is in part due to the fact that it makes the top bar look less bland, and in part due to the fact that your titlebar corners will look weird otherwise (the corners won't be properly cut).
|
||||||
|
You may, of course, dismiss using a compositor, but don't tell me about not exactly round corners being a "bug" in this theme afterwards - it's the best you can get with Awesome.
|
After Width: | Height: | Size: 524 KiB |
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"list": [
|
||||||
|
{"widget": "widgets.clientmenu.volume","vertical":false},
|
||||||
|
{"widget": "widgets.clientmenu.controls"},
|
||||||
|
{"widget": "widgets.clientmenu.buttons"}
|
||||||
|
],
|
||||||
|
"vertical":true
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"widgets.dismal":{
|
||||||
|
"x":0,
|
||||||
|
"y":26
|
||||||
|
},
|
||||||
|
"widgets.rootmenu":{},
|
||||||
|
"widgets.lockscreen":{},
|
||||||
|
"widgets.base.keypopup":{}
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"widgets.lock.clock":{
|
||||||
|
"format": "%a %b %d\n %H: %M"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
"list": [
|
||||||
|
{"widget": "widgets.base.popuptitle",
|
||||||
|
"options":{
|
||||||
|
"title":"Reno Unity"
|
||||||
|
},
|
||||||
|
"vertical":true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"list": [
|
||||||
|
{"widget": "widgets.base.tagswitcher",
|
||||||
|
"screen":true
|
||||||
|
},
|
||||||
|
{"widget": "widgets.rootmenu.controls"},
|
||||||
|
{"widget": "widgets.xdgmenu",
|
||||||
|
"options": {
|
||||||
|
"exclude_category": [
|
||||||
|
"Other"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{"widget": "widgets.rootmenu.buttons"}
|
||||||
|
],
|
||||||
|
"vertical": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"vertical": false
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"list": [
|
||||||
|
{"widget": "widgets.base.popuptitle",
|
||||||
|
"options":{
|
||||||
|
"title":"Reno Unity"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{"widget": "widgets.rootcontrols"},
|
||||||
|
{"widget": "widgets.xdgmenu",
|
||||||
|
"options": {
|
||||||
|
"exclude_category": [
|
||||||
|
"Other"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"vertical": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"list":[
|
||||||
|
{"widget": "widgets.base.tagswitcher",
|
||||||
|
"screen":true
|
||||||
|
},
|
||||||
|
{"widget": "widgets.rootbuttons"}
|
||||||
|
],
|
||||||
|
"vertical":true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"vertical":false
|
||||||
|
}
|
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"align": {
|
||||||
|
"left": [
|
||||||
|
{
|
||||||
|
"widget":"widgets.clientmenu",
|
||||||
|
"client":true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"center": [
|
||||||
|
{
|
||||||
|
"draggable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"builtin": "titlewidget",
|
||||||
|
"client" : true,
|
||||||
|
"options": {
|
||||||
|
"align": "left"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"right": [
|
||||||
|
{ "widget": "widgets.base.subpanel",
|
||||||
|
"layout": {
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"builtin": "minimizebutton",
|
||||||
|
"client": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"builtin": "maximizedbutton",
|
||||||
|
"client": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"builtin": "closebutton",
|
||||||
|
"client": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"align": {
|
||||||
|
"left": [
|
||||||
|
{
|
||||||
|
"widget": "widgets.desktop.tasklist",
|
||||||
|
"screen": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"center": [
|
||||||
|
|
||||||
|
],
|
||||||
|
"right": [
|
||||||
|
{
|
||||||
|
"widget": "widgets.desktop.launcher"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"align": {
|
||||||
|
"left": [
|
||||||
|
{ "widget": "widgets.desktop.soundclown" }
|
||||||
|
],
|
||||||
|
"center": [
|
||||||
|
|
||||||
|
],
|
||||||
|
"right": [
|
||||||
|
{ "widget":"widgets.desktop.volume" },
|
||||||
|
{ "widget": "widgets.desktop.notifications",
|
||||||
|
"screen": true
|
||||||
|
},
|
||||||
|
{ "widget": "widgets.desktop.wallpapers",
|
||||||
|
"screen": true,
|
||||||
|
"options": {
|
||||||
|
"path": "$HOME/Pictures/Wallpapers"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "widget": "widgets.desktop.battery" },
|
||||||
|
{ "widget": "widgets.base.systray" },
|
||||||
|
{ "widget": "widgets.base.clock" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
Licensed under conditions of CC0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt)
|
||||||
|
|
||||||
|
To the extent possible under law, Yessiest (yessiest@memeware.net) has waived all copyright and related or neighboring rights to Reno98 icons
|
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 510 B |
After Width: | Height: | Size: 787 B |
After Width: | Height: | Size: 721 B |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 723 B |
After Width: | Height: | Size: 478 B |
After Width: | Height: | Size: 480 B |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 389 B |
After Width: | Height: | Size: 651 B |
After Width: | Height: | Size: 389 B |
After Width: | Height: | Size: 661 B |
After Width: | Height: | Size: 401 B |
After Width: | Height: | Size: 657 B |
After Width: | Height: | Size: 395 B |
After Width: | Height: | Size: 446 B |
After Width: | Height: | Size: 374 B |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 819 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 959 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 263 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 263 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 320 B |
After Width: | Height: | Size: 320 B |
After Width: | Height: | Size: 245 B |
After Width: | Height: | Size: 245 B |
After Width: | Height: | Size: 246 B |
After Width: | Height: | Size: 246 B |
After Width: | Height: | Size: 282 B |
After Width: | Height: | Size: 282 B |
After Width: | Height: | Size: 866 B |
After Width: | Height: | Size: 865 B |
After Width: | Height: | Size: 345 B |
After Width: | Height: | Size: 345 B |
After Width: | Height: | Size: 574 B |
After Width: | Height: | Size: 581 B |
After Width: | Height: | Size: 328 B |
After Width: | Height: | Size: 328 B |
After Width: | Height: | Size: 265 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 266 B |
After Width: | Height: | Size: 266 B |
After Width: | Height: | Size: 260 B |
After Width: | Height: | Size: 265 B |
After Width: | Height: | Size: 265 B |
After Width: | Height: | Size: 440 B |
After Width: | Height: | Size: 187 B |
After Width: | Height: | Size: 193 B |
|
@ -0,0 +1,757 @@
|
||||||
|
-- Reno Unity - Unity theme for Reno desktop
|
||||||
|
--[[
|
||||||
|
Reno Unity - A theme for Reno desktop
|
||||||
|
|
||||||
|
Written in 2022 by Yessiest (yessiest@memeware.net)
|
||||||
|
|
||||||
|
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
|
||||||
|
|
||||||
|
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||||
|
--]]
|
||||||
|
local theme_assets = require("beautiful.theme_assets")
|
||||||
|
local xresources = require("beautiful.xresources")
|
||||||
|
local dpi = xresources.apply_dpi
|
||||||
|
local gears = require("gears")
|
||||||
|
local themes_path = root_path.."/themes/"
|
||||||
|
|
||||||
|
local theme = {}
|
||||||
|
|
||||||
|
theme.font = "Ubuntu 8"
|
||||||
|
|
||||||
|
theme.bg_normal = "#19191D"
|
||||||
|
theme.bg_focus = "#3E3E3E"
|
||||||
|
theme.bg_urgent = "#2E2E2E"
|
||||||
|
theme.bg_minimize = "#2E2E2E"
|
||||||
|
theme.bg_highlight = "#45433D"
|
||||||
|
theme.bg_systray = theme.bg_normal
|
||||||
|
|
||||||
|
|
||||||
|
theme.fg_normal = "#e1dec7"
|
||||||
|
theme.fg_focus = "#e1dec7"
|
||||||
|
theme.fg_urgent = "#e1dec7"
|
||||||
|
theme.fg_minimize = "#e1dec7"
|
||||||
|
|
||||||
|
theme.window_rounding = 5
|
||||||
|
theme.useless_gap = dpi(0)
|
||||||
|
-- technically speaking these are irrelevant since they're not exactly smart
|
||||||
|
-- borders
|
||||||
|
theme.border_width = dpi(0)
|
||||||
|
theme.border_normal = "#c0c0c0"
|
||||||
|
theme.border_focus = "#c0c0c0"
|
||||||
|
theme.border_marked = "#c0c0c0"
|
||||||
|
|
||||||
|
local wibar_height = 26
|
||||||
|
local wibar_width = 56
|
||||||
|
|
||||||
|
|
||||||
|
theme.horizontal_button_bg_focus = {
|
||||||
|
type = "linear",
|
||||||
|
from = {0,0},
|
||||||
|
to = {0,wibar_height},
|
||||||
|
stops = {
|
||||||
|
{0,"#32322C"},
|
||||||
|
{1,"#4E4E46"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.horizontal_button_bg_normal = {
|
||||||
|
type = "linear",
|
||||||
|
from = {0,0},
|
||||||
|
to = {0,wibar_height},
|
||||||
|
stops = {
|
||||||
|
{0,"#51514E"},
|
||||||
|
{1,"#343431"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.horizontal_button_border_bg = "#51514E"
|
||||||
|
|
||||||
|
theme.button_bg_focus = {
|
||||||
|
type = "radial",
|
||||||
|
from = {wibar_width/2,-0.5*wibar_width,wibar_width/10},
|
||||||
|
to = {wibar_width/2,-0.5*wibar_width,wibar_width*2},
|
||||||
|
stops = {
|
||||||
|
{ 0 , "#FFFFFFBB"},
|
||||||
|
{ 0.45, "#DF744E99"},
|
||||||
|
{ 0.55, "#DF744E99"},
|
||||||
|
{ 1, "#FFFFFF44"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.button_bg_normal = {
|
||||||
|
type = "radial",
|
||||||
|
from = {wibar_width/2,-0.5*wibar_width,wibar_width/10},
|
||||||
|
to = {wibar_width/2,-0.2*wibar_width,wibar_width*1.5},
|
||||||
|
stops = {
|
||||||
|
{ 0 , "#FFFFFFFF"},
|
||||||
|
{ 0.5, "#33333333"},
|
||||||
|
{ 1, "#FFFFFF22"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.button_shape = function(cr,width,height)
|
||||||
|
return require("gears").shape.rounded_rect(cr,width,height,2)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
theme.bar_bg_focus = {
|
||||||
|
type = "linear",
|
||||||
|
from = { 0, 20 },
|
||||||
|
to = { 0, 0 },
|
||||||
|
stops = { { 0, "#3C3B37"} , { 1 , "#59574E"} }
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.bar_bg_normal = {
|
||||||
|
type = "linear",
|
||||||
|
from = { 0, 20 },
|
||||||
|
to = { 0, 0 },
|
||||||
|
stops = { { 0, "#3C3B37"} , { 1 , "#41403D"} }
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.bar_bg_inverted_normal = {
|
||||||
|
type = "linear",
|
||||||
|
from = { 0, 20 },
|
||||||
|
to = { 0, 0 },
|
||||||
|
stops = { { 0 , "#41403D"}, { 1, "#3C3B37"} }
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.bar_bg_inverted_focus = {
|
||||||
|
type = "linear",
|
||||||
|
from = { 0, 20 },
|
||||||
|
to = { 0, 0 },
|
||||||
|
stops = { { 0 , "#59574E"}, { 1, "#3C3B37"} }
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.bar_border_color = {
|
||||||
|
type = "radial",
|
||||||
|
from = {wibar_width/2,wibar_width/(-3),wibar_width/8},
|
||||||
|
to = {wibar_width/2,wibar_width/(-5),wibar_width*1},
|
||||||
|
stops = {
|
||||||
|
{ 0 , "#FFFFFF66"},
|
||||||
|
{ 1, "#43434366"},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
theme.titlebar_bg_focus = theme.bar_bg_focus
|
||||||
|
theme.titlebar_bg_normal = theme.bar_bg_normal
|
||||||
|
|
||||||
|
local taglist_square_size = dpi(4)
|
||||||
|
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
|
||||||
|
taglist_square_size, theme.fg_normal
|
||||||
|
)
|
||||||
|
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
|
||||||
|
taglist_square_size, theme.fg_normal
|
||||||
|
)
|
||||||
|
theme.menu_height = dpi(15)
|
||||||
|
theme.menu_width = dpi(100)
|
||||||
|
theme.systray_icon_spacing = 2
|
||||||
|
|
||||||
|
-- Define the image to load
|
||||||
|
|
||||||
|
theme.titlebar_ontop_button_normal_inactive = themes_path.."unity/titlebar/ontop_normal_inactive.png"
|
||||||
|
theme.titlebar_ontop_button_focus_inactive = themes_path.."unity/titlebar/ontop_focus_inactive.png"
|
||||||
|
theme.titlebar_ontop_button_normal_active = themes_path.."unity/titlebar/ontop_normal_active.png"
|
||||||
|
theme.titlebar_ontop_button_focus_active = themes_path.."unity/titlebar/ontop_focus_active.png"
|
||||||
|
|
||||||
|
theme.titlebar_sticky_button_normal_inactive = themes_path.."unity/titlebar/sticky_normal_inactive.png"
|
||||||
|
theme.titlebar_sticky_button_focus_inactive = themes_path.."unity/titlebar/sticky_focus_inactive.png"
|
||||||
|
theme.titlebar_sticky_button_normal_active = themes_path.."unity/titlebar/sticky_normal_active.png"
|
||||||
|
theme.titlebar_sticky_button_focus_active = themes_path.."unity/titlebar/sticky_focus_active.png"
|
||||||
|
|
||||||
|
theme.titlebar_floating_button_normal_inactive = themes_path.."unity/titlebar/floating_normal_inactive.png"
|
||||||
|
theme.titlebar_floating_button_focus_inactive = themes_path.."unity/titlebar/floating_focus_inactive.png"
|
||||||
|
theme.titlebar_floating_button_normal_active = themes_path.."unity/titlebar/floating_normal_active.png"
|
||||||
|
theme.titlebar_floating_button_focus_active = themes_path.."unity/titlebar/floating_focus_active.png"
|
||||||
|
|
||||||
|
theme = theme_assets.recolor_titlebar(theme,theme.fg_normal,"normal")
|
||||||
|
theme = theme_assets.recolor_titlebar(theme,theme.fg_focus,"focus")
|
||||||
|
|
||||||
|
theme.titlebar_close_button_normal = themes_path.."unity/titlebar/close_normal.png"
|
||||||
|
theme.titlebar_close_button_focus = themes_path.."unity/titlebar/close_focus.png"
|
||||||
|
|
||||||
|
theme.titlebar_minimize_button_normal = themes_path.."unity/titlebar/minimize_normal.png"
|
||||||
|
theme.titlebar_minimize_button_focus = themes_path.."unity/titlebar/minimize_focus.png"
|
||||||
|
|
||||||
|
theme.titlebar_maximized_button_normal_inactive = themes_path.."unity/titlebar/maximized_normal_inactive.png"
|
||||||
|
theme.titlebar_maximized_button_focus_inactive = themes_path.."unity/titlebar/maximized_focus_inactive.png"
|
||||||
|
theme.titlebar_maximized_button_normal_active = themes_path.."unity/titlebar/maximized_normal_active.png"
|
||||||
|
theme.titlebar_maximized_button_focus_active = themes_path.."unity/titlebar/maximized_focus_active.png"
|
||||||
|
|
||||||
|
-- You can use your own layout icons like this:
|
||||||
|
theme.layout_fairh = themes_path.."unity/layouts/fairhw.png"
|
||||||
|
theme.layout_fairv = themes_path.."unity/layouts/fairvw.png"
|
||||||
|
theme.layout_floating = themes_path.."unity/layouts/floatingw.png"
|
||||||
|
theme.layout_magnifier = themes_path.."unity/layouts/magnifierw.png"
|
||||||
|
theme.layout_max = themes_path.."unity/layouts/maxw.png"
|
||||||
|
theme.layout_fullscreen = themes_path.."unity/layouts/fullscreenw.png"
|
||||||
|
theme.layout_tilebottom = themes_path.."unity/layouts/tilebottomw.png"
|
||||||
|
theme.layout_tileleft = themes_path.."unity/layouts/tileleftw.png"
|
||||||
|
theme.layout_tile = themes_path.."unity/layouts/tilew.png"
|
||||||
|
theme.layout_tiletop = themes_path.."unity/layouts/tiletopw.png"
|
||||||
|
theme.layout_spiral = themes_path.."unity/layouts/spiralw.png"
|
||||||
|
theme.layout_dwindle = themes_path.."unity/layouts/dwindlew.png"
|
||||||
|
theme.layout_cornernw = themes_path.."unity/layouts/cornernww.png"
|
||||||
|
theme.layout_cornerne = themes_path.."unity/layouts/cornernew.png"
|
||||||
|
theme.layout_cornersw = themes_path.."unity/layouts/cornersww.png"
|
||||||
|
theme.layout_cornerse = themes_path.."unity/layouts/cornersew.png"
|
||||||
|
|
||||||
|
-- Generate Awesome icon:
|
||||||
|
theme.awesome_icon = theme_assets.awesome_icon(
|
||||||
|
theme.menu_height, theme.bg_focus, theme.fg_focus
|
||||||
|
)
|
||||||
|
|
||||||
|
theme.hotkeys_border_width = 3
|
||||||
|
theme.hotkeys_border_color = theme.bg_focus
|
||||||
|
theme.hotkeys_modifiers_fg = theme.fg_normal
|
||||||
|
theme.hotkeys_label_fg = theme.fg_normal
|
||||||
|
|
||||||
|
---theme.bgimage_outset
|
||||||
|
-- Define the icon theme for application icons. If not set then the icons
|
||||||
|
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
|
||||||
|
theme.icon_theme = "Humanity"
|
||||||
|
|
||||||
|
-- Icons
|
||||||
|
local icons = {
|
||||||
|
"battery-caution-charging-symbolic",
|
||||||
|
"battery-empty-charging-symbolic",
|
||||||
|
"battery-full-charging-symbolic",
|
||||||
|
"battery-good-charging-symbolic",
|
||||||
|
"battery-low-charging-symbolic"
|
||||||
|
}
|
||||||
|
for _,v in pairs(icons) do
|
||||||
|
theme[v] = themes_path.."unity/icons/"..v..".png"
|
||||||
|
theme[v:gsub("-charging","")] = themes_path.."unity/icons/"..v:gsub("-charging","")..".png"
|
||||||
|
end
|
||||||
|
theme["battery-full-charged-symbolic"] = themes_path.."unity/icons/battery-full-charged-symbolic.png"
|
||||||
|
theme["battery-missing-symbolic"] = themes_path.."unity/icons/battery-missing-symbolic.png"
|
||||||
|
theme["ac-adapter-symbolic"] = themes_path.."unity/icons/ac-adapter-symbolic.png"
|
||||||
|
theme["backlight-symbolic"] = themes_path.."unity/icons/backlight-symbolic.png"
|
||||||
|
theme["notifications-area-symbolic"] = themes_path.."unity/icons/notifications-area-symbolic.png"
|
||||||
|
|
||||||
|
theme["mpc-previous-symbolic"] = themes_path.."unity/icons/mpc-previous-symbolic.png"
|
||||||
|
|
||||||
|
theme["mpc-play-symbolic"] = themes_path.."unity/icons/mpc-play-symbolic.png"
|
||||||
|
theme["mpc-pause-symbolic"] = themes_path.."unity/icons/mpc-pause-symbolic.png"
|
||||||
|
theme["mpc-next-symbolic"] = themes_path.."unity/icons/mpc-next-symbolic.png"
|
||||||
|
|
||||||
|
theme["action-poweroff-symbolic"] = themes_path.."unity/icons/action-poweroff-symbolic.png"
|
||||||
|
theme["action-lock-screen-symbolic"] = themes_path.."unity/icons/action-lock-screen-symbolic.png"
|
||||||
|
theme["action-suspend-symbolic"] = themes_path.."unity/icons/action-suspend-symbolic.png"
|
||||||
|
theme["volume-high-symbolic"] = themes_path.."unity/icons/volume-high-symbolic.png"
|
||||||
|
theme["volume-medium-symbolic"] = themes_path.."unity/icons/volume-medium-symbolic.png"
|
||||||
|
theme["volume-low-symbolic"] = themes_path.."unity/icons/volume-low-symbolic.png"
|
||||||
|
theme["volume-muted-symbolic"] = themes_path.."unity/icons/volume-muted-symbolic.png"
|
||||||
|
|
||||||
|
|
||||||
|
theme.wallpaper = themes_path.."unity/background.png"
|
||||||
|
theme.wallpapers_icon = themes_path.."unity/icons/wallpapers.png"
|
||||||
|
-- Default icon for clients
|
||||||
|
-- This one has to be baked as a surface to avoid memory leaks
|
||||||
|
theme.icon_default = themes_path.."unity/icons/unknown-app.png"
|
||||||
|
|
||||||
|
for _,v in pairs({
|
||||||
|
"battery-caution-symbolic",
|
||||||
|
"battery-empty-symbolic",
|
||||||
|
"battery-full-symbolic",
|
||||||
|
"battery-good-symbolic",
|
||||||
|
"battery-low-symbolic",
|
||||||
|
"battery-caution-charging-symbolic",
|
||||||
|
"battery-empty-charging-symbolic",
|
||||||
|
"battery-full-charging-symbolic",
|
||||||
|
"battery-good-charging-symbolic",
|
||||||
|
"battery-low-charging-symbolic",
|
||||||
|
"battery-full-charged-symbolic",
|
||||||
|
"battery-missing-symbolic",
|
||||||
|
"ac-adapter-symbolic",
|
||||||
|
"backlight-symbolic",
|
||||||
|
"notifications-area-symbolic",
|
||||||
|
"mpc-previous-symbolic",
|
||||||
|
"mpc-play-symbolic",
|
||||||
|
"mpc-pause-symbolic",
|
||||||
|
"mpc-next-symbolic",
|
||||||
|
"action-poweroff-symbolic",
|
||||||
|
"action-lock-screen-symbolic",
|
||||||
|
"action-suspend-symbolic",
|
||||||
|
"wallpapers_icon",
|
||||||
|
"icon_default",
|
||||||
|
"volume-high-symbolic",
|
||||||
|
"volume-medium-symbolic",
|
||||||
|
"volume-low-symbolic",
|
||||||
|
"volume-muted-symbolic"}) do
|
||||||
|
if theme[v] and gears.filesystem.file_readable(theme[v]) then
|
||||||
|
theme[v] = gears.color.recolor_image(theme[v],theme.fg_normal)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
-- Notification popups settings
|
||||||
|
theme.notification_width = 240
|
||||||
|
theme.notification_height = 60
|
||||||
|
|
||||||
|
|
||||||
|
theme.widgets = {
|
||||||
|
-- {{{ Widget base
|
||||||
|
default = {
|
||||||
|
container = {
|
||||||
|
shape = function(cr,width,height)
|
||||||
|
return require("gears").shape.rounded_rect(cr,width,height,2)
|
||||||
|
end,
|
||||||
|
bgimage_highlight = theme.bgimage_inset
|
||||||
|
},
|
||||||
|
button = {
|
||||||
|
shape = theme.button_shape,
|
||||||
|
onpress = function(widget)
|
||||||
|
widget:set_bg(theme.bg_focus)
|
||||||
|
end,
|
||||||
|
onrelease = function(widget)
|
||||||
|
widget:set_bg(theme.bg_normal)
|
||||||
|
end
|
||||||
|
},
|
||||||
|
popup = {
|
||||||
|
shape = function(cr,width,height)
|
||||||
|
return gears.shape.rounded_rect(cr,width,height,4)
|
||||||
|
end,
|
||||||
|
root_shape = function(cr,width,height)
|
||||||
|
return gears.shape.rounded_rect(cr,width,height,6)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
titlebar = {
|
||||||
|
hidden_size = 2,
|
||||||
|
root_shape = function(cr,width,height)
|
||||||
|
return gears.shape.partially_rounded_rect(cr,width,height,
|
||||||
|
true,true,false,false,6) end,
|
||||||
|
root_bg_focus = theme.titlebar_bg_focus,
|
||||||
|
root_bg_normal = theme.titlebar_bg_normal,
|
||||||
|
top = 2,
|
||||||
|
bottom = 2,
|
||||||
|
left = 3,
|
||||||
|
right = 3
|
||||||
|
},
|
||||||
|
wibar = {
|
||||||
|
shape = function(cr,width,height)
|
||||||
|
return gears.shape.rounded_rect(cr,width,height,0)
|
||||||
|
end,
|
||||||
|
height = wibar_height,
|
||||||
|
width = wibar_width+6,
|
||||||
|
margins = 3,
|
||||||
|
stretch = true
|
||||||
|
},
|
||||||
|
slider = {
|
||||||
|
shape = function(cr,width,height)
|
||||||
|
return gears.shape.rounded_rect(cr,width,height,0)
|
||||||
|
end,
|
||||||
|
height = 20,
|
||||||
|
width = 140,
|
||||||
|
bg_focus = theme.bg_normal,
|
||||||
|
bg_normal = theme.bg_focus,
|
||||||
|
handle_width = 8,
|
||||||
|
handle_border_color = theme.bg_normal,
|
||||||
|
handle_border_width = 2,
|
||||||
|
bar_height = 6,
|
||||||
|
bar_border_color = theme.bg_focus,
|
||||||
|
bar_border_width = 2
|
||||||
|
},
|
||||||
|
checkbox = {
|
||||||
|
width = 15,
|
||||||
|
height = 15,
|
||||||
|
shape = gears.shape.circle,
|
||||||
|
border_width = 3,
|
||||||
|
border_color = theme.bg_normal,
|
||||||
|
paddings = {2,2,2,2}
|
||||||
|
},
|
||||||
|
icon = {
|
||||||
|
width = 25,
|
||||||
|
height = 25
|
||||||
|
}
|
||||||
|
},
|
||||||
|
-- }}}
|
||||||
|
-- {{{ Menus
|
||||||
|
generic_menu = {
|
||||||
|
base = {
|
||||||
|
spacing = 2,
|
||||||
|
menu_slide = true
|
||||||
|
},
|
||||||
|
button = {
|
||||||
|
bg_normal = theme.bg_highlight,
|
||||||
|
onpress = function(widget)
|
||||||
|
widget:set_bg(theme.bg_focus)
|
||||||
|
end,
|
||||||
|
onrelease = function(widget)
|
||||||
|
widget:set_bg(theme.bg_highlight)
|
||||||
|
end,
|
||||||
|
forced_height = 20,
|
||||||
|
forced_width = 160
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- }}}
|
||||||
|
-- {{{ Popup activating icons
|
||||||
|
generic_iconified_widget = {
|
||||||
|
button = {
|
||||||
|
margins = 1,
|
||||||
|
bg_normal = "#00000000",
|
||||||
|
onpress = function(widget)
|
||||||
|
widget:set_bg(theme.bg_normal)
|
||||||
|
end,
|
||||||
|
onrelease = function(widget)
|
||||||
|
widget:set_bg("#00000000")
|
||||||
|
end
|
||||||
|
}
|
||||||
|
},
|
||||||
|
-- }}}
|
||||||
|
-- {{{ Bars/Panels/Menu popups
|
||||||
|
generic_composite_widget = {
|
||||||
|
base = {
|
||||||
|
spacing = 2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
-- }}}
|
||||||
|
-- {{{ Status panel widgets
|
||||||
|
generic_status_widget = {
|
||||||
|
container = {
|
||||||
|
margins = 2,
|
||||||
|
bg_normal = "#00000000",
|
||||||
|
},
|
||||||
|
button = {
|
||||||
|
margins = 1,
|
||||||
|
bg_normal = "#00000000",
|
||||||
|
onpress = function() end,
|
||||||
|
onrelease = function() end,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
-- }}}
|
||||||
|
-- {{{ Various button lists
|
||||||
|
generic_button_list = {
|
||||||
|
button = {
|
||||||
|
bg_normal = theme.bg_highlight,
|
||||||
|
onpress = function(widget)
|
||||||
|
widget:set_bg(theme.bg_focus)
|
||||||
|
end,
|
||||||
|
onrelease = function(widget)
|
||||||
|
widget:set_bg(theme.bg_highlight)
|
||||||
|
end,
|
||||||
|
forced_width = 20,
|
||||||
|
forced_height = 20
|
||||||
|
},
|
||||||
|
base = {
|
||||||
|
spacing = 2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
-- }}}
|
||||||
|
-- {{{ All widgets that fit into a single line
|
||||||
|
generic_oneline_widget = {
|
||||||
|
container = {
|
||||||
|
bgimage_normal = theme.bgimage_inset
|
||||||
|
},
|
||||||
|
button = {
|
||||||
|
margins = 2,
|
||||||
|
onpress = function(widget)
|
||||||
|
widget:set_bg(theme.bg_normal)
|
||||||
|
end,
|
||||||
|
onrelease = function(widget)
|
||||||
|
widget:set_bg("#00000000")
|
||||||
|
end,
|
||||||
|
bg_normal = "#00000000"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
-- }}}
|
||||||
|
-- {{{ All kinds of widget popups
|
||||||
|
generic_popup = {
|
||||||
|
button = {
|
||||||
|
width = 180,
|
||||||
|
height = 40
|
||||||
|
},
|
||||||
|
article = {
|
||||||
|
icon_size = 30
|
||||||
|
},
|
||||||
|
icon = {
|
||||||
|
height = 60,
|
||||||
|
width = 100
|
||||||
|
}
|
||||||
|
},
|
||||||
|
-- }}}
|
||||||
|
soundclown = {
|
||||||
|
--[[ --Uncomment to leetify that MPC
|
||||||
|
container = {
|
||||||
|
bg_normal = "#0c0c0c",
|
||||||
|
fg_normal = "#00FF00"
|
||||||
|
},
|
||||||
|
]]
|
||||||
|
base = {
|
||||||
|
width = 140
|
||||||
|
},
|
||||||
|
},
|
||||||
|
subpanel = {
|
||||||
|
container = {
|
||||||
|
bgimage_normal = theme.bgimage_inset,
|
||||||
|
bg_normal = theme.bar_bg_inverted_normal,
|
||||||
|
margins = 0,
|
||||||
|
shape = function(cr,width,height)
|
||||||
|
return gears.shape.rounded_rect(cr,width,height,8)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
},
|
||||||
|
taglist = {
|
||||||
|
base = {
|
||||||
|
spacing = 2,
|
||||||
|
layout = require("wibox").layout.flex.horizontal
|
||||||
|
},
|
||||||
|
button = {
|
||||||
|
bgimage_focus = theme.bgimage_inset,
|
||||||
|
bgimage_normal = theme.bgimage_outset,
|
||||||
|
},
|
||||||
|
container = {
|
||||||
|
margins = 3
|
||||||
|
}
|
||||||
|
},
|
||||||
|
tasklist = {
|
||||||
|
icon = {
|
||||||
|
margins = 2
|
||||||
|
},
|
||||||
|
button = {
|
||||||
|
width = 160,
|
||||||
|
height = wibar_width-4,
|
||||||
|
margins = 4,
|
||||||
|
shape_focus = theme.button_shape,
|
||||||
|
shape_normal = theme.button_shape,
|
||||||
|
shape_urgent = theme.button_shape,
|
||||||
|
shape_minimize = theme.button_shape,
|
||||||
|
shape_border_width_normal = dpi(1),
|
||||||
|
shape_border_width_focus = dpi(1),
|
||||||
|
shape_border_width_urgent = dpi(1),
|
||||||
|
shape_border_width_minimize = dpi(1),
|
||||||
|
bg_normal = theme.horizontal_button_bg_normal,
|
||||||
|
bg_focus = theme.horizontal_button_bg_focus,
|
||||||
|
bg_urgent = theme.bg_urgent,
|
||||||
|
bg_minimize = theme.bg_minimize,
|
||||||
|
shape_border_color_normal = theme.horizontal_button_border_bg,
|
||||||
|
shape_border_color_focus = theme.horizontal_button_border_bg,
|
||||||
|
shape_border_color_minimize = theme.horizontal_button_border_bg,
|
||||||
|
shape_border_color_urgent = theme.horizontal_button_border_bg,
|
||||||
|
vertical = {
|
||||||
|
margins = 2,
|
||||||
|
shape_border_width_normal = dpi(1),
|
||||||
|
shape_border_width_focus = dpi(1),
|
||||||
|
shape_border_width_urgent = dpi(1),
|
||||||
|
shape_border_width_minimize = dpi(1),
|
||||||
|
bg_normal = theme.button_bg_normal,
|
||||||
|
bg_focus = theme.button_bg_focus,
|
||||||
|
bg_urgent = theme.bg_urgent,
|
||||||
|
bg_minimize = theme.bg_minimize,
|
||||||
|
shape_border_color_normal = theme.bar_border_color,
|
||||||
|
shape_border_color_focus = theme.bar_border_color,
|
||||||
|
shape_border_color_urgent = theme.bar_border_color,
|
||||||
|
shape_border_color_minimize = theme.bar_border_color
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
launcher = {
|
||||||
|
icon = {
|
||||||
|
width = wibar_width,
|
||||||
|
height = wibar_width,
|
||||||
|
margins = 2
|
||||||
|
},
|
||||||
|
button = {
|
||||||
|
forced_height = wibar_width,
|
||||||
|
forced_width = wibar_width,
|
||||||
|
margins = 2,
|
||||||
|
bg_normal = theme.horizontal_button_bg_normal,
|
||||||
|
bg_focus = theme.horizontal_button_bg_focus,
|
||||||
|
shape_border_width = dpi(1),
|
||||||
|
shape_border_color = theme.horizontal_button_border_bg,
|
||||||
|
vertical = {
|
||||||
|
margins = 1,
|
||||||
|
bg_normal = theme.button_bg_normal,
|
||||||
|
bg_focus = theme.button_bg_focus,
|
||||||
|
shape_border_width = dpi(1),
|
||||||
|
shape_border_color = theme.bar_border_color,
|
||||||
|
onpress = function(widget)
|
||||||
|
widget:set_bg(theme.button_bg_focus)
|
||||||
|
end,
|
||||||
|
onrelease = function(widget)
|
||||||
|
widget:set_bg(theme.button_bg_normal)
|
||||||
|
end
|
||||||
|
},
|
||||||
|
onpress = function(widget)
|
||||||
|
widget:set_bg(theme.horizontal_button_bg_focus)
|
||||||
|
end,
|
||||||
|
onrelease = function(widget)
|
||||||
|
widget:set_bg(theme.horizontal_button_bg_normal)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
},
|
||||||
|
lockscreen = {
|
||||||
|
popup = {
|
||||||
|
margins = 0
|
||||||
|
},
|
||||||
|
icon = {
|
||||||
|
width = 150,
|
||||||
|
height = 150
|
||||||
|
}
|
||||||
|
},
|
||||||
|
lockbar = {
|
||||||
|
base = {
|
||||||
|
height = 22
|
||||||
|
}
|
||||||
|
},
|
||||||
|
lockpanel = {
|
||||||
|
base = {
|
||||||
|
icon_height = 60,
|
||||||
|
icon_width = 60,
|
||||||
|
panel_height = 300,
|
||||||
|
panel_width = 200,
|
||||||
|
panel_bgimage = theme.bgimage_outset
|
||||||
|
},
|
||||||
|
container = {
|
||||||
|
shape = function(cr,width,height)
|
||||||
|
return gears.shape.rounded_rect(cr,width,height,8)
|
||||||
|
end,
|
||||||
|
shape_border_color = theme.bg_highlight,
|
||||||
|
shape_border_width = dpi(2)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
systray = {
|
||||||
|
container = {
|
||||||
|
margins = 2,
|
||||||
|
shape = function(cr,width,height)
|
||||||
|
return gears.shape.rounded_rect(cr,width,height,4)
|
||||||
|
end,
|
||||||
|
shape_border_color = theme.bg_normal,
|
||||||
|
shape_border_width = dpi(2)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
lock_clock = {
|
||||||
|
textbox = {
|
||||||
|
font = "Ubuntu Mono 20"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
titlebar = {
|
||||||
|
titlebar_top = {
|
||||||
|
onfocus = function(titlebar)
|
||||||
|
local root = titlebar:get_children_by_id("titlebar_root")[1]
|
||||||
|
root:set_bg(theme.titlebar_bg_focus)
|
||||||
|
root:set_shape(function(cr,width,height)
|
||||||
|
return gears.shape.partially_rounded_rect(
|
||||||
|
cr,width,height,
|
||||||
|
true,true,false,false,6) end)
|
||||||
|
end,
|
||||||
|
onunfocus = function(titlebar)
|
||||||
|
local root = titlebar:get_children_by_id("titlebar_root")[1]
|
||||||
|
root:set_bg(theme.titlebar_bg_normal)
|
||||||
|
root:set_shape(function(cr,width,height)
|
||||||
|
return gears.shape.partially_rounded_rect(
|
||||||
|
cr,width,height,
|
||||||
|
true,true,false,false,6) end)
|
||||||
|
end,
|
||||||
|
bg_focus = "#00000000",
|
||||||
|
bg_normal = "#00000000",
|
||||||
|
fg_focus = "#FAFAFA",
|
||||||
|
fg_normal = theme.fg_normal,
|
||||||
|
size = 22,
|
||||||
|
spacing = 1
|
||||||
|
},
|
||||||
|
titlebar_left = {
|
||||||
|
size = 2,
|
||||||
|
bg_focus = "#3C3B37",
|
||||||
|
bg_normal = "#3C3B37",
|
||||||
|
},
|
||||||
|
titlebar_right = {
|
||||||
|
size = 2,
|
||||||
|
bg_focus = "#3C3B37",
|
||||||
|
bg_normal = "#3C3B37",
|
||||||
|
},
|
||||||
|
titlebar_bottom = {
|
||||||
|
size = 2,
|
||||||
|
bg_focus = "#3C3B37",
|
||||||
|
bg_normal = "#3C3B37",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
wibar = {
|
||||||
|
wibar_top = {
|
||||||
|
bg_normal = theme.bar_bg_normal,
|
||||||
|
fg_normal = theme.fg_normal,
|
||||||
|
height = 28,
|
||||||
|
},
|
||||||
|
wibar_left = {
|
||||||
|
bg_normal = "#0D0D0966",
|
||||||
|
border_width = dpi(1),
|
||||||
|
border_color = "#26262666"
|
||||||
|
},
|
||||||
|
wibar_bottom = {
|
||||||
|
bg_normal = theme.bar_bg_normal,
|
||||||
|
fg_normal = theme.fg_normal,
|
||||||
|
height = 28,
|
||||||
|
margins = 0
|
||||||
|
},
|
||||||
|
wibar_right = {
|
||||||
|
bg_normal = "#0D0D0966",
|
||||||
|
border_width = dpi(1),
|
||||||
|
border_color = "#26262666"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
local wibox = require("wibox")
|
||||||
|
|
||||||
|
theme.templates = {
|
||||||
|
templates = {
|
||||||
|
titlebar = function(style)
|
||||||
|
return function(layout,options)
|
||||||
|
local margins = style.titlebar.margins
|
||||||
|
if (style.titlebar.left or
|
||||||
|
style.titlebar.right or
|
||||||
|
style.titlebar.bottom or
|
||||||
|
style.titlebar.top) then
|
||||||
|
margins = nil
|
||||||
|
end
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
gears.table.join({
|
||||||
|
layout,
|
||||||
|
margins = margins,
|
||||||
|
layout = wibox.container.margin,
|
||||||
|
left = style.titlebar.left,
|
||||||
|
right = style.titlebar.right,
|
||||||
|
bottom = style.titlebar.bottom,
|
||||||
|
top = style.titlebar.top
|
||||||
|
},options or {}),
|
||||||
|
bgimage = style.titlebar.root_bgimage_normal,
|
||||||
|
bg = style.titlebar.root_bg_normal,
|
||||||
|
fg = style.titlebar.root_fg_normal,
|
||||||
|
shape = style.titlebar.root_shape,
|
||||||
|
shape_border_color = style.titlebar.root_shape_border_color,
|
||||||
|
shape_border_width = style.titlebar.root_shape_border_width,
|
||||||
|
widget = wibox.container.background,
|
||||||
|
id = "titlebar_root"
|
||||||
|
},
|
||||||
|
layout = wibox.container.margin,
|
||||||
|
left = style.titlebar.root_margin_left,
|
||||||
|
right = style.titlebar.root_margin_right,
|
||||||
|
top = style.titlebar.root_margin_top,
|
||||||
|
bottom = style.titlebar.root_margin_bottom
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
popup = function(style)
|
||||||
|
return function(widget,options)
|
||||||
|
return gears.table.join({
|
||||||
|
widget = {
|
||||||
|
{
|
||||||
|
widget,
|
||||||
|
margins = style.popup.margins,
|
||||||
|
layout = wibox.container.margin
|
||||||
|
},
|
||||||
|
bg = style.popup.bg_normal,
|
||||||
|
shape = style.popup.root_shape,
|
||||||
|
widget = wibox.container.background
|
||||||
|
},
|
||||||
|
bg = "#00000000",
|
||||||
|
shape = style.popup.shape,
|
||||||
|
visible = false,
|
||||||
|
ontop = true
|
||||||
|
},options or {})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return theme
|
||||||
|
|
||||||
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
After Width: | Height: | Size: 938 B |
After Width: | Height: | Size: 683 B |
After Width: | Height: | Size: 386 B |
After Width: | Height: | Size: 237 B |
After Width: | Height: | Size: 386 B |