Switch default editor to tensaku so we can move things

This commit is contained in:
Ryan Hughes
2026-06-12 22:27:20 -04:00
parent c582e7133a
commit 4bfa5a6949
7 changed files with 37 additions and 33 deletions
+2 -10
View File
@@ -16,7 +16,7 @@ fi
pkill slurp && exit 0
SCREENSHOT_EDITOR="${OMARCHY_SCREENSHOT_EDITOR:-satty}"
SCREENSHOT_EDITOR="${OMARCHY_SCREENSHOT_EDITOR:-tensaku-edit}"
# Parse --editor flag from any position
ARGS=()
@@ -31,15 +31,7 @@ set -- "${ARGS[@]}"
open_editor() {
local filepath="$1"
if [[ $SCREENSHOT_EDITOR == "satty" ]]; then
satty --filename "$filepath" \
--output-filename "$filepath" \
--actions-on-enter save-to-clipboard \
--save-after-copy \
--copy-command 'wl-copy --type image/png'
else
$SCREENSHOT_EDITOR "$filepath"
fi
"$SCREENSHOT_EDITOR" "$filepath"
}
MODE="${1:-smart}"
+1 -1
View File
@@ -29,7 +29,7 @@ open_image() {
local path="$1"
[[ -r $path ]] || exit 1
exec satty --filename "$path" --output-filename "$path"
exec tensaku-edit "$path"
}
open_text() {