I created a script to change the active monitors to and from my monitors and TV but for whatever reason it seems that kde doesn’t update properly and while the windows are there i have no desktop wallpaper and no panel but i can fix by opening settings and changing the screen resolution which fixes it.
here are the scripts i use
OnlyTV.sh
#!/bin/sh
xrandr --output DisplayPort-0 --off --output DisplayPort-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DisplayPort-2 --off --output HDMI-A-0 --off
OnlyMonitors
#!/bin/sh
xrandr --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --primary --mode 1920x1080 --rate 144.0 --pos 1920x0 --rotate normal --output HDMI-A-0 --mode 1920x1080 --pos 0x0 --rotate normal