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

7
LINES

< > BotCompany Repo | #1026206 // linux_autoMonitorSwitch

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3903L/27K).

1  
svoid linux_autoMonitorSwitch() {
2  
  temp temp_xrandr_cacheOn();
3  
  if (print("linux_autoMonitorSwitch has external monitor", linux_hasExternalMonitor()))
4  
    linux_switchToExternalMonitor_1();
5  
  else
6  
    linux_switchToInternalMonitor_1();
7  
}

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: #1026206
Snippet name: linux_autoMonitorSwitch
Eternal ID of this version: #1026206/3
Text MD5: d59df4938b04f7ae15c1caa287ee7e88
Transpilation MD5: 286b74d206d7c9565430f96770f53ce5
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 15:06:25
Source code size: 245 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 213 / 310
Version history: 2 change(s)
Referenced in: [show references]