make hotplug run on xinit as well
This commit is contained in:
parent
714832032d
commit
654453265d
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue