Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #echo 'closeLastNoti() naughty.notify({font = beautiful.font, timeout = 7, icon = "/usr/share/icons/moblin/48x48/actions/media-playback-start.png", title = awful.util.pread("mocp -Q %state") .. awful.util.pread("mocp -Q %song/\%tt"), text = awful.util.pread("mocp -Q %artist") .. "\n"})' | awesome-client
- echo 'naughty.notify({font = beautiful.font, timeout = 7, icon = "/usr/share/icons/moblin/48x48/actions/media-playback-start.png", title = awful.util.pread("mocp -Q %state") .. (awful.util.pread("mocp -Q %song") == "\n" and awful.util.pread("mocp -Q %file") or awful.util.pread("mocp -Q %song")), text = awful.util.pread("mocp -Q %artist") .. "\n"})' | awesome-client
- exit 0
- #title = awful.util.pread("mocp -Q %state") .. function() local song = awful.util.pread("mocp -Q %song/\%tt") if song == "" then return awful.util.pread("mocp -Q %file") else return song end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement