power menu, redshift, polybar
This commit is contained in:
15
.config/polybar/scripts/system-thinklight/README.md
Normal file
15
.config/polybar/scripts/system-thinklight/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Script: system-thinklight
|
||||
|
||||
A small script that displays the Thinklight state from ThinkPad ACPI driver.
|
||||
|
||||

|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/system-thinklight]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/system-thinklight.sh
|
||||
interval = 10
|
||||
```
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$(cat /sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness)" = "0" ]; then
|
||||
echo "#1"
|
||||
else
|
||||
echo "#2 Thinklight"
|
||||
fi
|
||||
BIN
.config/polybar/scripts/system-thinklight/screenshots/1.png
Normal file
BIN
.config/polybar/scripts/system-thinklight/screenshots/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
Reference in New Issue
Block a user