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)

1  
sS linux_switchToInternalMonitor_1() {
2  
  S internal = linux_getInternalMonitorID();
3  
  if (internal == null) ret "Unknown internal monitor ID";
4  
  S external = linux_getExternalMonitorID();
5  
  if (external == null)
6  
    ret backtick_verbose("xrandr --output " + internal + " --auto");
7  
  ret backtick_verbose("xrandr --output " + external + " --off --output " + internal + " --auto");
8  
}

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: 214 / 255
Version history: 4 change(s)
Referenced in: [show references]