ref: 8bcccc38bdfa555a398d2fc8eea659df824f6d08
parent: 51f925185e61ac7ec2e6807d212334d9747ceb2b
author: qwx <qwx@sciops.net>
date: Fri Apr 22 20:52:29 EDT 2022
riostart: add separate controls for zuke(1) in bar fn, rice delays
--- a/bin/riostart
+++ b/bin/riostart
@@ -4,6 +4,7 @@
window -scroll -r $kprintrect cat /dev/kprint
window -r $catrect games/catclock
window -r $volrect volume
+window -r $duckrect mothra
if(test -f /mnt/acpi/battery)
window -r $statrect stats -blmsez -T 10
if not
@@ -10,9 +11,14 @@
window -r $statrect stats -lmsez
window -r $riowrect 'label riow;
fn bar{
- sed -u ''s/$/│⏵│⏸│⏭│⏶│⏷/g'' \
+ sed -u ''s/$/│⏪│⏯│⏩│⑨│⏵│⏸│⏭│⏶│⏷/g'' \
| /bin/bar -s ''│'' \
| awk ''
+ # zuke
+ /⏪/{system("plumb -d audio ''''key <''''")}
+ /⏯/{system("plumb -d audio ''''key p''''")}
+ /⏩/{system("plumb -d audio ''''key >''''")}
+ # shp
/⏵/{system("Sta")}
/⏸/{system("Sto")}
/⏭/{system("Fw")}
@@ -20,5 +26,4 @@
/⏷/{system("v-")}
'' >[2]/dev/null
}; riow'
-sleep 0.3
-window -scroll -r $cmdrect 'label cmd; rc'
+{ sleep 0.5; window -scroll -r $cmdrect 'label cmd; rc' } &