-
Notifications
You must be signed in to change notification settings - Fork 0
Playerctl
laiso edited this page Feb 22, 2024
·
3 revisions
-
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.
- Edit the
-
Script Explanation : The provided
player.sh
script fetches the current player status using theplayerctl
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.
- 🏠 Home
- 📖 Intro
- ⚙️ Installation
- Modules
- 🔋 Battery
- 📅 Date
- 🌐 Network
- ⏯️ Player Control
- 🎶 Song info
- 🔄 Power Management
- 🔉 PulseAudio
- Contributing
- About