Skip to content

Instantly share code, notes, and snippets.

View dmvianna's full-sized avatar

Daniel Vianna dmvianna

View GitHub Profile
@dmvianna
dmvianna / ThinkLight
Created October 26, 2019 11:13 — forked from vzaliva/ThinkLight
This script controll keyboard backlight on IBM ThinkPad X-series
#!/bin/bash
# Vadim Zaliva lord@crocodile.org
# based on https://gist.github.com/hadess/6847281
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
@dmvianna
dmvianna / thinkfan.nix
Created October 26, 2019 10:36 — forked from truthadjustr/thinkfan.nix
nixos: thinkfan configuration in /etc/nixos/configuration.nix
# Thinkpad T440
# postconditions:
# 1) status should be enabled:
# cat /proc/acpi/ibm/fan
# 2) No errors in systemd logs:
# journalctl -u thinkfan.service -f
services = {
thinkfan = {