summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorShubham Saini <pryr@pryr.xyz>2020-12-06 11:52:10 +0000
committerShubham Saini <pryr@pryr.xyz>2020-12-06 11:52:10 +0000
commitca82b3dea5d4bf35dae6c560370510289e3ce079 (patch)
treedb26aefd26c2696b1c35f6f5bd051c00a4377b81 /bin
parenta7f43b0d5fe907bdbceca7c219c918757f8359ce (diff)
fix light
Diffstat (limited to 'bin')
-rwxr-xr-xbin/.bin/lay2
-rwxr-xr-xbin/.bin/light4
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/.bin/lay b/bin/.bin/lay
index 530402a..da5fe35 100755
--- a/bin/.bin/lay
+++ b/bin/.bin/lay
@@ -1,2 +1,2 @@
1#!/bin/sh 1#!/bin/sh
2xrandr --output eDP --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0 --mode 1366x768 --scale 1.25x1.25 --pos 1920x0 --rotate normal --output DisplayPort-0 --off 2xrandr --output eDP --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0 --mode 1366x768 --scale 1.30x1.30 --pos 1920x0 --rotate normal --output DisplayPort-0 --off
diff --git a/bin/.bin/light b/bin/.bin/light
index bba7e82..d44b241 100755
--- a/bin/.bin/light
+++ b/bin/.bin/light
@@ -4,12 +4,12 @@
4case "$1" in 4case "$1" in
5 u*) 5 u*)
6 for f in /sys/class/backlight/*; do 6 for f in /sys/class/backlight/*; do
7 echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; 7 echo $(($(<$f/brightness)+2*$(<$f/max_brightness)/100)) > $f/brightness;
8 done 8 done
9 ;; 9 ;;
10 d*) 10 d*)
11 for f in /sys/class/backlight/*; do 11 for f in /sys/class/backlight/*; do
12 echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; 12 echo $(($(<$f/brightness)-2*$(<$f/max_brightness)/100)) > $f/brightness;
13 done 13 done
14 ;; 14 ;;
15 *) 15 *)