Skip to content

Commit dfaffa0

Browse files
ctarxdhh
authored andcommitted
imv: add default Ctrl+P binding to print current image via CUPS (basecamp#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 <david@hey.com>
1 parent 3cbf69b commit dfaffa0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

config/imv/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[binds]
2+
<Ctrl+p> = exec lp $imv_current_file

migrations/1761569743.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
echo "Add default Ctrl+P binding for imv; backup existing config if present"
2+
3+
if [ -f ~/.config/imv/config ]; then
4+
cp ~/.config/imv/config ~/.config/imv/config.bak.$(date +%s)
5+
else
6+
mkdir -p ~/.config/imv
7+
fi
8+
9+
cp ~/.local/share/omarchy/config/imv/config ~/.config/imv/config

0 commit comments

Comments
 (0)