4 lsblk
--noheadings --raw -o NAME
,SIZE
,MOUNTPOINT |\
6 dmenu
-i -p "Choose disk"|\
8 if [ ! "$usb" ]; then exit;fi
12 if [ ! -d "$target" ]; then
13 echo "please select iso file"
14 target
=$
(echo '/home/hassan/' | dmenu
-p 'enter full path')
18 [ -z "$target" ] && target
="$(realpath .)"
22 [ -z "$p" ] && p
="$target"
23 sel
="$(ls -1a "$target" | grep -v '^\.$' | dmenu -p "$p" -l 25)"
25 [ "$ec" -ne 0 ] && exit $ec
26 c
="$(echo "$sel" | cut -b1)"
27 if [ "$c" = "/" ]; then
30 newt
="$(realpath "${target}/${sel}")"
32 if [ -e "$newt" ]; then
34 if [ ! -d "$target" ]; then
37 if dmenu
-P -p "Warning Device will be erased | sudo " |\
39 if="$target" of
="/dev/$usb"\
40 status
=progress oflag
=sync
; then
41 notify-send
"Bootable USB Created" "$usb"
43 notify-send
-u critical\
44 "Error Creating Bootable USB" "$usb"