Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- widget("mpd") {
- set :interval => 1
- property("text") {
- if @state == :playing
- @default
- else
- " "
- end
- }
- property("image") {
- case @state
- when :playing
- "/home/sevenfourk/icons/play.png"
- when :paused
- "/home/sevenfourk/icons/pause.png"
- when :stopped
- "/home/sevenfourk/icons/stop.png"
- end
- }
- }
Add Comment
Please, Sign In to add comment