mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 03:32:30 +00:00
Merge branch 'master' of github.com:copycat-killer/awesome-copycats
This commit is contained in:
commit
d4d97e5aa5
2
lain
2
lain
|
@ -1 +1 @@
|
||||||
Subproject commit b14eff9b1e5558b3d3ea47d5e6ac9d6db3d265de
|
Subproject commit 1555e239eb42953d6d16b04f09d4d19083fa5119
|
|
@ -12,6 +12,7 @@ local awful = require("awful")
|
||||||
local wibox = require("wibox")
|
local wibox = require("wibox")
|
||||||
local theme_assets = require("beautiful.theme_assets")
|
local theme_assets = require("beautiful.theme_assets")
|
||||||
local math, string, tonumber, os = math, string, tonumber, os
|
local math, string, tonumber, os = math, string, tonumber, os
|
||||||
|
local client = client
|
||||||
|
|
||||||
local theme = {}
|
local theme = {}
|
||||||
theme.default_dir = require("awful.util").get_themes_dir() .. "default"
|
theme.default_dir = require("awful.util").get_themes_dir() .. "default"
|
||||||
|
@ -113,13 +114,14 @@ local markup = lain.util.markup
|
||||||
local mytextclock = wibox.widget.textclock(markup("#FFFFFF", "%a %d %b, %H:%M"))
|
local mytextclock = wibox.widget.textclock(markup("#FFFFFF", "%a %d %b, %H:%M"))
|
||||||
mytextclock.font = theme.font
|
mytextclock.font = theme.font
|
||||||
lain.widgets.calendar({
|
lain.widgets.calendar({
|
||||||
attach_to = { mytextclock },
|
cal = "/usr/bin/cal --color=always",
|
||||||
notification_preset = {
|
attach_to = { mytextclock },
|
||||||
|
notification_preset = {
|
||||||
fg = "#FFFFFF",
|
fg = "#FFFFFF",
|
||||||
bg = theme.bg_normal,
|
bg = theme.bg_normal,
|
||||||
position = "top_middle",
|
position = "top_middle",
|
||||||
font = "Monospace 10"
|
font = "Monospace 10"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Battery
|
-- Battery
|
||||||
|
@ -326,7 +328,7 @@ function theme.at_screen_connect(s)
|
||||||
layout = wibox.layout.fixed.horizontal,
|
layout = wibox.layout.fixed.horizontal,
|
||||||
s.mypromptbox,
|
s.mypromptbox,
|
||||||
tspace1,
|
tspace1,
|
||||||
wibox.container.constraint(s.mytasklist, "min", s.workarea.width/4),
|
wibox.container.constraint(wibox.container.constraint(s.mytasklist, "min", s.workarea.width/4), "max", s.workarea.width/4),
|
||||||
},
|
},
|
||||||
{ -- Middle widgets
|
{ -- Middle widgets
|
||||||
layout = wibox.layout.flex.horizontal,
|
layout = wibox.layout.flex.horizontal,
|
||||||
|
@ -402,4 +404,22 @@ function theme.at_screen_connect(s)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[
|
||||||
|
client.connect_signal("property::width",function(c)
|
||||||
|
if c.shape ~= gears.shape.rounded_rect then
|
||||||
|
c.shape = gears.shape.rounded_rect
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
client.connect_signal("property::height",function(c)
|
||||||
|
if c.shape ~= gears.shape.rounded_rect then
|
||||||
|
c.shape = gears.shape.rounded_rect
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
client.connect_signal("property::width",function(c)
|
||||||
|
if c.shape ~= gears.shape.rounded_rect then
|
||||||
|
c.shape = gears.shape.rounded_rect
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
--]]
|
||||||
|
|
||||||
return theme
|
return theme
|
||||||
|
|
Loading…
Reference in a new issue