blob: 6aa509be0b3e097e8f18d6452e7e81df876f7ee5 (
about) (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
STATUS=$(brightnessctl --device "tpacpi::thinklight" | grep "Current brightness")
if [[ "$STATUS" == *"(0%)" ]]; then
brightnessctl --device "tpacpi::thinklight" set 1
else
brightnessctl --device "tpacpi::thinklight" set 0
fi
|