#!/usr/bin/env bash init() { /usr/bin/asusctl profile -p | cut -d' ' -f4 > /tmp/pre-gamerun.state /usr/bin/asusctl profile -P Performance #notify-send "`asusctl profile -p`" } deinit() { /usr/bin/asusctl profile -P `echo /tmp/pre-gamerun.state` rm /tmp/pre-gaemrun.state #notify-send "`asusctl profile -p`" } usage() { echo "Usage: ${0} [start|stop]" } case ${1} in start) init ;; stop) deinit ;; *) usage ;; esac