i3wm; swap mod+\ from mic mute to screenshot
This commit is contained in:
13
bin/i3-utils
13
bin/i3-utils
@ -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
|
||||
|
Reference in New Issue
Block a user