i3wm; swap mod+\ from mic mute to screenshot

This commit is contained in:
2023-11-11 07:27:41 -07:00
parent 592fe48004
commit fc60660b9b
4 changed files with 39 additions and 1 deletions

View File

@ -40,4 +40,17 @@ case $1 in
esac
scwrypts i3/launch-or-show -- $PROGRAM ${ARGS[@]}
;;
screenshot )
command -v deepin-screen-recorder || notify-send "I3 UTILS" "no screenshot application available"
deepin-screen-recorder
DEEPIN_CONFIG="$HOME/.config/deepin/deepin-screen-recorder/deepin-screen-recorder.conf"
: \
&& echo "fixing stupid settings" \
&& mv $DEEPIN_CONFIG $DEEPIN_CONFIG.bak \
&& sed '/specifiedSavepath=.*home.*Pictures/d' $DEEPIN_CONFIG.bak > $DEEPIN_CONFIG \
|| mv $DEEPIN_CONFIG.bak $DEEPIN_CONFIG.conf \
;
;;
esac