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-28 20:57:22 +01:00
parent 1b0259fd1c
commit c4ec0f0711
9 changed files with 42 additions and 9 deletions

2
lain

@ -1 +1 @@
Subproject commit 555b872d16393774089df3b3453000571a73a3dd Subproject commit 1b428513fdede06ef54679edbfd267534f49659e

View file

@ -142,7 +142,8 @@ 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_to = { mytextclock },
notification_preset = { notification_preset = {
font = "Tamsyn 10.5", font = "Tamsyn 10.5",
fg = beautiful.fg_normal, fg = beautiful.fg_normal,

View file

@ -146,7 +146,8 @@ 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_to = { mytextclock },
notification_preset = { notification_preset = {
font = "Tamsyn 10.5", font = "Tamsyn 10.5",
fg = beautiful.fg_normal, fg = beautiful.fg_normal,
@ -281,6 +282,7 @@ local volicon = wibox.widget.imagebox(beautiful.vol)
local volume = lain.widgets.alsabar({ local volume = lain.widgets.alsabar({
width = 59, border_width = 0, ticks = true, ticks_size = 6, width = 59, border_width = 0, ticks = true, ticks_size = 6,
notification_preset = { font = beautiful.font }, notification_preset = { font = beautiful.font },
--togglechannel = "IEC958,3",
settings = function() settings = function()
if volume_now.status == "off" then if volume_now.status == "off" then
volicon:set_image(beautiful.vol_mute) volicon:set_image(beautiful.vol_mute)
@ -301,6 +303,28 @@ local volume = lain.widgets.alsabar({
local volumebg = wibox.container.background(volume.bar, "#474747", shape.rectangle) local volumebg = wibox.container.background(volume.bar, "#474747", shape.rectangle)
local volumewidget = wibox.container.margin(volumebg, 2, 7, 4, 4) local volumewidget = wibox.container.margin(volumebg, 2, 7, 4, 4)
volume.bar:buttons(awful.util.table.join (
awful.button({}, 1, function()
awful.spawn.with_shell(string.format("%s -e alsamixer", terminal))
end),
awful.button({}, 2, function()
awful.spawn(string.format("%s set %s 100%%", volume.cmd, volume.channel))
volume.update()
end),
awful.button({}, 3, function()
awful.spawn(string.format("%s set %s toggle", volume.cmd, volume.togglechannel or volume.channel))
volume.update()
end),
awful.button({}, 4, function()
awful.spawn(string.format("%s set %s 1%%+", volume.cmd, volume.channel))
volume.update()
end),
awful.button({}, 5, function()
awful.spawn(string.format("%s set %s 1%%-", volume.cmd, volume.channel))
volume.update()
end)
))
-- Weather -- Weather
local myweather = lain.widgets.weather({ local myweather = lain.widgets.weather({
city_id = 2643743, -- placeholder (London) city_id = 2643743, -- placeholder (London)

View file

@ -144,7 +144,8 @@ 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, { lain.widgets.calendar({
attach_to = { mytextclock },
notification_preset = { notification_preset = {
font = "Tamsyn 10.5", font = "Tamsyn 10.5",
fg = white, fg = white,

View file

@ -153,7 +153,10 @@ 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, { notification_preset = { fg = "#FFFFFF", bg = beautiful.bg_normal, position = "bottom_right", font = "Monospace 10" } }) lain.widgets.calendar({
attach_to = { calendarwidget, clockwidget },
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,8 @@ local mytextclock = lain.widgets.base({
]] ]]
-- Calendar -- Calendar
lain.widgets.calendar.attach(mytextclock, { lain.widgets.calendar({
attach_to = { mytextclock },
notification_preset = { notification_preset = {
font = "Terminus 10", font = "Terminus 10",
fg = beautiful.fg_normal, fg = beautiful.fg_normal,

View file

@ -148,7 +148,8 @@ local clock = lain.widgets.abase({
}) })
-- calendar -- calendar
lain.widgets.calendar.attach(mytextclock, { lain.widgets.calendar({
attach_to = { clock.widget },
notification_preset = { notification_preset = {
font = "Terminus 10", font = "Terminus 10",
fg = beautiful.fg_normal, fg = beautiful.fg_normal,

View file

@ -143,7 +143,8 @@ 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, { lain.widgets.calendar({
attach_to = { mytextclock },
notification_preset = { notification_preset = {
font = "Tamsyn 10.5", font = "Tamsyn 10.5",
fg = white, fg = white,

View file

@ -141,7 +141,8 @@ 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_to = { mytextclock },
notification_preset = { notification_preset = {
font = "Tamsyn 10.5", font = "Tamsyn 10.5",
fg = gray, fg = gray,