From 43a2367a3d7af31a46ac88f7c94a614053dc1cd8 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Mon, 12 Aug 2013 20:31:52 +0200 Subject: [PATCH] readme updated --- README.rst | 3 +++ rc.lua.blackburn | 2 +- rc.lua.dremora | 2 +- rc.lua.holo | 2 +- rc.lua.multicolor | 2 +- rc.lua.powerarrow-darker | 4 ++-- rc.lua.rainbow | 12 +++++++++--- rc.lua.steamburn | 4 ++-- 8 files changed, 20 insertions(+), 11 deletions(-) diff --git a/README.rst b/README.rst index 4b54746..4405a2d 100644 --- a/README.rst +++ b/README.rst @@ -86,6 +86,8 @@ if your screen don't match one of these widths, then you have to create a proper Freedesktop menu in use is just an example: feel free to modify ``freedesktop/freedesktop.lua``. +If you happen to get an error involving ``/home fs widget``, that's probably because you didn't properly set *$HOME* in your profile or something. Try replacing every occurrence with just ``/``, or some other argument defined in vicious readme_, section ``vicious.widgets.fs``. + **Have any suggestions?** Did you see some great stuff and you want me to put my paws on it? Feel free to email me, it might just be the next copycat! Author @@ -109,4 +111,5 @@ Let us spread some style, in order to make Awesome appearance awesome too! .. _1: http://weiwu.sdf.org/100921.html .. _2: https://wiki.ubuntu.com/Fonts#Enabling_Bitmapped_Fonts .. _colorscheme: https://github.com/copycat-killer/dots/tree/master/.colors +.. _readme: http://git.sysphere.org/vicious/tree/README .. _BY-NC-SA: http://creativecommons.org/licenses/by-nc-sa/3.0/ diff --git a/rc.lua.blackburn b/rc.lua.blackburn index a93184b..029a5cb 100755 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -373,7 +373,7 @@ vicious.register(fshwidget, vicious.widgets.fs, function (widget, args) if ( args["{/home used_p}"] >= 90 ) then if ( args["{/home used_p}"] >= 99 and too_much == false ) then - naughty.notify({ title = "Attenzione", text = "Partizione /home esaurita!\nFa' un po' di spazio.", + naughty.notify({ title = "Warning", text = "/home partition ran out!\nmake some room", timeout = 7, position = "top_right", fg = beautiful.fg_urgent, diff --git a/rc.lua.dremora b/rc.lua.dremora index b57e4c9..19a39e0 100755 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -299,7 +299,7 @@ vicious.register(fshwidget, vicious.widgets.fs, function (widget, args) if ( args["{/home used_p}"] >= 90 ) then if ( args["{/home used_p}"] >= 99 and too_much == false ) then - naughty.notify({ title = "Attenzione", text = "Partizione /home esaurita!\nFa' un po' di spazio.", + naughty.notify({ title = "warning", text = "/home partition ran out!\nmake some room", timeout = 7, position = "top_right", fg = beautiful.fg_urgent, diff --git a/rc.lua.holo b/rc.lua.holo index 044b728..4ba17d3 100755 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -360,7 +360,7 @@ vicious.register(fshwidget, vicious.widgets.fs, function (widget, args) if ( args["{/home used_p}"] >= 90 ) then if ( args["{/home used_p}"] >= 99 and too_much == false ) then - naughty.notify({ title = "Attenzione", text = "Partizione /home esaurita!\nFa' un po' di spazio.", + naughty.notify({ title = "warning", text = "/home partition ran out!\nmake some room", timeout = 7, position = "top_right", fg = beautiful.fg_urgent, diff --git a/rc.lua.multicolor b/rc.lua.multicolor index b9c686d..a329519 100755 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -308,7 +308,7 @@ fshwidget = wibox.widget.textbox() if args["{/home used_p}"] >= 95 and args["{/home used_p}"] < 99 then return colwhi .. args["{/home used_p}"] .. "%" .. coldef elseif args["{/home used_p}"] >= 99 and args["{/home used_p}"] <= 100 then - naughty.notify({ title = "Attenzione", text = "Partizione /home esaurita!\nFa' un po' di spazio.", + naughty.notify({ title = "warning", text = "/home partition ran out!\nmake some room", timeout = 10, position = "top_right", fg = beautiful.fg_urgent, diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 4515dc5..415dc03 100755 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -322,7 +322,7 @@ function(widget, args) -- pause elseif (args["{state}"] == "Pause") then mpdicon:set_image(beautiful.widget_music) - return " " .. colwhi .. "mpd in pausa" .. coldef .. " " + return " " .. colwhi .. "mpd paused" .. coldef .. " " else mpdicon:set_image(beautiful.widget_music) return "" @@ -358,7 +358,7 @@ function (widget, args) if args["{/home used_p}"] >= 95 and args["{/home used_p}"] < 99 then return ' ' .. args["{/home used_p}"] .. '% ' elseif args["{/home used_p}"] >= 99 and args["{/home used_p}"] <= 100 then - naughty.notify({ title = "Attenzione", text = "Partizione /home esaurita!\nFa' un po' di spazio.", + naughty.notify({ title = "warning", text = "/home partition ran out!\nmake some room", timeout = 10, position = "top_right", fg = beautiful.fg_urgent, diff --git a/rc.lua.rainbow b/rc.lua.rainbow index c9b06a6..f43f2e6 100755 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -317,8 +317,14 @@ function(widget, args) end return gray .. args["{Artist}"] .. coldef .. white .. " " .. args["{Title}"] .. " " .. coldef elseif args["{state}"] == "Pause" then - -- 'in pausa' means 'paused' - return gray .. "mpd " .. coldef .. white .. "in pausa " .. coldef + -- Italian localization + -- can be a stub for your own localization + if language:find("it_IT") ~= nil then + return gray .. "mpd " .. coldef .. white .. "in pausa " .. coldef + else + return gray .. "mpd " .. coldef .. white .. "in pausa " .. coldef + end + then else curr_track = nil return '' @@ -332,7 +338,7 @@ vicious.register(fshwidget, vicious.widgets.fs, function (widget, args) if ( args["{/home used_p}"] >= 90 ) then if ( args["{/home used_p}"] >= 99 and too_much == false ) then - naughty.notify({ title = "Attenzione", text = "Partizione /home esaurita!\nFa' un po' di spazio.", + naughty.notify({ title = "warning", text = "/home partition ran out!\nmake some room", timeout = 7, position = "top_right", fg = beautiful.fg_urgent, diff --git a/rc.lua.steamburn b/rc.lua.steamburn index 4fda3ca..fc9a507 100755 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -322,7 +322,7 @@ function(widget, args) end return gray .. args["{Title}"] .. coldef .. white .. " " .. args["{Artist}"] .. coldef elseif (args["{state}"] == "Pause") then - return gray .. "mpd " .. coldef .. white .. "in pausa" .. coldef + return gray .. "mpd " .. coldef .. white .. "paused" .. coldef else return "" end @@ -345,7 +345,7 @@ fshwidget = wibox.widget.textbox() vicious.register(fshwidget, vicious.widgets.fs, function (widget, args) if ( args["{/home used_p}"] >= 99 ) then - naughty.notify({ title = "Attenzione", text = "Partizione /home esaurita!\nFa' un po' di spazio.", + naughty.notify({ title = "warning", text = "/home partition ran out!\nmake some room", timeout = 10, position = "top_right", fg = beautiful.fg_urgent,