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"); }
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: | 346 / 400 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |