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

steamburn enlighted, readme updated

This commit is contained in:
luke bonham 2013-06-23 09:34:30 +02:00
parent 9b3eef91d1
commit eefb642df1
3 changed files with 6 additions and 31 deletions

View file

@ -16,7 +16,7 @@ Notable features:
- Calendar with current day highlighted and previous/next month switch with just a click - Calendar with current day highlighted and previous/next month switch with just a click
- Elegant notifications for new mails, current song, hdd critical state, low battery - Elegant notifications for new mails, current song, hdd critical state, low battery
- Yahoo Weather integration - Yahoo Weather integration
- A net carrier status notifier (optional) - A net carrier status notifier
- Full localization potential (just easily edit about 5 lines - look for 'stub' keywords) - Full localization potential (just easily edit about 5 lines - look for 'stub' keywords)
- Colorful autoupdating icons - Colorful autoupdating icons
- Symbolic tag names - Symbolic tag names
@ -53,6 +53,8 @@ Blackburn uses Icons_ and Yawn_: **if you're running Ubuntu**, be sure to have b
Steamburn and Blackburn have X colorschemes too. Check here_. Steamburn and Blackburn have X colorschemes too. Check here_.
**Have any suggestions?** did you see some great stuff and you want me to port it into Awesome? Feel free to email me, it might just be the next copycat!
.. _tip: http://theimmortalphoenix.deviantart.com/art/Full-Color-Awesome-340997258 .. _tip: http://theimmortalphoenix.deviantart.com/art/Full-Color-Awesome-340997258
.. _romockee: https://github.com/romockee/powerarrow-dark .. _romockee: https://github.com/romockee/powerarrow-dark
.. _ok100: http://ok100.deviantart.com/art/DWM-January-2013-348656846 .. _ok100: http://ok100.deviantart.com/art/DWM-January-2013-348656846

View file

@ -32,7 +32,7 @@ end
-- autostart applications -- autostart applications
run_once("urxvtd") run_once("urxvtd")
run_once("unclutter") run_once("unclutter -idle 10")
run_once("compton") run_once("compton")
@ -442,7 +442,6 @@ fshwidget:connect_signal('mouse::enter', function () show_info(0) end)
fshwidget:connect_signal('mouse::leave', function () remove_info() end) fshwidget:connect_signal('mouse::leave', function () remove_info() end)
-- Battery widget -- Battery widget
--[[
batwidget = wibox.widget.textbox() batwidget = wibox.widget.textbox()
function batstate() function batstate()
@ -493,7 +492,6 @@ function (widget, args)
end end
return gray .. "Bat " .. coldef .. white .. args[2] .. " " .. coldef return gray .. "Bat " .. coldef .. white .. args[2] .. " " .. coldef
end, 1, 'BAT0') end, 1, 'BAT0')
]]
-- Volume widget -- Volume widget
volumewidget = wibox.widget.textbox() volumewidget = wibox.widget.textbox()
@ -507,7 +505,6 @@ function (widget, args)
end, 1, "Master") end, 1, "Master")
-- Net checker widget -- Net checker widget
--[[
no_net_shown = true no_net_shown = true
netwidget = wibox.widget.textbox() netwidget = wibox.widget.textbox()
vicious.register(netwidget, vicious.widgets.net, vicious.register(netwidget, vicious.widgets.net,
@ -529,7 +526,6 @@ function (widget, args)
end end
end, 10) end, 10)
netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(wifi) end))) netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(wifi) end)))
]]
-- Weather widget -- Weather widget
yawn.register(123456) -- https//github.com/copycat-killer/yawn yawn.register(123456) -- https//github.com/copycat-killer/yawn
@ -632,8 +628,8 @@ for s = 1, screen.count() do
right_layout:add(yawn.icon) right_layout:add(yawn.icon)
right_layout:add(yawn.widget) right_layout:add(yawn.widget)
right_layout:add(fshwidget) right_layout:add(fshwidget)
--right_layout:add(batwidget) right_layout:add(batwidget)
--right_layout:add(netwidget) right_layout:add(netwidget)
right_layout:add(spr) right_layout:add(spr)
right_layout:add(volumewidget) right_layout:add(volumewidget)
right_layout:add(spr) right_layout:add(spr)

View file

@ -180,8 +180,6 @@ white = "<span color='#cdcdcd'>"
gray = "<span color='#94928f'>" gray = "<span color='#94928f'>"
-- Textclock widget -- Textclock widget
clockicon = wibox.widget.imagebox()
clockicon:set_image(beautiful.widget_clock)
mytextclock = awful.widget.textclock(white .. "%H:%M" .. coldef) mytextclock = awful.widget.textclock(white .. "%H:%M" .. coldef)
-- Calendar attached to the textclock -- Calendar attached to the textclock
@ -361,28 +359,18 @@ function(widget, args)
end, 1) end, 1)
-- MEM widget -- MEM widget
memicon = wibox.widget.imagebox()
memicon:set_image(beautiful.widget_mem)
memwidget = wibox.widget.textbox() memwidget = wibox.widget.textbox()
vicious.register(memwidget, vicious.widgets.mem, gray .. "Mem " .. coldef .. white .. "$2 " .. coldef, 13) -- in Megabytes vicious.register(memwidget, vicious.widgets.mem, gray .. "Mem " .. coldef .. white .. "$2 " .. coldef, 13) -- in Megabytes
-- CPU widget -- CPU widget
cpuicon = wibox.widget.imagebox()
cpuicon:set_image(beautiful.widget_cpu)
cpuwidget = wibox.widget.textbox() cpuwidget = wibox.widget.textbox()
vicious.register(cpuwidget, vicious.widgets.cpu, gray .. "Cpu " .. coldef .. white .. "$1 " .. coldef, 3) vicious.register(cpuwidget, vicious.widgets.cpu, gray .. "Cpu " .. coldef .. white .. "$1 " .. coldef, 3)
cpuicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn(tasks, false) end)))
-- Temp widget -- Temp widget
tempicon = wibox.widget.imagebox()
tempicon:set_image(beautiful.widget_temp)
tempicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn(terminal .. " -e sudo powertop ", false) end)))
tempwidget = wibox.widget.textbox() tempwidget = wibox.widget.textbox()
vicious.register(tempwidget, vicious.widgets.thermal, gray .. "Temp " .. coldef .. white .. "$1 " .. coldef, 9, {"coretemp.0", "core"} ) vicious.register(tempwidget, vicious.widgets.thermal, gray .. "Temp " .. coldef .. white .. "$1 " .. coldef, 9, {"coretemp.0", "core"} )
-- /home fs widget -- /home fs widget
fshicon = wibox.widget.imagebox()
fshicon:set_image(beautiful.widget_hdd)
fshwidget = wibox.widget.textbox() fshwidget = wibox.widget.textbox()
vicious.register(fshwidget, vicious.widgets.fs, vicious.register(fshwidget, vicious.widgets.fs,
function (widget, args) function (widget, args)
@ -428,9 +416,6 @@ fshwidget:connect_signal('mouse::enter', function () add_info() end)
fshwidget:connect_signal('mouse::leave', function () remove_info() end) fshwidget:connect_signal('mouse::leave', function () remove_info() end)
-- Battery widget -- Battery widget
baticon = wibox.widget.imagebox()
baticon:set_image(beautiful.widget_battery)
function batstate() function batstate()
local file = io.open("/sys/class/power_supply/BAT0/status", "r") local file = io.open("/sys/class/power_supply/BAT0/status", "r")
@ -454,11 +439,9 @@ vicious.register(batwidget, vicious.widgets.bat,
function (widget, args) function (widget, args)
-- plugged -- plugged
if (batstate() == 'Cable plugged') then if (batstate() == 'Cable plugged') then
baticon:set_image(beautiful.widget_ac)
return '' return ''
-- critical -- critical
elseif (args[2] <= 5 and batstate() == 'Discharging') then elseif (args[2] <= 5 and batstate() == 'Discharging') then
baticon:set_image(beautiful.widget_battery_empty)
naughty.notify({ naughty.notify({
text = "sto per spegnermi...", text = "sto per spegnermi...",
title = "Carica quasi esaurita!", title = "Carica quasi esaurita!",
@ -471,7 +454,6 @@ function (widget, args)
}) })
-- low -- low
elseif (args[2] <= 10 and batstate() == 'Discharging') then elseif (args[2] <= 10 and batstate() == 'Discharging') then
baticon:set_image(beautiful.widget_battery_low)
naughty.notify({ naughty.notify({
text = "attacca il cavo!", text = "attacca il cavo!",
title = "Carica bassa", title = "Carica bassa",
@ -482,14 +464,11 @@ function (widget, args)
screen = 1, screen = 1,
ontop = true, ontop = true,
}) })
else baticon:set_image(beautiful.widget_battery)
end end
return gray .. "Bat " .. coldef .. white .. args[2] .. " " .. coldef return gray .. "Bat " .. coldef .. white .. args[2] .. " " .. coldef
end, 1, 'BAT0') end, 1, 'BAT0')
-- Volume widget -- Volume widget
volicon = wibox.widget.imagebox()
volicon:set_image(beautiful.widget_vol)
volumewidget = wibox.widget.textbox() volumewidget = wibox.widget.textbox()
vicious.register(volumewidget, vicious.widgets.volume, vicious.register(volumewidget, vicious.widgets.volume,
function (widget, args) function (widget, args)
@ -503,8 +482,6 @@ end, 1, "Master")
-- Net widget -- Net widget
netwidget = wibox.widget.textbox() netwidget = wibox.widget.textbox()
vicious.register(netwidget, vicious.widgets.net, gray .. "Net " .. coldef .. white .. "${wlan0 down_kb} " .. "<span font=\"Terminus 8\">↓↑ </span>" .. "${wlan0 up_kb} " .. coldef, 3) vicious.register(netwidget, vicious.widgets.net, gray .. "Net " .. coldef .. white .. "${wlan0 down_kb} " .. "<span font=\"Terminus 8\">↓↑ </span>" .. "${wlan0 up_kb} " .. coldef, 3)
neticon = wibox.widget.imagebox()
neticon:set_image(beautiful.widget_net)
netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(wifi) end))) netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(wifi) end)))
-- Weather widget -- Weather widget