Created
February 5, 2012 14:14
-
-
Save lkraav/1745767 to your computer and use it in GitHub Desktop.
Hourly reminder on how awesome your Samsung Series 9 is doing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SYSPATH="/sys/devices/platform/samsung" | |
SUMMARY="Samsung Status" | |
BODY=() | |
BODY+=("performance_level: $(cat "$SYSPATH/performance_level")") | |
BODY+=("backlight: $(cat "/sys/class/backlight/acpi_video0/brightness") / $(cat "/sys/class/backlight/acpi_video0/max_brightness")") | |
BODY+=("kbd_backlight: $(cat "$SYSPATH/leds/samsung::kbd_backlight/brightness") / $(cat "$SYSPATH/leds/samsung::kbd_backlight/max_brightness")") | |
BODY+=("$(cat "$SYSPATH/rfkill/rfkill0/name"): $(cat "$SYSPATH/rfkill/rfkill0/state")") | |
BODY+=("$(cat "$SYSPATH/rfkill/rfkill1/name"): $(cat "$SYSPATH/rfkill/rfkill1/state")") | |
sw-notify-send "$SUMMARY" "$(for line in "${BODY[@]}"; do echo "$line"; done)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment