Giter Site home page Giter Site logo

Comments (6)

kb100 avatar kb100 commented on August 20, 2024

Does the block work at all? I'm not sure that Lollypop is supported. Could you also run

playerctl --player=Lollypop metadata artist
echo $?
playerctl --player=Lollypop metadata title
echo $?

in three following situations: no player running, player running but not playing, player playing.

from i3blocks-contrib.

soweliniko avatar soweliniko commented on August 20, 2024

player not running:

(null)0
(null)0

player not playing:

0
0

player playing:

Aphex Twin0
We are the music makers0

from i3blocks-contrib.

kb100 avatar kb100 commented on August 20, 2024

In the script, lines 122 and 128, can you add the following two chomps as indicated and see if this fixes the issue

my $artist = qx(playerctl $player_arg metadata artist);
chomp($artist)

...

my $title = qx(playerctl $player_arg metadata title);
chomp($title)

from i3blocks-contrib.

soweliniko avatar soweliniko commented on August 20, 2024

my script is only 77 lines - do I have an older version?

EDIT: adding those chomps at where those lines are in my file has simply made the display not show at all

from i3blocks-contrib.

kb100 avatar kb100 commented on August 20, 2024

Yes you must have an old version. The version in this repo has 154 lines. I thought I remembered fixing this issue before. Just update and that will fix it.

from i3blocks-contrib.

soweliniko avatar soweliniko commented on August 20, 2024

updating has fixed this problem.

from i3blocks-contrib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.