Desktop rules

[id: obucticokkqliogm] i(how many monitors do you have)
  && $n = eval(l(screenDevices()))
  => o($n)

[id: jciczbcgkywtrzpt] i(how many display modes does monitor $n have)
  && $n = eval(l(getScreenDevice(parseInt($n)-1).getDisplayModes()))
  => o($n)

[id: rfudkmxhcufnpdbh] i(switch to external monitor)
  && eval(isLinux())
  && confirm
  && eval(linux_switchToExternalMonitor_1())
  => o(Done.)