1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-10-22 20:41:22 +00:00

lain: new commit

This commit is contained in:
copycat-killer 2017-01-22 01:56:49 +01:00
parent 0a818b6f95
commit f64dbb6475
9 changed files with 53 additions and 13 deletions

2
lain

@ -1 +1 @@
Subproject commit 9adaa9fa3290cc1f522bd85ba878de39c5fbde2a
Subproject commit fadc722655b2ba4ebe98eece3498da3c88f8b6fc

View file

@ -142,7 +142,12 @@ gray = "#9E9C9A"
local mytextclock = wibox.widget.textclock(" %H:%M ")
-- Calendar
lain.widgets.calendar.attach(mytextclock)
lain.widgets.calendar.attach(mytextclock, {
notification_preset = {
font = "Tamsyn 10.5",
fg = beautiful.fg_normal,
bg = beautiful.bg_normal
}})
--[[ Mail IMAP check
-- commented because it needs to be set before use
@ -187,6 +192,7 @@ local mpdwidget = lain.widgets.mpd({
local fshome = lain.widgets.fs({
partition = "/home",
options = "--exclude-type=tmpfs",
notification_preset = { fg = beautiful.fg_normal, bg = beautiful.bg_normal, font = "Tamsyn 10.5" },
settings = function()
fs_header = ""
fs_p = ""

View file

@ -146,7 +146,12 @@ local green = "#8FEB8F"
local mytextclock = wibox.widget.textclock("<span font='Tamsyn 5'> </span>%H:%M ")
-- Calendar
lain.widgets.calendar.attach(mytextclock)
lain.widgets.calendar.attach(mytextclock, {
notification_preset = {
font = "Tamsyn 10.5",
fg = beautiful.fg_normal,
bg = beautiful.bg_normal
}})
--[[ Mail IMAP check
-- commented because it needs to be set before use
@ -258,6 +263,7 @@ local fsbar = wibox.widget {
local fshome = lain.widgets.fs({
partition = "/home",
options = "--exclude-type=tmpfs",
notification_preset = { fg = beautiful.fg_normal, bg = beautiful.bg_normal, font = "Tamsyn 10.5" },
settings = function()
if tonumber(fs_now.used) < 90 then
fsbar:set_color(beautiful.fg_normal)

View file

@ -144,7 +144,12 @@ local mytextclock = wibox.widget.textclock(markup(gray, " %a")
.. markup(white, " %d ") .. markup(gray, "%b ") .. markup(white, "%H:%M "))
-- Calendar
lain.widgets.calendar.attach(mytextclock, { fg = white })
lain.widgets.calendar.attach(mytextclock, {
notification_preset = {
font = "Tamsyn 10.5",
fg = white,
bg = beautiful.bg_normal
}})
--[[ Mail IMAP check
-- commented because it needs to be set before use
@ -191,7 +196,7 @@ local mpdwidget = lain.widgets.mpd({
local fshome = lain.widgets.fs({
partition = "/home",
options = "--exclude-type=tmpfs",
notification_preset = { fg = white },
notification_preset = { fg = white, bg = beautiful.bg_normal, font = "Tamsyn 10.5" },
settings = function()
fs_header = ""
fs_p = ""

View file

@ -153,7 +153,7 @@ local mytextcalendar = wibox.widget.textclock(markup("#FFFFFF", space3 .. "%d %b
local calendar_icon = wibox.widget.imagebox(beautiful.calendar)
local calbg = wibox.container.background(mytextcalendar, beautiful.bg_focus, shape.rectangle)
local calendarwidget = wibox.container.margin(calbg, 0, 0, 5, 5)
lain.widgets.calendar.attach(calendarwidget, { fg = "#FFFFFF", position = "bottom_right", font = "Monospace", font_size = 9 })
lain.widgets.calendar.attach(calendarwidget, { notification_preset = { fg = "#FFFFFF", bg = beautiful.bg_normal, position = "bottom_right", font = "Monospace 10" } })
--[[ Mail IMAP check
-- commented because it needs to be set before use

View file

@ -156,7 +156,12 @@ local mytextclock = lain.widgets.base({
]]
-- Calendar
lain.widgets.calendar.attach(mytextclock, { font_size = 10 })
lain.widgets.calendar.attach(mytextclock, {
notification_preset = {
font = "Terminus 10",
fg = beautiful.fg_normal,
bg = beautiful.bg_normal
}})
-- Weather
local weathericon = wibox.widget.imagebox(beautiful.widget_weather)
@ -174,6 +179,7 @@ local myweather = lain.widgets.weather({
local fsicon = wibox.widget.imagebox(beautiful.widget_fs)
local fsroot = lain.widgets.fs({
options = "--exclude-type=tmpfs",
notification_preset = { font = "Terminus 10", fg = beautiful.fg_normal },
settings = function()
widget:set_markup(markup("#80d9d8", fs_now.used .. "% "))
end

View file

@ -149,7 +149,13 @@ local mytextclock = lain.widgets.abase({
})
-- calendar
lain.widgets.calendar.attach(mytextclock, { font_size = 10 })
lain.widgets.calendar.attach(mytextclock, {
notification_preset = {
font = "Terminus 10",
fg = beautiful.fg_normal,
bg = beautiful.bg_normal
}
})
-- Mail IMAP check
local mailicon = wibox.widget.imagebox(beautiful.widget_mail)
@ -222,6 +228,7 @@ local tempwidget = lain.widgets.temp({
local fsicon = wibox.widget.imagebox(beautiful.widget_hdd)
local fsroot = lain.widgets.fs({
options = "--exclude-type=tmpfs",
notification_preset = { fg = beautiful.fg_normal, bg = beautiful.bg_normal, font = "Terminus 10" },
settings = function()
widget:set_text(" " .. fs_now.used .. "% ")
end

View file

@ -143,7 +143,12 @@ local gray = beautiful.fg_normal
local mytextclock = wibox.widget.textclock(markup(white, " %H:%M "))
-- Calendar
lain.widgets.calendar.attach(mytextclock, { fg = beautiful.fg_focus })
lain.widgets.calendar.attach(mytextclock, {
notification_preset = {
font = "Tamsyn 10.5",
fg = white,
bg = beautiful.bg_normal
}})
--[[ Mail IMAP check
-- commented because it needs to be set before use
@ -192,9 +197,8 @@ local mpdwidget = lain.widgets.mpd({
local fshome = lain.widgets.fs({
partition = "/home",
options = "--exclude-type=tmpfs",
notification_preset = { fg = white, bg = beautiful.bg_normal, font = "Tamsyn 10.5" },
settings = function()
notification_preset.fg = white
hdd = ""
p = ""

View file

@ -141,7 +141,12 @@ local gray = "#94928F"
local mytextclock = wibox.widget.textclock(" %H:%M ")
-- Calendar
lain.widgets.calendar.attach(mytextclock)
lain.widgets.calendar.attach(mytextclock, {
notification_preset = {
font = "Tamsyn 10.5",
fg = white,
bg = beautiful.bg_normal
}})
-- Mail IMAP check
local mailwidget = lain.widgets.imap({
@ -196,7 +201,8 @@ local memwidget = lain.widgets.mem({
-- /home fs
local fshome = lain.widgets.fs({
partition = "/home"
partition = "/home",
notification_preset = { fg = beautiful.fg_normal, bg = beautiful.bg_normal, font = "Tamsyn 10.5" },
})
-- Battery