Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1018311 // linux_switchToExternalMonitor_1

JavaX fragment (include)

sS linux_switchToExternalMonitor_1() {
  S external = linux_getExternalMonitorID();
  if (external == null) ret "No external monitor";
  S internal = linux_getInternalMonitorID();
  if (internal == null) ret "Unknown internal monitor ID";
  ret backtick_verbose("xrandr --output " + external + " --auto --output " + internal + " --off");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018311
Snippet name: linux_switchToExternalMonitor_1
Eternal ID of this version: #1018311/5
Text MD5: 72d7d0babbae49f507b677c52a089e51
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-30 14:20:11
Source code size: 345 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 364 / 414
Version history: 4 change(s)
Referenced in: [show references]