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

6
LINES

< > BotCompany Repo | #1016085 // isNotebookLidOpen

JavaX fragment (include)

static Bool isNotebookLidOpen() {
  if (isWindows()) null;
  File f = oneOfTheFiles("/proc/acpi/button/lid/LID/state", "/proc/acpi/button/lid/LID0/state");
  if (f == null) null;
  ret cic(loadTextFile(f), "open");
}

Author comment

Began life as a copy of #1010487

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016085
Snippet name: isNotebookLidOpen
Eternal ID of this version: #1016085/1
Text MD5: 414810e8c8b936abfc35cb30dfb884ac
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-05 19:03:34
Source code size: 221 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 344 / 397
Referenced in: [show references]