From 7c36cb9146e280125d3494172b4e79bfdecc9a7f Mon Sep 17 00:00:00 2001 From: Steven Saus Date: Mon, 28 Feb 2022 11:53:03 -0500 Subject: [PATCH] Added isobash --- README.md | 9 +++++++++ isobash | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 isobash diff --git a/README.md b/README.md index 63db8af..a2862b3 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,15 @@ This is often a repository when I work on small ideas until they're big enough to deserve thier own repo and README. This readme may very well be outdated or inaccurate! +## isobash + +A simple script using zenity and pkexec to allow for interactive mounting of ISO files with a GUI interface. + +## video-fzf-config and pulse-fzf-autoconf + +Scripts for moving and manipulating video and pulse streams easily. See https://ideatrash.net/2022/02/manipulating-audio-and-video-streams-for-streaming-on-linux.html + + ## yad-todo.sh Uses [yad](https://smokey01.com/yad/) to present a simple GUI for adding diff --git a/isobash b/isobash new file mode 100755 index 0000000..3c542f9 --- /dev/null +++ b/isobash @@ -0,0 +1,23 @@ +#!/bin/bash + +############################################################################## +# +# isobash +# By Steven Saus +# (c) 2022; licensed under the MIT license +# +# Because I needed something to remember how to mount isos +############################################################################## + +#get install directory +export SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" + +IsoFile=$(zenity --file-selection --file-filter=*.iso --title="Choose your ISO file to mount") +MountDir=$(zenity --file-selection --directory --title="Where shall we mount it?") + +pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY mount ${IsoFile} ${MountDir} -o loop + +# Pauses; leaves reminder to unmount whenever it's closed +zenity --progress --title="Mounted ISO" --text="Mounted \n${IsoFile}\n at ${MountDir}" --pulsate --cancel-label="Click me to unmount" + +pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY umount "${MountDir}"