Closed miroesli closed 4 years ago
Probably going to do it similarly to this repo where everything grabs from this "lead" folder.
Example .conf
file:
[DP-5]
bottom=
bottomLeft=
bottomRight=
left=
right=
top=
topLeft=
topRight=
[DVI-I-1]
bottom=
bottomLeft=
bottomRight=
left=
right=
top=
topLeft=
topRight=
[HDMI-0]
bottom=
bottomLeft=
bottomRight=
left=
right=
top=
topLeft=
topRight=
[HDMI1]
bottom=
bottomLeft=
bottomRight=xdotool key super+d
left=
right=
top=
topLeft=
topRight=
[eDP1]
bottom=
bottomLeft=
bottomRight=xdotool key super+d
left=
right=
top=
topLeft=
topRight=
Final solution: Use iw
to check what interface is being used and filter out other info within the polybar launch and set to environment variable that the config file uses.
Not sure why this is needed. Perhaps when using a laptop to configure servers this may be helpful but not needed currently. Dropping.
Either create a template file which contains all the information about individual machines that is included in a .gitignore (easy) or create a script to identify the interface (hard).
Some of these polybar scripts may help.