mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 03:32:30 +00:00
lain: new commit
This commit is contained in:
parent
eb14361913
commit
a723292611
|
@ -26,7 +26,7 @@ Notable features
|
||||||
- Quake drop-down terminal
|
- Quake drop-down terminal
|
||||||
- Calendar with current day highlighted and months switch with a click
|
- Calendar with current day highlighted and months switch with a click
|
||||||
- Elegant notifications for new mails, current song, volume level, hdd critical state, low battery
|
- Elegant notifications for new mails, current song, volume level, hdd critical state, low battery
|
||||||
- Yahoo! Weather integration
|
- OpenWeatherMap integration
|
||||||
- Net carrier status notifier
|
- Net carrier status notifier
|
||||||
- Colorful autoupdating icons
|
- Colorful autoupdating icons
|
||||||
- Symbolic tag names
|
- Symbolic tag names
|
||||||
|
|
2
lain
2
lain
|
@ -1 +1 @@
|
||||||
Subproject commit 5fc544049aa9a70df55907c8171703604aec7b26
|
Subproject commit 8c5b64675dfbf196871ee31cf22920627019bd84
|
|
@ -198,11 +198,11 @@ volumewidget = lain.widgets.alsa({
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Weather
|
myweather = lain.widgets.weather({
|
||||||
yawn = lain.widgets.yawn(123456,
|
city_id = 123456, -- placeholder
|
||||||
{
|
|
||||||
settings = function()
|
settings = function()
|
||||||
widget:set_markup(" " .. units .. " ")
|
units = math.floor(weather_now["main"]["temp"])
|
||||||
|
widget:set_text(" " .. units .. " ")
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -297,8 +297,8 @@ for s = 1, screen.count() do
|
||||||
right_layout:add(first)
|
right_layout:add(first)
|
||||||
right_layout:add(mpdwidget)
|
right_layout:add(mpdwidget)
|
||||||
--right_layout:add(mailwidget)
|
--right_layout:add(mailwidget)
|
||||||
right_layout:add(yawn.icon)
|
right_layout:add(myweather.icon)
|
||||||
right_layout:add(yawn.widget)
|
right_layout:add(myweather)
|
||||||
right_layout:add(fshome)
|
right_layout:add(fshome)
|
||||||
right_layout:add(batwidget)
|
right_layout:add(batwidget)
|
||||||
right_layout:add(volumewidget)
|
right_layout:add(volumewidget)
|
||||||
|
@ -423,7 +423,7 @@ globalkeys = awful.util.table.join(
|
||||||
-- Widgets popups
|
-- Widgets popups
|
||||||
awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end),
|
awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end),
|
||||||
awful.key({ altkey, }, "h", function () fshome.show(7) end),
|
awful.key({ altkey, }, "h", function () fshome.show(7) end),
|
||||||
awful.key({ altkey, }, "w", function () yawn.show(7) end),
|
awful.key({ altkey, }, "w", function () myweather.show(7) end),
|
||||||
|
|
||||||
-- ALSA volume control
|
-- ALSA volume control
|
||||||
awful.key({ altkey }, "Up",
|
awful.key({ altkey }, "Up",
|
||||||
|
|
|
@ -133,9 +133,12 @@ lain.widgets.calendar:attach(mytextclock, { font_size = 10 })
|
||||||
|
|
||||||
-- Weather
|
-- Weather
|
||||||
weathericon = wibox.widget.imagebox(beautiful.widget_weather)
|
weathericon = wibox.widget.imagebox(beautiful.widget_weather)
|
||||||
yawn = lain.widgets.yawn(123456, {
|
myweather = lain.widgets.weather({
|
||||||
|
city_id = 123456, -- placeholder
|
||||||
settings = function()
|
settings = function()
|
||||||
widget:set_markup(markup("#eca4c4", forecast:lower() .. " @ " .. units .. "°C "))
|
descr = weather_now["weather"][1]["description"]:lower()
|
||||||
|
units = math.floor(weather_now["main"]["temp"])
|
||||||
|
widget:set_markup(markup("#eca4c4", descr .. " @ " .. units .. "°C "))
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -219,9 +222,9 @@ netupicon = wibox.widget.imagebox(beautiful.widget_netup)
|
||||||
netupinfo = lain.widgets.net({
|
netupinfo = lain.widgets.net({
|
||||||
settings = function()
|
settings = function()
|
||||||
if iface ~= "network off" and
|
if iface ~= "network off" and
|
||||||
string.match(yawn.widget._layout.text, "N/A")
|
string.match(myweather._layout.text, "N/A")
|
||||||
then
|
then
|
||||||
yawn.fetch_weather()
|
myweather.update()
|
||||||
end
|
end
|
||||||
|
|
||||||
widget:set_markup(markup("#e54c62", net_now.sent .. " "))
|
widget:set_markup(markup("#e54c62", net_now.sent .. " "))
|
||||||
|
@ -367,7 +370,7 @@ for s = 1, screen.count() do
|
||||||
right_layout:add(fsicon)
|
right_layout:add(fsicon)
|
||||||
right_layout:add(fswidget)
|
right_layout:add(fswidget)
|
||||||
right_layout:add(weathericon)
|
right_layout:add(weathericon)
|
||||||
right_layout:add(yawn.widget)
|
right_layout:add(myweather)
|
||||||
right_layout:add(tempicon)
|
right_layout:add(tempicon)
|
||||||
right_layout:add(tempwidget)
|
right_layout:add(tempwidget)
|
||||||
right_layout:add(baticon)
|
right_layout:add(baticon)
|
||||||
|
@ -506,7 +509,7 @@ globalkeys = awful.util.table.join(
|
||||||
-- Widgets popups
|
-- Widgets popups
|
||||||
awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end),
|
awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end),
|
||||||
awful.key({ altkey, }, "h", function () fswidget.show(7) end),
|
awful.key({ altkey, }, "h", function () fswidget.show(7) end),
|
||||||
awful.key({ altkey, }, "w", function () yawn.show(7) end),
|
awful.key({ altkey, }, "w", function () myweather.show(7) end),
|
||||||
|
|
||||||
-- ALSA volume control
|
-- ALSA volume control
|
||||||
awful.key({ altkey }, "Up",
|
awful.key({ altkey }, "Up",
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
This is the `drop` section of [scratchpad](http://awesome.naquadah.org/wiki/Scratchpad_manager).
|
|
||||||
|
|
||||||
I cutted out the rest because I don't use it.
|
|
Loading…
Reference in a new issue