Skip to content

Instantly share code, notes, and snippets.

@esc
Created Nov 9, 2020
Embed
What would you like to do?
Think Pad Disko
#!/bin/sh
val=1
while true
do
[ $val -eq 0 ] && val=1 || val=0
sudo sh -c "echo $val > \
/sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness"
sleep 0.1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment