miroesli / .dotfiles

~/ sweet ~/
MIT License
3 stars 0 forks source link

Need to somehow detect ip interface #39

Closed miroesli closed 4 years ago

miroesli commented 5 years ago

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.

miroesli commented 5 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=
miroesli commented 5 years ago

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.

miroesli commented 4 years ago

Not sure why this is needed. Perhaps when using a laptop to configure servers this may be helpful but not needed currently. Dropping.