Skip to content

Playerctl

laiso edited this page Feb 22, 2024 · 3 revisions

Player control module

  • Type : custom/script

  • Description : Display player control icons corresponding to the current playback status (Playing or Paused) of a media player.

  • How to use :

    • Left click: previous
    • middle click: play/pause
    • right click: next
  • How to modify :

    • Edit the player.sh script located at ${HOME}/.config/polybar/scripts.
    • Customize the script to change the icons or behavior according to your preferences.
    • Save the changes to the script.
    • Refresh or restart Polybar to apply the modifications.
  • Script Explanation : The provided player.sh script fetches the current player status using the playerctl package and outputs the appropriate control icons (previous, play/pause, next) based on whether a player is playing or paused. If no player is found, no icons will be displayed.

Clone this wiki locally