add backlight
This commit is contained in:
20
scripts/bl
Executable file
20
scripts/bl
Executable file
@ -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
|
1
scripts/rmtmptex
Executable file
1
scripts/rmtmptex
Executable file
@ -0,0 +1 @@
|
|||||||
|
rm *.aux *.bbl *.bcf *.blg *.fdb_latexmk *.fls *.log *.out *.run.xml *.synctex.gz *.toc
|
Reference in New Issue
Block a user