Added isobash

master
Steven Saus 2 years ago
parent 0638fbeb3c
commit 7c36cb9146
  1. 9
      README.md
  2. 23
      isobash

@ -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 to deserve thier own repo and README. This readme may very well be outdated
or inaccurate! 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 ## yad-todo.sh
Uses [yad](https://smokey01.com/yad/) to present a simple GUI for adding Uses [yad](https://smokey01.com/yad/) to present a simple GUI for adding

@ -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}"
Loading…
Cancel
Save