UNPKG

sd-cli

Version:

> Command to minimize all open windows and show desktop from the terminal. Currently works on Ubuntu & Windows.

10 lines (9 loc) 238 B
'use strict'; var robot = require('robotjs') module.exports = function () { if (process.platform === 'win32') { robot.keyTap('D', 'command'); } else if(process.platform === 'linux'){ robot.keyTap('D', ['command', 'control']); } };