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)

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

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