shithub: rc

Download patch

ref: 79d956e8e0c8111d074afbd6c26e10950115fc3f
parent: 9404120c74daa3a677c5f8a702173d62c3380f5d
author: qwx <qwx@sciops.net>
date: Sat Aug 20 14:50:03 EDT 2022

nopedog: actually spawn window and blast at full volume

--- a/bin/nopedog
+++ b/bin/nopedog
@@ -17,7 +17,10 @@
 		exit
 	if(bat < 5 || left / cap < 0.05)
 		system("fshalt")
-	else if(bat < 10)
-		system("window -dx 120 -dy 200 -minx 0 -miny 0 \''label alert; echo FAILURE IS IMMINENT; while() play /lib/m/mamb/pripyat.evacuation.audio.opus\''")
+	else if(bat < 10){
+		print "master 100" >"#A/volume"
+		if("ls /srv/riowctl.*" | getline x > 0)
+			system("wctl=" x " window -dx 120 -dy 200 -minx 0 -miny 0 \''label alert; echo FAILURE IS IMMINENT; while() play /lib/m/mamb/pripyat.evacuation.audio.opus\''")
+	}
 }
 ' /mnt/pm/battery