aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--alias3
-rwxr-xr-xtools/misc/brightness.sh6
2 files changed, 9 insertions, 0 deletions
diff --git a/alias b/alias
index d3d97fa..a46ef0c 100644
--- a/alias
+++ b/alias
@@ -306,6 +306,9 @@ mvt_decode() {
306big52utf8() { 306big52utf8() {
307 iconv -f BIG-5 -t UTF-8 307 iconv -f BIG-5 -t UTF-8
308} 308}
309bak() {
310 mv $1 $1.bak
311}
309 312
310# tmp 313# tmp
311alias and='cd ~/git/geoBingAn.Android' 314alias and='cd ~/git/geoBingAn.Android'
diff --git a/tools/misc/brightness.sh b/tools/misc/brightness.sh
new file mode 100755
index 0000000..8533a93
--- /dev/null
+++ b/tools/misc/brightness.sh
@@ -0,0 +1,6 @@
1#! /usr/bin/env bash
2
3BRIGHTNESS=$(xrandr --verbose | grep Brightness: | cut -d' ' -f2)
4
5VALUE=$( echo $BRIGHTNESS $1 | bc )
6xrandr --output eDP-1 --brightness $VALUE