diff --git a/scripts/bl b/scripts/bl new file mode 100755 index 0000000..a1cb43d --- /dev/null +++ b/scripts/bl @@ -0,0 +1,20 @@ +#!/usr/bin/bash + +CMD="brightnessctl set" +STATUS=$(brightnessctl g) + +if [ $1 = 'd' ]; then + if [ $STATUS -le 11 ]; then + bash -c "$CMD 1" + elif [ $STATUS -le 51 ]; then + bash -c "$CMD 10-" + else + bash -c "$CMD 50-" + fi +elif [ $1 = 'u' ]; then + if [ $STATUS -lt 51 ]; then + bash -c "$CMD +10" + else + bash -c "$CMD +50" + fi +fi diff --git a/scripts/rmtmptex b/scripts/rmtmptex new file mode 100755 index 0000000..1500f82 --- /dev/null +++ b/scripts/rmtmptex @@ -0,0 +1 @@ +rm *.aux *.bbl *.bcf *.blg *.fdb_latexmk *.fls *.log *.out *.run.xml *.synctex.gz *.toc