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

8
LINES

< > BotCompany Repo | #1026198 // linux_switchToInternalMonitor_1

JavaX fragment (include)

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

Author comment

Began life as a copy of #1018311

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1026198
Snippet name: linux_switchToInternalMonitor_1
Eternal ID of this version: #1026198/5
Text MD5: 2bc6cc86845681b2349d85654e70b64d
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:21:48
Source code size: 388 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 140 / 182
Version history: 4 change(s)
Referenced in: [show references]