mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 11:12:31 +00:00
steamburn enlighted, readme updated
This commit is contained in:
parent
9b3eef91d1
commit
eefb642df1
|
@ -16,7 +16,7 @@ Notable features:
|
|||
- 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
|
||||
- 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)
|
||||
- Colorful autoupdating icons
|
||||
- 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_.
|
||||
|
||||
**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
|
||||
.. _romockee: https://github.com/romockee/powerarrow-dark
|
||||
.. _ok100: http://ok100.deviantart.com/art/DWM-January-2013-348656846
|
||||
|
|
|
@ -32,7 +32,7 @@ end
|
|||
|
||||
-- autostart applications
|
||||
run_once("urxvtd")
|
||||
run_once("unclutter")
|
||||
run_once("unclutter -idle 10")
|
||||
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)
|
||||
|
||||
-- Battery widget
|
||||
--[[
|
||||
batwidget = wibox.widget.textbox()
|
||||
function batstate()
|
||||
|
||||
|
@ -493,7 +492,6 @@ function (widget, args)
|
|||
end
|
||||
return gray .. "Bat " .. coldef .. white .. args[2] .. " " .. coldef
|
||||
end, 1, 'BAT0')
|
||||
]]
|
||||
|
||||
-- Volume widget
|
||||
volumewidget = wibox.widget.textbox()
|
||||
|
@ -507,7 +505,6 @@ function (widget, args)
|
|||
end, 1, "Master")
|
||||
|
||||
-- Net checker widget
|
||||
--[[
|
||||
no_net_shown = true
|
||||
netwidget = wibox.widget.textbox()
|
||||
vicious.register(netwidget, vicious.widgets.net,
|
||||
|
@ -529,7 +526,6 @@ function (widget, args)
|
|||
end
|
||||
end, 10)
|
||||
netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(wifi) end)))
|
||||
]]
|
||||
|
||||
-- Weather widget
|
||||
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.widget)
|
||||
right_layout:add(fshwidget)
|
||||
--right_layout:add(batwidget)
|
||||
--right_layout:add(netwidget)
|
||||
right_layout:add(batwidget)
|
||||
right_layout:add(netwidget)
|
||||
right_layout:add(spr)
|
||||
right_layout:add(volumewidget)
|
||||
right_layout:add(spr)
|
||||
|
|
|
@ -180,8 +180,6 @@ white = "<span color='#cdcdcd'>"
|
|||
gray = "<span color='#94928f'>"
|
||||
|
||||
-- Textclock widget
|
||||
clockicon = wibox.widget.imagebox()
|
||||
clockicon:set_image(beautiful.widget_clock)
|
||||
mytextclock = awful.widget.textclock(white .. "%H:%M" .. coldef)
|
||||
|
||||
-- Calendar attached to the textclock
|
||||
|
@ -361,28 +359,18 @@ function(widget, args)
|
|||
end, 1)
|
||||
|
||||
-- MEM widget
|
||||
memicon = wibox.widget.imagebox()
|
||||
memicon:set_image(beautiful.widget_mem)
|
||||
memwidget = wibox.widget.textbox()
|
||||
vicious.register(memwidget, vicious.widgets.mem, gray .. "Mem " .. coldef .. white .. "$2 " .. coldef, 13) -- in Megabytes
|
||||
|
||||
-- CPU widget
|
||||
cpuicon = wibox.widget.imagebox()
|
||||
cpuicon:set_image(beautiful.widget_cpu)
|
||||
cpuwidget = wibox.widget.textbox()
|
||||
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
|
||||
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()
|
||||
vicious.register(tempwidget, vicious.widgets.thermal, gray .. "Temp " .. coldef .. white .. "$1 " .. coldef, 9, {"coretemp.0", "core"} )
|
||||
|
||||
-- /home fs widget
|
||||
fshicon = wibox.widget.imagebox()
|
||||
fshicon:set_image(beautiful.widget_hdd)
|
||||
fshwidget = wibox.widget.textbox()
|
||||
vicious.register(fshwidget, vicious.widgets.fs,
|
||||
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)
|
||||
|
||||
-- Battery widget
|
||||
baticon = wibox.widget.imagebox()
|
||||
baticon:set_image(beautiful.widget_battery)
|
||||
|
||||
function batstate()
|
||||
|
||||
local file = io.open("/sys/class/power_supply/BAT0/status", "r")
|
||||
|
@ -454,11 +439,9 @@ vicious.register(batwidget, vicious.widgets.bat,
|
|||
function (widget, args)
|
||||
-- plugged
|
||||
if (batstate() == 'Cable plugged') then
|
||||
baticon:set_image(beautiful.widget_ac)
|
||||
return ''
|
||||
-- critical
|
||||
elseif (args[2] <= 5 and batstate() == 'Discharging') then
|
||||
baticon:set_image(beautiful.widget_battery_empty)
|
||||
naughty.notify({
|
||||
text = "sto per spegnermi...",
|
||||
title = "Carica quasi esaurita!",
|
||||
|
@ -471,7 +454,6 @@ function (widget, args)
|
|||
})
|
||||
-- low
|
||||
elseif (args[2] <= 10 and batstate() == 'Discharging') then
|
||||
baticon:set_image(beautiful.widget_battery_low)
|
||||
naughty.notify({
|
||||
text = "attacca il cavo!",
|
||||
title = "Carica bassa",
|
||||
|
@ -482,14 +464,11 @@ function (widget, args)
|
|||
screen = 1,
|
||||
ontop = true,
|
||||
})
|
||||
else baticon:set_image(beautiful.widget_battery)
|
||||
end
|
||||
return gray .. "Bat " .. coldef .. white .. args[2] .. " " .. coldef
|
||||
end, 1, 'BAT0')
|
||||
|
||||
-- Volume widget
|
||||
volicon = wibox.widget.imagebox()
|
||||
volicon:set_image(beautiful.widget_vol)
|
||||
volumewidget = wibox.widget.textbox()
|
||||
vicious.register(volumewidget, vicious.widgets.volume,
|
||||
function (widget, args)
|
||||
|
@ -503,8 +482,6 @@ end, 1, "Master")
|
|||
-- Net widget
|
||||
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)
|
||||
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)))
|
||||
|
||||
-- Weather widget
|
||||
|
|
Loading…
Reference in a new issue