Add battery_button.sh
This commit is contained in:
parent
64b3cc9b33
commit
63fe336895
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
1) SUDO_ASKPASS=$HOME/.local/bin/dpass sudo -A "$TERMINAL" -e "powertop" ;;
|
||||
2) SUDO_ASKPASS=$HOME/.local/bin/dpass sudo -A powertop --html=$HOME/.cache/powerreport.html && xdg-open $HOME/.cache/powerreport.html ;;
|
||||
esac
|
Loading…
Reference in New Issue