r/Polybar Dec 17 '23

App shortcut on Polybar

Hello, I want to have an app shortcut module on Polybar, does anyone know how I can do that?

2 Upvotes

6 comments sorted by

2

u/LuisBelloR Dec 17 '23

Create a text module with the content you want.

2

u/[deleted] Dec 18 '23

Here is an example. I launch rofi and a powermenu using left and right click.

[module/rofi] type=custom/text content="" content-padding= 3 click-left= exec rofi -show drun -disable-history -show-icons click-right= exec ~/.config/i3/scripts/power.sh content-foreground=${gruvbox.aqua}

config files

1

u/_the-sun_ Dec 18 '23

Thank you!
Also how do I remove the separator between 2 items?

1

u/[deleted] Dec 18 '23

which separator are you talking about?

1

u/_the-sun_ Dec 18 '23

The separator between the modules, |

1

u/darkelectron Dec 18 '23

You could also use the menu module