polybar / polybar-scripts

This is a community project. We write and collect scripts for polybar!
The Unlicense
2.48k stars 340 forks source link

player-mpris-simple:add script to auto_and_forth in i3wm #357

Closed with9 closed 2 years ago

with9 commented 2 years ago

one python script to easily auto_back_and_forth in i3wm, we can bind this script with left-click. click first to jump to the workspace containing the program that is playing the media. If we are already there, then click will help us jump back .

[module/player-mpris-simple]
type=custom/script
........
click-left=python ~/.config/polybar/scripts/mymusic_back_and_forth.py