1 | static Bool isNotebookLidOpen() { |
2 | if (isWindows()) null; |
3 | File f = oneOfTheFiles("/proc/acpi/button/lid/LID/state", "/proc/acpi/button/lid/LID0/state"); |
4 | if (f == null) null; |
5 | ret cic(loadTextFile(f), "open"); |
6 | } |
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: | 347 / 401 |
Referenced in: | [show references] |