From d55fa751c2d695c50931fcf5473d6515178e2d7a Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Tue, 27 Aug 2024 23:17:56 -0500 Subject: More box --- src/runscreen.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 src/runscreen.sh (limited to 'src/runscreen.sh') diff --git a/src/runscreen.sh b/src/runscreen.sh new file mode 100755 index 0000000..1bbdc78 --- /dev/null +++ b/src/runscreen.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env -S sh + +# Stop interrupts +trap '' INT + +# Get location of script +SCRIPT_DIR="$(cd $(dirname "$0") && echo "$PWD")" +if [ -z "$SCRIPT_DIR" ]; then + printf "\033[38;2;255;0;0m\033[1m[runscreen.sh] Couldn't get location of script. Exiting...\n\033[m" 1>&2 + exit 1 +fi + +# Run the thing in gnome terminal +gnome-terminal --hide-menubar --geometry=132x24 --wait -- "$SCRIPT_DIR/screen" \ + && exit $? + +# This file exists because I've gotten to the point where I need to open the terminal in specific dimensions +# or the thing looks bad \ No newline at end of file -- cgit v1.2.3