make hotplug run on xinit as well

This commit is contained in:
Anish Lakhwara 2023-01-13 14:58:11 +10:00
parent 714832032d
commit 654453265d

View file

@ -169,6 +169,19 @@ in
*.color239: #565761
*.color240: #6272a4
*.color241: #b6b6b2
# hotplug
connect() {
# Turn it on if it was off
xrandr --output HDMI-2 --auto
xrandr --output HDMI-2 --same-as eDP-1
}
disconnect() {
xrandr --output HDMI-2 --off
}
xrandr | grep "HDMI-2 connected" &>>/dev/null && connect || disconnect
EOF
'';
lightdm = {