add machine

This commit is contained in:
randomuser 2022-07-15 15:48:02 -05:00
parent 98705dc892
commit 1715cf42b2
3 changed files with 21 additions and 1 deletions

View File

@ -34,6 +34,7 @@ sh:
cp -f sh/ss $(DESTDIR)$(PREFIX)/bin
cp -f sh/net $(DESTDIR)$(PREFIX)/bin
cp -f sh/bspwm-toggle-gaps $(DESTDIR)$(PREFIX)/bin
cp -f sh/machine $(DESTDIR)$(PREFIX)/bin
mkc: c/scream c/timer c/boid c/anaconda c/colors

15
sh/machine Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
host="$(hostname)"
case "$host" in
"mlg" | "think")
exit 1
;;
"toaster")
exit 2
;;
"fish")
exit 3
;;
esac

View File

@ -1,3 +1,7 @@
#!/bin/sh
st -c statusbar -g 195x1+0+0 -e status
machine
[ "$?" -eq 2 ] &&
st -c statusbar -g 142x1+0+0 -e status ||
st -c statusbar -g 195x1+0+0 -e status