commit cedfca0

hovercats  ·  2023-12-04 19:28:19 +0000 UTC
parent 956f38e
rc/* tab case statements
3 files changed,  +16, -16
M rc/bri
M rc/bri
+4, -4
 1@@ -5,8 +5,8 @@ file=/sys/class/backlight/amdgpu_bl0/brightness
 2 val=`{cat $file}
 3 
 4 switch($1) {
 5-case d
 6-	 printf %s\n $val | awk '{ print $1 - 5 }' >$file
 7-case i
 8-	 printf %s\n $val | awk '{ print $1 + 5 }' >$file
 9+	case d
10+		 printf %s\n $val | awk '{ print $1 - 5 }' >$file
11+	case i
12+		 printf %s\n $val | awk '{ print $1 + 5 }' >$file
13 }
+6, -6
 1@@ -5,10 +5,10 @@
 2 cd $HOME/usr/vid
 3 
 4 switch($1) {
 5-case -d
 6-	sel=`{find . -type f | awk -F "/" '{print $NF}' | dmenu -c -i -l 20 -p 'Delete:'}
 7-	rm -rf $"sel
 8-case *
 9-	sel=`{find . -type f | awk -F "/" '{print $NF}' | dmenu -c -i -l 20 -p 'Play:'}
10-	exec mpv $"sel
11+	case -d
12+		sel=`{find . -type f | awk -F "/" '{print $NF}' | dmenu -c -i -l 20 -p 'Delete:'}
13+		rm -rf $"sel
14+	case *
15+		sel=`{find . -type f | awk -F "/" '{print $NF}' | dmenu -c -i -l 20 -p 'Play:'}
16+		exec mpv $"sel
17 }
+6, -6
 1@@ -5,10 +5,10 @@
 2 cd $HOME/usr/doc
 3 
 4 switch($1) {
 5-case -d
 6-	sel=`{find *.pdf -type f | awk -F "/" '{print $NF}' | dmenu -c -i -l 20 -p 'Delete:'}
 7-	rm -rf $"sel
 8-case *
 9-	sel=`{find *.pdf -type f | awk -F "/" '{print $NF}' | dmenu -c -i -l 20 -p 'View:'}
10-	exec mupdf $"sel
11+	case -d
12+		sel=`{find *.pdf -type f | awk -F "/" '{print $NF}' | dmenu -c -i -l 20 -p 'Delete:'}
13+		rm -rf $"sel
14+	case *
15+		sel=`{find *.pdf -type f | awk -F "/" '{print $NF}' | dmenu -c -i -l 20 -p 'View:'}
16+		exec mupdf $"sel
17 }