#!/usr/bin/env bash TITLE=mylauncher #SCREEN_WIDTH=`yabai -m query --displays --display | jq '.frame.w*2'` #SCREEN_HEIGHT=`yabai -m query --displays --display | jq '.frame.h*2'` #TERM_WIDTH=1280 #TERM_HEIGHT=1260 #TERM_HEIGHT=1960 #let "X=SCREEN_WIDTH/2-TERM_WIDTH/2" #let "Y=SCREEN_HEIGHT/2-TERM_HEIGHT/2" #alacritty -t "${TITLE}" -o window.position.x="${X}" -o window.position.y="${Y}" -o window.dimensions.lines=35 -o window.dimensions.columns=80 -o window.decorations=none --working-directory "$(pwd)" -e "$1" #alacritty -t "${TITLE}" -o window.position.x="${X}" -o window.position.y="${Y}" -o window.dimensions.lines=10 -o window.dimensions.columns=80 -o window.decorations=none --working-directory "$(pwd)" -e "$1" alacritty -t "${TITLE}" --config-file=$HOME/.config/alacritty/alacritty-launcher.toml --working-directory "$(pwd)" -e "$1"