-
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.shscript 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.shscript fetches the current player status using theplayerctlpackage 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