summaryrefslogtreecommitdiff
path: root/src/runscreen.sh
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2024-08-27 23:17:56 -0500
committer@syxhe <https://t.me/syxhe>2024-08-27 23:17:56 -0500
commitd55fa751c2d695c50931fcf5473d6515178e2d7a (patch)
tree1a15a5053c1f79057c57ecb1191b2d1efd08e49c /src/runscreen.sh
parente53a059c188c72bf7eea7a966606fe086e4c2d04 (diff)
More box
Diffstat (limited to 'src/runscreen.sh')
-rwxr-xr-xsrc/runscreen.sh18
1 files changed, 18 insertions, 0 deletions
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 @@
1#!/usr/bin/env -S sh
2
3# Stop interrupts
4trap '' INT
5
6# Get location of script
7SCRIPT_DIR="$(cd $(dirname "$0") && echo "$PWD")"
8if [ -z "$SCRIPT_DIR" ]; then
9 printf "\033[38;2;255;0;0m\033[1m[runscreen.sh] Couldn't get location of script. Exiting...\n\033[m" 1>&2
10 exit 1
11fi
12
13# Run the thing in gnome terminal
14gnome-terminal --hide-menubar --geometry=132x24 --wait -- "$SCRIPT_DIR/screen" \
15 && exit $?
16
17# This file exists because I've gotten to the point where I need to open the terminal in specific dimensions
18# or the thing looks bad \ No newline at end of file