This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
devicename: TELEINFO-PiTinfo | |
friendly_name: téléinformation home-assistant | |
device_description: remontée des infos compteur électrique avec PiTinfo | |
esphome: | |
name: $devicename | |
comment: ${device_description} | |
platform: ESP8266 | |
board: d1_mini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
x=1920 # X size of second display | |
y=1080 # Y size of second display | |
X_DISPLAY=eDP1 # Your screen, found it whith xrandr | |
POSITION=left #right | |
add_modeline() { | |
local modeline name | |
modeline="$(gtf "$2" "$3" "$4" | sed -n 's/.*Modeline "\([^" ]\+\)" \(.*\)/\1 \2/p')" |