summaryrefslogtreecommitdiff
path: root/src/runscreen.sh
blob: 1bbdc78e81c0b14e6fc909e9bfe2896c7caf6b57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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