2021-04-28 08:01:08 +02:00
|
|
|
# RandomUsefulStuff
|
|
|
|
|
2021-05-01 07:01:53 +02:00
|
|
|
Just a collection of random useful code snippets (that can be used as programs on their own because why not)
|
|
|
|
|
|
|
|
## Descriptions for each code snippet
|
|
|
|
|
2021-05-01 07:03:13 +02:00
|
|
|
### [disable_laptop_lid.sh](./disable_laptop_lid.sh)
|
2021-05-01 07:01:53 +02:00
|
|
|
Disables laptop lid state detection in Linux by unregistering it from the driver.
|
2021-05-01 07:03:13 +02:00
|
|
|
|
2021-05-01 07:01:53 +02:00
|
|
|
Dependencies: Linux kernel, bash, sysfs filesystem mounted on /sys
|
|
|
|
|
2021-05-01 07:03:13 +02:00
|
|
|
### [sensors.py](./sensors.py)
|
2021-05-01 07:01:53 +02:00
|
|
|
Can be used to get the state of a hardware sensor connected to the computer.
|
2021-05-01 07:03:13 +02:00
|
|
|
|
2021-05-01 07:01:53 +02:00
|
|
|
Dependencies: lm-sensors, python3
|