Fix spelling
This commit is contained in:
+5
-5
@@ -139,18 +139,18 @@ show_webcam_select_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_screenrecord_menu() {
|
show_screenrecord_menu() {
|
||||||
omarchy-capture-screencording --stop-recording && exit 0
|
omarchy-capture-screenrecording --stop-recording && exit 0
|
||||||
|
|
||||||
case $(menu "Screenrecord" " With no audio\n With desktop audio\n With desktop + microphone audio\n With desktop + microphone audio + webcam") in
|
case $(menu "Screenrecord" " With no audio\n With desktop audio\n With desktop + microphone audio\n With desktop + microphone audio + webcam") in
|
||||||
*"With no audio") omarchy-capture-screencording ;;
|
*"With no audio") omarchy-capture-screenrecording ;;
|
||||||
*"With desktop audio") omarchy-capture-screencording --with-desktop-audio ;;
|
*"With desktop audio") omarchy-capture-screenrecording --with-desktop-audio ;;
|
||||||
*"With desktop + microphone audio") omarchy-capture-screencording --with-desktop-audio --with-microphone-audio ;;
|
*"With desktop + microphone audio") omarchy-capture-screenrecording --with-desktop-audio --with-microphone-audio ;;
|
||||||
*"With desktop + microphone audio + webcam")
|
*"With desktop + microphone audio + webcam")
|
||||||
local device=$(show_webcam_select_menu) || {
|
local device=$(show_webcam_select_menu) || {
|
||||||
back_to show_capture_menu
|
back_to show_capture_menu
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
omarchy-capture-screencording --with-desktop-audio --with-microphone-audio --with-webcam --webcam-device="$device"
|
omarchy-capture-screenrecording --with-desktop-audio --with-microphone-audio --with-webcam --webcam-device="$device"
|
||||||
;;
|
;;
|
||||||
*) back_to show_capture_menu ;;
|
*) back_to show_capture_menu ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -138,7 +138,7 @@
|
|||||||
"on-scroll-right": ""
|
"on-scroll-right": ""
|
||||||
},
|
},
|
||||||
"custom/screenrecording-indicator": {
|
"custom/screenrecording-indicator": {
|
||||||
"on-click": "omarchy-capture-screencording",
|
"on-click": "omarchy-capture-screenrecording",
|
||||||
"exec": "$OMARCHY_PATH/default/waybar/indicators/screen-recording.sh",
|
"exec": "$OMARCHY_PATH/default/waybar/indicators/screen-recording.sh",
|
||||||
"signal": 8,
|
"signal": 8,
|
||||||
"return-type": "json"
|
"return-type": "json"
|
||||||
|
|||||||
@@ -3,6 +3,6 @@ echo "Update Waybar screen recording command"
|
|||||||
WAYBAR_CONFIG="$HOME/.config/waybar/config.jsonc"
|
WAYBAR_CONFIG="$HOME/.config/waybar/config.jsonc"
|
||||||
|
|
||||||
if [[ -f $WAYBAR_CONFIG ]] && grep -q 'omarchy-cmd-screenrecord' "$WAYBAR_CONFIG"; then
|
if [[ -f $WAYBAR_CONFIG ]] && grep -q 'omarchy-cmd-screenrecord' "$WAYBAR_CONFIG"; then
|
||||||
sed -i 's/omarchy-cmd-screenrecord/omarchy-capture-screencording/g' "$WAYBAR_CONFIG"
|
sed -i 's/omarchy-cmd-screenrecord/omarchy-capture-screenrecording/g' "$WAYBAR_CONFIG"
|
||||||
omarchy-restart-waybar
|
omarchy-restart-waybar
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
echo "Rename screen recording command"
|
||||||
|
|
||||||
|
WAYBAR_CONFIG="$HOME/.config/waybar/config.jsonc"
|
||||||
|
|
||||||
|
if [[ -f $WAYBAR_CONFIG ]] && grep -q 'omarchy-capture-screencording' "$WAYBAR_CONFIG"; then
|
||||||
|
sed -i 's/omarchy-capture-screencording/omarchy-capture-screenrecording/g' "$WAYBAR_CONFIG"
|
||||||
|
omarchy-restart-waybar
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user