readme updated
This commit is contained in:
parent
6d6cd09779
commit
43a2367a3d
|
@ -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/
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -322,7 +322,7 @@ function(widget, args)
|
|||
-- pause
|
||||
elseif (args["{state}"] == "Pause") then
|
||||
mpdicon:set_image(beautiful.widget_music)
|
||||
return "<span background='#313131' font='Terminus 13' rise='2000'> <span font='Terminus 9'>" .. colwhi .. "mpd in pausa" .. coldef .. " </span></span>"
|
||||
return "<span background='#313131' font='Terminus 13' rise='2000'> <span font='Terminus 9'>" .. colwhi .. "mpd paused" .. coldef .. " </span></span>"
|
||||
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 '<span background="#313131" font="Terminus 13" rise="2000"> <span font="Terminus 9">' .. args["{/home used_p}"] .. '% </span></span>'
|
||||
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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue