From e0e71a34fe11c632d209fd4e2eb3688f61ab2de5 Mon Sep 17 00:00:00 2001 From: ctarx Date: Mon, 27 Oct 2025 13:55:14 +0000 Subject: [PATCH] imv: add default Ctrl+P binding to print current image via CUPS (#2872) * imv: add default Ctrl+P binding to print current image via CUPS * Add imv config migration with backup --------- Co-authored-by: David Heinemeier Hansson --- config/imv/config | 2 ++ migrations/1761569743.sh | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 config/imv/config create mode 100644 migrations/1761569743.sh diff --git a/config/imv/config b/config/imv/config new file mode 100644 index 00000000..f54c29af --- /dev/null +++ b/config/imv/config @@ -0,0 +1,2 @@ +[binds] + = exec lp $imv_current_file diff --git a/migrations/1761569743.sh b/migrations/1761569743.sh new file mode 100644 index 00000000..f45e7bfd --- /dev/null +++ b/migrations/1761569743.sh @@ -0,0 +1,9 @@ +echo "Add default Ctrl+P binding for imv; backup existing config if present" + +if [ -f ~/.config/imv/config ]; then + cp ~/.config/imv/config ~/.config/imv/config.bak.$(date +%s) +else + mkdir -p ~/.config/imv +fi + +cp ~/.local/share/omarchy/config/imv/config ~/.config/imv/config