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

View File

@ -146,7 +146,12 @@ local green = "#8FEB8F"
local mytextclock = wibox.widget.textclock("<span font='Tamsyn 5'> </span>%H:%M ") local mytextclock = wibox.widget.textclock("<span font='Tamsyn 5'> </span>%H:%M ")
-- Calendar -- 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 --[[ Mail IMAP check
-- commented because it needs to be set before use -- commented because it needs to be set before use
@ -258,6 +263,7 @@ local fsbar = wibox.widget {
local fshome = lain.widgets.fs({ local fshome = lain.widgets.fs({
partition = "/home", partition = "/home",
options = "--exclude-type=tmpfs", options = "--exclude-type=tmpfs",
notification_preset = { fg = beautiful.fg_normal, bg = beautiful.bg_normal, font = "Tamsyn 10.5" },
settings = function() settings = function()
if tonumber(fs_now.used) < 90 then if tonumber(fs_now.used) < 90 then
fsbar:set_color(beautiful.fg_normal) 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 ")) .. markup(white, " %d ") .. markup(gray, "%b ") .. markup(white, "%H:%M "))
-- Calendar -- 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 --[[ Mail IMAP check
-- commented because it needs to be set before use -- commented because it needs to be set before use
@ -191,7 +196,7 @@ local mpdwidget = lain.widgets.mpd({
local fshome = lain.widgets.fs({ local fshome = lain.widgets.fs({
partition = "/home", partition = "/home",
options = "--exclude-type=tmpfs", options = "--exclude-type=tmpfs",
notification_preset = { fg = white }, notification_preset = { fg = white, bg = beautiful.bg_normal, font = "Tamsyn 10.5" },
settings = function() settings = function()
fs_header = "" fs_header = ""
fs_p = "" 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 calendar_icon = wibox.widget.imagebox(beautiful.calendar)
local calbg = wibox.container.background(mytextcalendar, beautiful.bg_focus, shape.rectangle) local calbg = wibox.container.background(mytextcalendar, beautiful.bg_focus, shape.rectangle)
local calendarwidget = wibox.container.margin(calbg, 0, 0, 5, 5) 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 --[[ Mail IMAP check
-- commented because it needs to be set before use -- commented because it needs to be set before use

View File

@ -156,7 +156,12 @@ local mytextclock = lain.widgets.base({
]] ]]
-- Calendar -- 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 -- Weather
local weathericon = wibox.widget.imagebox(beautiful.widget_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 fsicon = wibox.widget.imagebox(beautiful.widget_fs)
local fsroot = lain.widgets.fs({ local fsroot = lain.widgets.fs({
options = "--exclude-type=tmpfs", options = "--exclude-type=tmpfs",
notification_preset = { font = "Terminus 10", fg = beautiful.fg_normal },
settings = function() settings = function()
widget:set_markup(markup("#80d9d8", fs_now.used .. "% ")) widget:set_markup(markup("#80d9d8", fs_now.used .. "% "))
end end

View File

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

View File

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

View File

@ -141,7 +141,12 @@ local gray = "#94928F"
local mytextclock = wibox.widget.textclock(" %H:%M ") local mytextclock = wibox.widget.textclock(" %H:%M ")
-- Calendar -- 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 -- Mail IMAP check
local mailwidget = lain.widgets.imap({ local mailwidget = lain.widgets.imap({
@ -196,7 +201,8 @@ local memwidget = lain.widgets.mem({
-- /home fs -- /home fs
local fshome = lain.widgets.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 -- Battery