You are not logged in.

#1 2023-12-17 19:58:26

thesun
Member
Registered: 2023-12-14
Posts: 8

How do I add an app shortcut in polybar?

Hello, I'm looking for a way to have an app / command shortcut on polybar, having a nerd font icon as the button. Does anyone know how? Thanks.

Offline

#2 2023-12-18 18:46:10

wickedlester
Member
From: Texas, USA
Registered: 2004-07-22
Posts: 146

Re: How do I add an app shortcut in polybar?

you can create a module like this

[module/chrome]
type = custom/text
content = " "
content-padding = 2
click-left = google-chrome-stable &

then just add

chrome

to your modules-left or center or right. Just change the module name to whatever you want and change the

google-chrome-stable &

to the executable you want to launch. Put your nerd font icon in the quotes in the content line.

Last edited by wickedlester (2023-12-18 18:47:30)

Offline

Board footer

Powered by FluxBB