diff --git a/README.rst b/README.rst index 065942b..60e42b1 100644 --- a/README.rst +++ b/README.rst @@ -41,7 +41,7 @@ Gallery **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 .. _romockee: https://github.com/romockee/powerarrow-dark diff --git a/rc.lua.blackburn b/rc.lua.blackburn index 7ba8959..5b4f15e 100755 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -33,7 +33,7 @@ end -- autostart applications run_once("urxvtd") -run_once("unclutter -idle 10") +run_once("unclutter") run_once("compton") @@ -345,7 +345,9 @@ vicious.register(mygmail, vicious.widgets.gmail, }) notify_shown = true 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}"] .. " " .. coldef + end else notify_shown = false return '' @@ -520,7 +522,7 @@ function (widget, args) position = "top_left", icon = beautiful.widget_no_net_notify, fg = "#ff5e5e", - bg = beautiful.bg_normal }) + bg = "#060606" }) no_net_shown = false end return gray .. " Net " .. coldef .. "Off " .. coldef diff --git a/rc.lua.steamburn b/rc.lua.steamburn index ca77b49..9dc65da 100755 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -343,7 +343,14 @@ function(widget, args) if( args["{Title}"] ~= curr_track ) then 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 return gray .. args["{Title}"] .. coldef .. white .. " " .. args["{Artist}"] .. coldef elseif (args["{state}"] == "Pause") then diff --git a/screenshot/blackburn.png b/screenshot/blackburn.png index 38f74a8..2053645 100644 Binary files a/screenshot/blackburn.png and b/screenshot/blackburn.png differ diff --git a/scripts/mpdinfo b/scripts/mpdinfo index 6b0a282..cbbaefd 100755 --- a/scripts/mpdinfo +++ b/scripts/mpdinfo @@ -2,10 +2,12 @@ # A simple notify script for now-playing songs on mpd. This script uses # notify-send and mpc to get the current song information. +# ImageMagick is also needed for the cover. # Configuration------------------------------------------------------- # The music directory that contains the music and cover files +# Change according to your configuration MUSIC_DIR="$HOME/Musica" # The default cover to use (optional) diff --git a/themes/blackburn/theme.lua b/themes/blackburn/theme.lua index 189a729..5842d69 100644 --- a/themes/blackburn/theme.lua +++ b/themes/blackburn/theme.lua @@ -16,8 +16,8 @@ theme.wallpaper = themes_dir .. "/wall.png" theme.font = "Tamsyn 10" theme.taglist_font = "Termsyn 10" -theme.fg_normal = "#AAAAAA" -theme.fg_focus = "#D79D38" +theme.fg_normal = "#D7D7D7" +theme.fg_focus = "#F6784F" theme.bg_normal = themes_bg_normal theme.bg_focus = "#060606" theme.fg_urgent = "#CC9393"