cdotfis-mac/dotfiles/.local/bin/open.sh

19 lines
881 B
Bash
Executable File

#!/usr/bin/env bash
sleep 3
#scratchpad_id=$(osascript ~/.local/bin/iterm-scratchpad.scpt | awk '{print $NF}')
#alacritty -t "scratchpad" > /dev/null 2>&1 &
/Applications/Alacritty.app/Contents/MacOS/alacritty -t "scratchpad" &
#/opt/homebrew/bin/alacritty -t "scratchpad" &
#scratchpad_id=$(ps aux | grep 'scratchpad' | grep -v 'grep' | awk '{print $2}')
#sleep 1
#scratchpad_id=$(/opt/homebrew/bin/yabai -m query --windows | jq '.[] | select(.title=="scratchpad").id')
##echo "$scratchpad_id"
##sleep 1
#/opt/homebrew/bin/yabai -m window "$scratchpad_id" --space 10
##/opt/homebrew/bin/yabai -m window "$scratchpad_id" --minimize
#/opt/homebrew/bin/yabai -m window "$scratchpad_id" --toggle float
#/opt/homebrew/bin/yabai -m window "$scratchpad_id" --grid 4:4:1:1:2:2
#/opt/homebrew/bin/yabai -m window "$scratchpad_id" --layer above
#/opt/homebrew/bin/yabai -m space --focus 1