Compare commits

...

2 Commits

Author SHA1 Message Date
randomuser 3a66b42d9f Merge branch 'master' of https://tildegit.org/randomuser/utils
more merges
2022-07-15 15:51:59 -05:00
randomuser 1715cf42b2 add machine 2022-07-15 15:48:02 -05:00
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
check:
shellcheck sh/*

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