15 lines
490 B
Bash
Executable File
15 lines
490 B
Bash
Executable File
#!/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
|
|
|
|
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"
|