Initial Push.
This commit is contained in:
14
home/.local/usr/bin/foot-smart
Executable file
14
home/.local/usr/bin/foot-smart
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
if footclient "$@" 2>/dev/null; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exec foot --server &
|
||||
|
||||
sleep 0.2
|
||||
|
||||
exec footclient "$@" || {
|
||||
echo "Failed to connect to foot server." >&2
|
||||
exit 1
|
||||
}
|
||||
Reference in New Issue
Block a user