dot_testing/builds/utils/sh/statuswrap

15 lines
235 B
Plaintext
Raw Permalink Normal View History

2024-01-15 03:52:45 -06:00
#!/bin/sh
geos=$(
xrandr | \
grep ' connected' | \
grep -o '[0-9]*x[0-9]*+[0-9]*+[0-9]*' | \
awk -F'[x+]' '{print $1 "x20+" $3 "+" $4}'
)
2024-01-18 03:54:32 -06:00
pkill statusbar
2024-01-15 03:52:45 -06:00
for i in $geos; do
st -c statusbar -p -g "$i" -e statusbar & disown
done