2025-05-07 05:48:27 -05:00
|
|
|
#!/usr/bin/zsh
|
|
|
|
|
|
2025-07-26 07:15:16 -05:00
|
|
|
#performance() {
|
|
|
|
|
#
|
|
|
|
|
# echo '128' >/sys/class/leds/system76_acpi::kbd_backlight/brightness
|
|
|
|
|
# /usr/bin/system76-power profile performance
|
|
|
|
|
#}
|
|
|
|
|
#
|
|
|
|
|
#balanced() {
|
|
|
|
|
#
|
|
|
|
|
# echo '128' >/sys/class/leds/system76_acpi::kbd_backlight/brightness
|
|
|
|
|
# /usr/bin/system76-power profile balanced
|
|
|
|
|
#}
|
|
|
|
|
#
|
|
|
|
|
#battery() {
|
|
|
|
|
#
|
|
|
|
|
# echo '128' >/sys/class/leds/system76_acpi::kbd_backlight/brightness
|
|
|
|
|
# /usr/bin/system76-power profile battery
|
|
|
|
|
#}
|
2025-05-07 05:48:27 -05:00
|
|
|
|
2025-07-26 07:15:16 -05:00
|
|
|
#case "$1" in
|
|
|
|
|
#performance) performance ;;
|
|
|
|
|
#balanced) balanced ;;
|
|
|
|
|
#battery) battery ;;
|
|
|
|
|
#*) echo "Please enter an action" ;;
|
|
|
|
|
#esac
|
2025-05-07 05:48:27 -05:00
|
|
|
|
2025-07-26 07:15:16 -05:00
|
|
|
echo '128' >/sys/class/leds/system76_acpi::kbd_backlight/brightness
|
|
|
|
|
/usr/bin/system76-power profile $1
|