1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 03:32:30 +00:00

blackburn perfected

This commit is contained in:
luke bonham 2013-04-17 11:36:06 +02:00
parent f55ca6dc9b
commit d365496dc8
6 changed files with 18 additions and 7 deletions

View file

@ -41,7 +41,7 @@ Gallery
**Blackburn** the wannabe definitive configuration, born from the best of previous ones **Blackburn** the wannabe definitive configuration, born from the best of previous ones
.. image:: http://i.imgur.com/HWSLolo.jpg .. image:: http://dotshare.it/public/images/uploads/540.png
.. _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

View file

@ -33,7 +33,7 @@ end
-- autostart applications -- autostart applications
run_once("urxvtd") run_once("urxvtd")
run_once("unclutter -idle 10") run_once("unclutter")
run_once("compton") run_once("compton")
@ -345,7 +345,9 @@ vicious.register(mygmail, vicious.widgets.gmail,
}) })
notify_shown = true notify_shown = true
end end
return gray .. " Mail " .. coldef .. white .. args["{count}"] .. " " .. coldef if perceptive.icon == perceptive.sky_na then return gray .. " Mail " .. coldef .. white .. args["{count}"] .. coldef
else return gray .. " Mail " .. coldef .. white .. args["{count}"] .. "<span font='Tamsyn 1'> </span>" .. coldef
end
else else
notify_shown = false notify_shown = false
return '' return ''
@ -520,7 +522,7 @@ function (widget, args)
position = "top_left", position = "top_left",
icon = beautiful.widget_no_net_notify, icon = beautiful.widget_no_net_notify,
fg = "#ff5e5e", fg = "#ff5e5e",
bg = beautiful.bg_normal }) bg = "#060606" })
no_net_shown = false no_net_shown = false
end end
return gray .. " Net " .. coldef .. "<span color='#e54c62'>Off " .. coldef return gray .. " Net " .. coldef .. "<span color='#e54c62'>Off " .. coldef

View file

@ -343,7 +343,14 @@ function(widget, args)
if( args["{Title}"] ~= curr_track ) if( args["{Title}"] ~= curr_track )
then then
curr_track = args["{Title}"] curr_track = args["{Title}"]
run_once(scriptdir .. "mpdinfo") os.execute(scriptdir .. "mpdinfo")
old_id = naughty.notify({
title = "Now playing",
text = args["{Artist}"] .. " (" .. args["{Album}"] .. ")\n" .. args["{Title}"],
icon = "/tmp/mpdnotify_cover.png",
timeout = 5,
replaces_id = old_id
}).id
end end
return gray .. args["{Title}"] .. coldef .. white .. " " .. args["{Artist}"] .. coldef return gray .. args["{Title}"] .. coldef .. white .. " " .. args["{Artist}"] .. coldef
elseif (args["{state}"] == "Pause") then elseif (args["{state}"] == "Pause") then

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View file

@ -2,10 +2,12 @@
# A simple notify script for now-playing songs on mpd. This script uses # A simple notify script for now-playing songs on mpd. This script uses
# notify-send and mpc to get the current song information. # notify-send and mpc to get the current song information.
# ImageMagick is also needed for the cover.
# Configuration------------------------------------------------------- # Configuration-------------------------------------------------------
# The music directory that contains the music and cover files # The music directory that contains the music and cover files
# Change according to your configuration
MUSIC_DIR="$HOME/Musica" MUSIC_DIR="$HOME/Musica"
# The default cover to use (optional) # The default cover to use (optional)

View file

@ -16,8 +16,8 @@ theme.wallpaper = themes_dir .. "/wall.png"
theme.font = "Tamsyn 10" theme.font = "Tamsyn 10"
theme.taglist_font = "Termsyn 10" theme.taglist_font = "Termsyn 10"
theme.fg_normal = "#AAAAAA" theme.fg_normal = "#D7D7D7"
theme.fg_focus = "#D79D38" theme.fg_focus = "#F6784F"
theme.bg_normal = themes_bg_normal theme.bg_normal = themes_bg_normal
theme.bg_focus = "#060606" theme.bg_focus = "#060606"
theme.fg_urgent = "#CC9393" theme.fg_urgent = "#CC9393"