commit f4df24d

hovercats  ·  2023-06-05 19:04:09 +0000 UTC
parent 15d4bea
remove some redundancy/nits
5 files changed,  +5, -11
M rc/bri
+2, -4
 1@@ -1,12 +1,10 @@
 2 #!/bin/rc
 3 
 4-CUR=`{pfw}
 5-
 6 switch($1) {
 7 	case n
 8-		wid=`{lsw | grep -v $CUR | sed '1 p;d'}
 9+		wid=`{lsw | grep -v `{pfw} | sed '1 p;d'}
10 	case p
11-		wid=`{lsw | grep -v $CUR | sed '$ p;d'}
12+		wid=`{lsw | grep -v `{pfw} | sed '$ p;d'}
13 	case *
14 		echo 'Usage: n|p' && exit 1
15 }
M rc/bri
+1, -1
 1@@ -1,8 +1,8 @@
 2 #!/bin/rc
 3 # A simple script to change screen brightness.
 4 
 5-val=`{cat /sys/class/backlight/amdgpu_bl0/brightness}
 6 file=/sys/class/backlight/amdgpu_bl0/brightness
 7+val=`{cat $file}
 8 
 9 switch($1) {
10 case d
+0, -2
1@@ -1,8 +1,6 @@
2 #!/bin/rc
3 
4 # A tiny script for launching videos inside Videos dir with mpv
5-# No more need for a detached terminal taking up your screen space
6-# you can also delete the selected video with -d option
7 
8 DIR=$HOME/usr/vid
9 
+1, -3
 1@@ -1,9 +1,7 @@
 2 #!/bin/rc
 3 
 4-# tiny script to see files in Documents. mainly pdfs for me.
 5-# opened with mupdf
 6+# open pdfs in mupdf with dmenu
 7 
 8-# set DIR variable to whatever floats your boat
 9 DIR=$HOME/usr/doc
10 
11 cd $DIR
+1, -1
1@@ -1,6 +1,6 @@
2 #!/bin/rc
3 
4 # just wait a bit
5-while () {
6+while() {
7 	 wait $pid
8 }