mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
improve: add image/video share and run share commands silently (#3330)
* improve: add image/video share and run share commands silently - Added 'image' and 'video' modes to omarchy-cmd-share to quickly send the most recent screenshot or video without selecting manually. - Updated show_share_menu to run share commands in the background using 'nohup' to avoid opening a terminal window. - Comments added to explain each section for clarity and maintainability. * Match names with folders * Correct here too * Don't need to keep this around * Fix these up for what's needed only --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
@@ -123,10 +123,12 @@ show_screenrecord_menu() {
|
||||
}
|
||||
|
||||
show_share_menu() {
|
||||
case $(menu "Share" " Clipboard\n File \n Folder") in
|
||||
*Clipboard*) terminal bash -c "omarchy-cmd-share clipboard" ;;
|
||||
case $(menu "Share" " Clipboard\n File\n Folder\n Latest Picture\n Latest Video") in
|
||||
*Clipboard*) omarchy-cmd-share clipboard ;;
|
||||
*File*) terminal bash -c "omarchy-cmd-share file" ;;
|
||||
*Folder*) terminal bash -c "omarchy-cmd-share folder" ;;
|
||||
*Picture*) omarchy-cmd-share picture ;;
|
||||
*Video*) omarchy-cmd-share video ;;
|
||||
*) back_to show_trigger_menu ;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user