Unix3r
Build. Break. Learn. Repeat.
Branches
#!/usr/bin/env bash
# dropterm.sh — Quake-style drop-down terminal living in the scratchpad.
if swaymsg -t get_tree | grep -q '"app_id": "dropterm"'; then
swaymsg '[app_id="dropterm"] scratchpad show, move position center' >/dev/null
else
foot --app-id dropterm >/dev/null 2>&1 &
fi