14 lines
462 B
Bash
14 lines
462 B
Bash
echo "Replace Tensaku with Omasnap"
|
|
|
|
omarchy-pkg-add omasnap
|
|
|
|
imv_config="$HOME/.config/imv/config"
|
|
if [[ -f $imv_config ]]; then
|
|
sed -i --follow-symlinks \
|
|
-e 's/^# Edit the current image in Tensaku and quit the viewer$/# Edit the current image in Omasnap and quit the viewer/' \
|
|
-e 's|^<Ctrl+e> = exec tensaku-edit "$imv_current_file" & ; quit$|<Ctrl+e> = exec omasnap "$imv_current_file" \& ; quit|' \
|
|
"$imv_config"
|
|
fi
|
|
|
|
omarchy-pkg-drop tensaku
|