#!/usr/bin/env bash
# @vicinae.schemaVersion 1
# @vicinae.title Save Layout as Project
# @vicinae.mode silent
# @vicinae.icon ../../icons/hicolor/scalable/apps/panama-settings.svg
# @vicinae.description Record the windows you have open, and where, under a name.
# @vicinae.keywords ["project", "layout", "save", "session", "workspace"]
# @vicinae.argument1 { "type": "text", "placeholder": "project name" }

# Arrange the desktop, then name it. Capturing from the launcher rather than a
# settings page is the point: a layout is worth saving at the moment you have it
# right, and that moment is not one you want to interrupt by going looking for a
# page.
exec "$HOME/.config/quickshell/scripts/panama-project" save "$1"
