update any-term-dropdown, mountjutsu, fzf-nova

pull/41/head
gotbletu 3 years ago
parent 495b13a580
commit 7fb4781e28

@ -0,0 +1,39 @@
#!/usr/bin/env bash
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: turn any terminal into a dropdown terminal
# DEMO: https://www.youtube.com/watch?v=mVw2gD9iiOg
# DEPEND: coreutils xdotool wmutils (https://github.com/wmutils/core | https://aur.archlinux.org/packages/wmutils-git/)
# CLOG: 2021-02-10 use comm to match window name and class, this avoids terminal windows with different names
# 2015-02-15 0.1
# get screen resolution width and height
ROOT=$(lsw -r)
width=$(wattr w "$ROOT")
height=$(wattr h "$ROOT")
# option 1: set terminal emulator manually
# my_term=urxvt
# my_term=sakura
my_term="xterm"
# my_term="alacritty"
# my_term=terminator
# my_term=gnome-terminal
# option 2: auto detect terminal emulator (note: make sure to only open one)
# my_term="urxvt|xterm|uxterm|termite|sakura|lxterminal|terminator|mate-terminal|pantheon-terminal|konsole|gnome-terminal|xfce4-terminal"
# get terminal emulator pid ex: 44040485
# pid=$(xdotool search --class "$my_term" | tail -n1)
# get terminal emulator and matching name pid ex: 44040485
pid=$(comm -12 <(xdotool search --name "$my_term" | sort) <(xdotool search --class "$my_term" | sort))
# get windows id from pid ex: 0x2a00125%
wid=$(printf 0x%x "$pid")
# maximize terminal emulator
wrs "$width" "$height" "$wid"
# toggle show/hide terminal emulator
mapw -t "$wid"

@ -1,45 +0,0 @@
#!/bin/bash
# any_term_dropdown.sh - turns any terminal into a dropdown terminal
# tutorial video: https://www.youtube.com/watch?v=mVw2gD9iiOg
# License GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt
# _ _ _ _
# __ _ ___ | |_| |__ | | ___| |_ _ _
# / _` |/ _ \| __| '_ \| |/ _ \ __| | | |
#| (_| | (_) | |_| |_) | | __/ |_| |_| |
# \__, |\___/ \__|_.__/|_|\___|\__|\__,_|
# |___/
# http://www.youtube.com/user/gotbletu
# https://twitter.com/gotbletu
# https://github.com/gotbletu
# requires:
# xdotool
# wmutils https://github.com/wmutils/core
# https://aur.archlinux.org/packages/wmutils-git/
# get screen resolution width and height
ROOT=$(lsw -r)
width=$(wattr w $ROOT)
height=$(wattr h $ROOT)
# option 1: set terminal emulator manually
# my_term=urxvt
# my_term=xterm
# my_term=terminator
# my_term=gnome-terminal
# option 2: auto detect terminal emulator (note: make sure to only open one)
my_term="urxvt|xterm|uxterm|termite|sakura|lxterminal|terminator|mate-terminal|pantheon-terminal|konsole|gnome-terminal|xfce4-terminal"
# get terminal emulator pid ex: 44040485
pid=$(xdotool search --class "$my_term" | tail -n1)
# get windows id from pid ex: 0x2a00125%
wid=$(printf 0x%x "$pid")
# maximize terminal emulator
wrs "$width" "$height" "$wid"
# toggle show/hide terminal emulator
mapw -t "$wid"

@ -0,0 +1,18 @@
#!/usr/bin/env sh
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: launch app(s) with fzf like dmenu/rofi
# DEPEND: fzf sed coreutils findutils xdg-utils util-linux
desktop_file() {
find /usr/share/applications -name "*.desktop" 2>/dev/null \
&& find /usr/local/share/applications -name "*.desktop" 2>/dev/null \
&& find "$HOME/.local/share/applications" -name "*.desktop" 2>/dev/null \
&& find /var/lib/flatpak/exports/share/applications -name "*.desktop" 2>/dev/null \
&& find "$HOME/.local/share/flatpak/exports/share/applications" -name "*.desktop" 2>/dev/null
}
selected="$(desktop_file | sed 's/.desktop//g' | sort | fzf -e -i -m --reverse --delimiter / --with-nth -1)"
[ -z "$selected" ] && exit
cd || return
echo "$selected" | while read -r line ; do setsid xdg-open "$line".desktop ; done

@ -0,0 +1,12 @@
#!/usr/bin/env sh
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: open surfraw bookmarks with your deafult web browser ($BROWSER)
# DEPEND: fzf surfraw grep gawk coreutils
# REQD: make sure to set your browser variable in your shellrc
# vim ~/.bashrc
# export BROWSER=chromium
selected="$(grep -E '^([[:alnum:]])' ~/.config/surfraw/bookmarks | sort -n | fzf -e -i -m --reverse | awk '{print $1}')"
[ -z "$selected" ] && exit
echo "$selected" | while read -r line ; do surfraw -browser="$BROWSER" "$line" ; done

@ -0,0 +1,12 @@
#!/usr/bin/env sh
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: open surfraw bookmarks with your deafult web browser private mode ($BROWSER_PRIVATE)
# DEPEND: fzf surfraw grep gawk coreutils util-linux
# REQD: make sure to set your private browser variable in your shellrc
# $EDITOR ~/.bashrc
# export BROWSER_PRIVATE="chromium --incognito"
selected="$(grep -E '^([[:alnum:]])' ~/.config/surfraw/bookmarks | sort -n | fzf -e -i -m --reverse | awk '{print $1}')"
[ -z "$selected" ] && exit
echo "$selected" | while read -r line ; do URL="$(surfraw -p "$line")" && setsid -f $BROWSER_PRIVATE "$URL" ; done

@ -0,0 +1,9 @@
#!/usr/bin/env sh
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: open only calibre ebooks
# DEPEND: fzf mlocate xdg-utils util-linux
selected="$(locate -ir 'calibre.*\.\(cbz\|cbr\|epub\|pdf\|mobi\|azw3\)$' | fzf -e -i -m --reverse --delimiter / --with-nth -4,-3,-2,-1)"
[ -z "$selected" ] && exit
echo "$selected" | while read -r line ; do setsid xdg-open "$line" ; done

@ -0,0 +1,32 @@
#!/usr/bin/env bash
# AUTHOR: Junegunn Choi (https://github.com/junegunn)
# DESC: open chromium web history
# DEPEND: fzf chromium
# REFF: https://junegunn.kr/2015/04/browsing-chrome-history-with-fzf/
# https://github.com/junegunn/fzf/wiki/examples#browsing-history
local cols sep
cols=$(( COLUMNS / 3 ))
sep='{::}'
# MacOS
# \cp -f ~/Library/Application\ Support/Google/Chrome/Default/History /tmp/h
# Linux
\cp -f ~/.config/chromium/Default/History /tmp/h
sqlite3 -separator $sep /tmp/h \
"select substr(title, 1, $cols), url
from urls order by last_visit_time desc" |
awk -F $sep '{printf "%-'$cols's \x1b[36m%s\x1b[m\n", $1, $2}' |
fzf --ansi --multi --reverse | sed 's#.*\(https*://\)#\1#' | xargs setsid xdg-open
# MacOS
# fzf --ansi --multi | sed 's#.*\(https*://\)#\1#' | xargs open
# selected="$(grep -E '^([[:alnum:]])' ~/.config/surfraw/bookmarks | sort -n | fzf -e -i -m | awk '{print $1}')"
# [ -z "$selected" ] && exit
# echo "$selected" | tr ' ' '\n' | while read -r line ; do surfraw -browser="$BROWSER" "$line" ; done

@ -0,0 +1,17 @@
#!/usr/bin/env sh
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: fuzzy find a song in cmus library and play
# DEPEND: fzf cmus coreutils
selected="$( sort ~/.cmus/lib.pl | fzf -e -i +s -m --reverse --delimiter / --with-nth -2,-1 )"
[ -z "$selected" ] && exit
# clear cmus queue
cmus-remote -c -q
# add songs
echo "$selected" | while read -r line ; do cmus-remote -q "$line" ; done
# play queued song
cmus-remote -n -p

@ -0,0 +1,2 @@
#!/usr/bin/env sh
cmus-remote --next

@ -0,0 +1,3 @@
#!/usr/bin/env sh
# toggle pause/play
cmus-remote --pause

@ -0,0 +1,2 @@
#!/usr/bin/env sh
cmus-remote --prev

@ -0,0 +1,2 @@
#!/usr/bin/env sh
cmus-remote --stop

File diff suppressed because it is too large Load Diff

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: copy from your clipboard history
# DEMO: https://www.youtube.com/watch?v=Vzt0tVNrJ0A
# DEPEND: fzf greenclip coreutils xsel (or tmux)
# REFF: https://github.com/erebe/greenclip
# NOTE: not good with multiline at the moment
selected="$(greenclip print | fzf -e -i --reverse)"
[ -z "$selected" ] && exit
printf "%s" "$selected" | xsel -b
printf "%s" "$selected" | tmux load-buffer -

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: locate files in home or media folder only
# DEMO: https://www.youtube.com/watch?v=AbveiTAymy0
# DEPEND: fzf mlocate xdg-utils util-linux
# REQD: # update system database
# sudo updatedb
#
# # optional: include external hdd or other mounted partition to be in the database
# 1. sudo vim /etc/updatedb.conf
# 2. Remove /media from PRUNEPATHS
# 3. sudo updatedb
selected="$(locate home media | fzf -e -i -m --reverse --delimiter / --with-nth -3,-2,-1)"
[ -z "$selected" ] && exit
echo "$selected" | while read -r line ; do setsid xdg-open "$line" ; done

@ -0,0 +1,3 @@
#!/usr/bin/env sh
# youtube viewer not using API
pipe-viewer

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: launch playonlinux programs (winehq)
# DEMO: https://www.youtube.com/watch?v=AbveiTAymy0
# DEPEND: fzf nohup playonlinux coreutils findutils
selected="$(find ~/.PlayOnLinux/shortcuts -type f -exec basename {} \; | fzf -e -i --reverse )"
[ -z "$selected" ] && exit
# nohup playonlinux --run "$selected" >/dev/null 2>&1 & disown
# setsid playonlinux --run "$selected" >/dev/null 2>&1 & disown
setsid playonlinux --run "$selected" >/dev/null & disown

@ -0,0 +1,8 @@
#!/bin/bash
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: locate a file and go to that directory with ranger file manager
# DEMO: https://www.youtube.com/watch?v=C64LKCZFzME
# DEPEND: ranger locate
ranger --cmd=fzf_locate

@ -0,0 +1,9 @@
#!/usr/bin/env sh
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: open a cheatsheet to read notes
# DEPEND: fzf findutils coreutils
selected="$(find ~/.config/redpill/ -type f | sort | fzf -e -i --reverse --delimiter / --with-nth -1 --preview 'cat {}')"
[ -z "$selected" ] && exit
"$EDITOR" "$selected"

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: copy text snippet to clipboard
# DEMO: https://www.youtube.com/watch?v=Zew0mgJwAh8
# DEPEND: fzf sed coreutils xsel (or tmux)
# sort, delete empty line, remove tags, leading and trailing spaces, also no newline
selected="$(sort -n ~/.snippetrc | sed '/^$/d' | fzf -e -i --reverse | sed -e s/\;\;\.\*\$// | sed 's/^[ \t]*//;s/[ \t]*$//' | tr -d '\n')"
[ -z "$selected" ] && exit
printf "%s" "$selected" | xsel -b
printf "%s" "$selected" | tmux load-buffer -

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: copy textblock to clipboard
# DEMO: https://www.youtube.com/watch?v=Zew0mgJwAh8
# DEPEND: fzf sed coreutils findutils (xsel or tmux)
selected="$(find ~/.multisnippet/ -type f | sort | fzf -e -i --reverse --delimiter / --with-nth -1 --preview 'cat {}')"
[ -z "$selected" ] && exit
# add to tmux and X11 clipboard
xsel -b < "$selected"
tmux load-buffer "$selected"

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: search internet from a list of search engines
# DEPEND: fzf surfraw grep gawk coreutils util-linux
# REQD: make sure to set your browser variable in your shellrc
# vim ~/.bashrc
# export BROWSER=chromium
# select your elvi
PREFIX=$(surfraw -elvi | grep -v 'LOCAL\|GLOBAL'| fzf -e -m --reverse | awk '{print $1}')
[ -z "$PREFIX" ] && exit
echo "Search Engine(s): $PREFIX" | tr '\n' ' '
echo
read -r -e -p "Enter Keywords: " INPUT
# Note: dont qoute $INPUT it will mess up results
echo "$PREFIX" | while read -r line; do setsid -f surfraw -browser="$BROWSER" "$line" $INPUT ; done

@ -0,0 +1,19 @@
#!/usr/bin/env bash
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: search internet from a list of search engines (private/incognito mode)
# DEPEND: fzf surfraw grep gawk coreutils util-linux
# REQD: make sure to set your private browser variable in your shellrc
# vim ~/.bashrc
# export BROWSER_PRIVATE="chromium --incognito"
# select your elvi
PREFIX=$(surfraw -elvi | grep -v 'LOCAL\|GLOBAL'| fzf -e -m --reverse | awk '{print $1}')
[ -z "$PREFIX" ] && exit
echo "Search Engine(s): $PREFIX" | tr '\n' ' '
echo
read -r -e -p "[Private Mode] Enter Keywords: " INPUT
# workaround: surfraw does not like multiple flags in -browser option
# e.g surfraw -browser="chromium --incognito" "$PREFIX" $INPUT
echo "$PREFIX" | while read -r line; do URL="$(surfraw -p "$line" $INPUT)" && setsid -f $BROWSER_PRIVATE "$URL" ; done

@ -0,0 +1,17 @@
#!/usr/bin/env sh
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: launch other fzf scripts
# DEMO: https://youtu.be/8SqakfCSzQk
# DEPEND: fzf grep findutils coreutils
# REFF: Xterm config https://www.youtube.com/watch?v=mAUQsNUnk9I
# Hotkey Binding Examples ~/.xbindkeysrc
# "xterm -T fzf-nova -geometry 90x25+350+200 -fs 16 -e /path/to/script/fzf-nova"
# Mod4+space
#
# "alacritty -t fzf-nova --dimensions 90 20 --position 350 200 -e /path/to/script/fzf-nova"
# Mod4+space
DIR="${0%/*}"
"$DIR"/"$(find "$DIR" -type f -exec basename {} \; | grep '^_' | sort | fzf -e -i --delimiter _ --with-nth='2..' --reverse --prompt="fzf-nova: ")"

@ -16,11 +16,20 @@
### Date : 20190626
### Description : menu interface to mount, unmount, eject, clone, exactcopy, format, LUKS encryption
### Depends On : bash sudo grep gawk coreutils udisks2 util-linux
### gptfdisk dosfstools ntfs-3g hfsprogs exfat-utils e2fsprogs
### gptfdisk dosfstools ntfs-3g hfsprogs exfatprogs e2fsprogs
### cryptsetup clonezilla partclone partimage vlc cdw f3 smartmontools
### dvdbackup libdvdread libdvdcss cdrdao cdrtools(or cdrkit)
### Video Demo : https://www.youtube.com/watch?v=jipILuNW5Ks
### 2021-01-16 : change to exfatprogs, exFAT 32KB or 64KB cluster
# Next improvements: 1) delete MBR on format https://www.cyberciti.biz/faq/linux-clearing-out-master-boot-record-dd-command/
# clear out leftover label and fstype
# $ sudo dd if=/dev/zero of=/dev/sdX bs=446 count=1
# 2) blinking text warning
#-------- Bash Color Code {{{
#------------------------------------------------------
# DESC: color code for bash compatible shell
@ -399,6 +408,112 @@ format2usb-exfat() {
rmdir -v /tmp/testmount
}
format2usb-exfat-32kbcluster() {
if [ $# -lt 2 ]; then
echo -e "format and create a partition that fills up the whole device"
echo -e "exFAT label max is 15 character and is all uppercase"
echo -e "\nUsage: $0 <label> <device>"
echo -e "Example: $0 MY_USB sdx"
return 1
fi
# exFat likes the labels to be in uppercase
DEVICE_LABEL=$(echo "$1" | tr '[:lower:]' '[:upper:]')
DEVICE_NAME="$2"
echo -e "${Yellow}>>>Checking if device is mounted ${Color_Off}"
MOUNT_STATUS=$(mount | grep /dev/"$DEVICE_NAME" | wc -l)
if [ "$MOUNT_STATUS" -ne 0 ]
then
lsblk -o "NAME,SIZE,FSTYPE,TYPE,LABEL,MOUNTPOINT,UUID" | grep "$DEVICE_NAME"
echo -e "${Red}>>>/dev/$DEVICE_NAME is mounted. You have to unmount the device and all of its partitions then try again ${Color_Off}"
return 1
fi
echo -e "${Yellow}>>>Please double check the device you are about to FORMAT ${Color_Off}"
lsblk -o "NAME,SIZE,FSTYPE,TYPE,LABEL,MOUNTPOINT,UUID" | grep --color -E "$2|$"
echo -ne "${Red}>>>WARNING: You are about to FORMAT a device at /dev/$DEVICE_NAME. Do you want to continue? [y/n] ${Color_Off}"
read REPLY
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo -e "${Green}>>>You chose to continue ${Color_Off}"
else
return 1
fi
echo -e "${Red}>>>Delete any existing partition then create a new single partition ${Color_Off}"
echo -e "d\n\nd\n\nd\n\nd\n\nd\n\nd\n\nd\n\nd\n\no\nn\np\n1\n\n\nt\n7\nw" | sudo fdisk /dev/"$DEVICE_NAME"
# delete partiton x8 using d\n\n
# d delete a partition
# default, partition
# o create a new empty DOS partition table
# n add a new partition
# p print the partition table
# 1 partition number 1
# default, start immediately after preceding partition
# default, extend partition to end of disk
# t change a partition type (L to list all types)
# 7 HPFS/NTFS/exFAT
# w write table to disk and exit
echo -e "${Red}>>>Formatting the device ${Color_Off}"
sudo mkfs.exfat -c 32K -n "$DEVICE_LABEL" /dev/"$DEVICE_NAME"1
echo -e "${Red}>>>Changing permission of the filesystem ${Color_Off}"
mkdir -p -v /tmp/testmount
sudo mount /dev/"$DEVICE_NAME"1 /tmp/testmount
sudo chmod -R 777 /tmp/testmount
sudo umount /tmp/testmount
rmdir -v /tmp/testmount
}
format2usb-exfat-64kbcluster() {
if [ $# -lt 2 ]; then
echo -e "format and create a partition that fills up the whole device"
echo -e "exFAT label max is 15 character and is all uppercase"
echo -e "\nUsage: $0 <label> <device>"
echo -e "Example: $0 MY_USB sdx"
return 1
fi
# exFat likes the labels to be in uppercase
DEVICE_LABEL=$(echo "$1" | tr '[:lower:]' '[:upper:]')
DEVICE_NAME="$2"
echo -e "${Yellow}>>>Checking if device is mounted ${Color_Off}"
MOUNT_STATUS=$(mount | grep /dev/"$DEVICE_NAME" | wc -l)
if [ "$MOUNT_STATUS" -ne 0 ]
then
lsblk -o "NAME,SIZE,FSTYPE,TYPE,LABEL,MOUNTPOINT,UUID" | grep "$DEVICE_NAME"
echo -e "${Red}>>>/dev/$DEVICE_NAME is mounted. You have to unmount the device and all of its partitions then try again ${Color_Off}"
return 1
fi
echo -e "${Yellow}>>>Please double check the device you are about to FORMAT ${Color_Off}"
lsblk -o "NAME,SIZE,FSTYPE,TYPE,LABEL,MOUNTPOINT,UUID" | grep --color -E "$2|$"
echo -ne "${Red}>>>WARNING: You are about to FORMAT a device at /dev/$DEVICE_NAME. Do you want to continue? [y/n] ${Color_Off}"
read REPLY
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo -e "${Green}>>>You chose to continue ${Color_Off}"
else
return 1
fi
echo -e "${Red}>>>Delete any existing partition then create a new single partition ${Color_Off}"
echo -e "d\n\nd\n\nd\n\nd\n\nd\n\nd\n\nd\n\nd\n\no\nn\np\n1\n\n\nt\n7\nw" | sudo fdisk /dev/"$DEVICE_NAME"
# delete partiton x8 using d\n\n
# d delete a partition
# default, partition
# o create a new empty DOS partition table
# n add a new partition
# p print the partition table
# 1 partition number 1
# default, start immediately after preceding partition
# default, extend partition to end of disk
# t change a partition type (L to list all types)
# 7 HPFS/NTFS/exFAT
# w write table to disk and exit
echo -e "${Red}>>>Formatting the device ${Color_Off}"
sudo mkfs.exfat -c 64K -n "$DEVICE_LABEL" /dev/"$DEVICE_NAME"1
echo -e "${Red}>>>Changing permission of the filesystem ${Color_Off}"
mkdir -p -v /tmp/testmount
sudo mount /dev/"$DEVICE_NAME"1 /tmp/testmount
sudo chmod -R 777 /tmp/testmount
sudo umount /tmp/testmount
rmdir -v /tmp/testmount
}
format2usb-fat16() {
if [ $# -lt 2 ]; then
echo -e "format and create a partition that fills up the whole device"
@ -1326,6 +1441,7 @@ main_list() {
MENU_FORMATDEVICE="
,${Green}m2|m3|m4|mx|mn|mh${Color_Off}, FORMAT MBR:, ext2 <=> ext3 <=> ext4 <=> exfat <=> ntfs <=> hfs+
,${Green}mt|mf|c3|c6${Color_Off}, FORMAT MBR:, fat16 <=> fat32 <=> fat32-32KB <=> fat32-64KB
,${Green}x3|x6${Color_Off}, FORMAT MBR:, exfat-32KB <=> exfat-64KB
,${Green}g2|g3|g4|gx|gn${Color_Off}, FORMAT GPT:, ext2 <=> ext3 <=> ext4 <=> exfat <=> ntfs
,${Green}l2|l3|l4${Color_Off}, FORMAT LUKS:, ext2 <=> ext3 <=> ext4
,${Green}cd|rd|cp|rp${Color_Off}, CLONING:, clone drive <=> restore drive <=> clone part <=> restore part
@ -1345,14 +1461,15 @@ HELP="
${Green}mountjutsu${Color_Off}: simple menu to mount, unmount, format, eject, restore, clone drives and many other features.
dependencies: bash sudo grep gawk coreutils udisks2 util-linux
gptfdisk dosfstools ntfs-3g hfsprogs exfat-utils e2fsprogs
gptfdisk dosfstools ntfs-3g hfsprogs exfatprogs e2fsprogs
cryptsetup clonezilla partclone partimage vlc cdw f3 smartmontools
dvdbackup libdvdread libdvdcss cdrdao cdrtools(or cdrkit)
FORMAT MBR: format drive ${Red}[util-linux dosfstools exfat-utils e2fsprogs ntfs-3g hfsprogs]${Color_Off}
- FAT32 32KB Cluster (Wii, Gamecube, 3DS ...etc)
FORMAT MBR: format drive ${Red}[util-linux dosfstools exfatprogs e2fsprogs ntfs-3g hfsprogs]${Color_Off}
- FAT32 32KB Cluster (Wii, Gamecube, 3DS/DS/DSi/R4Card ...etc)
- exFAT 64KB Cluster (PSVita/PSTV)
- HFS+ (Mac OSX non-journal HFS+. Linux can write in HFS+ non-journaling mode only)
FORMAT GPT: format drive GREATER THAN 2TB ${Red}[gptfdisk exfat-utils e2fsprogs ntfs-3g]${Color_Off}
FORMAT GPT: format drive GREATER THAN 2TB ${Red}[gptfdisk exfatprogs e2fsprogs ntfs-3g]${Color_Off}
FORMAT LUKS: setup encryption and password, formats to different file systems ${Red}[cryptsetup e2fsprogs]${Color_Off}
CLONING: clone/restore drive or partition image ${Red}[clonezilla partclone partimage ntfs-3g coreutils]${Color_Off}
EXACT COPY DVDMovie: backup dvdmovie to ISO and bypass disc protection ${Red}[dvdbackup libdvdread libdvdcss]${Color_Off}
@ -1362,7 +1479,7 @@ HELP="
BURNING: CD/DVD/ISO Ncurses Burning Tool ${Red}[cdw]${Color_Off}
HDD HEALTH: display info, enable or disable S.M.A.R.T ${Red}[smartmontools]${Color_Off}
HDD TEST: run a S.M.A.R.T test to check for Hard Drive Failures ${Red}[smartmontools]${Color_Off}
HDD STATS: show progress of S.M.A.R.T test. keep Hard Drive alive from entering sleep mode${Red}[smartmontools]${Color_Off}
HDD STATS: show progress of S.M.A.R.T test. keep Hard Drive alive from entering sleep mode ${Red}[smartmontools]${Color_Off}
MOUNTING: mount, unmount devices ${Red}[udisks2]${Color_Off}
EJECTING: unmount and eject devices, toggle disc tray ${Red}[udisks2 util-linux]${Color_Off}
PLAYBACK: play dvdmovie or audiocd (using cvlc and nvlc) ${Red}[vlc]${Color_Off}
@ -1504,6 +1621,22 @@ while true; do
format2usb-fat32-32kbcluster "$LABELNAME" "$DEVICE"
read -rsp $'Press any key to return to main menu\n' -n1 key
;;
x6)
echo -n "Which device do you want to format to exFAT 64KB Cluster MBR? (e.g sdx): "
read DEVICE
echo -n "What label name do you want to assign to $DEVICE ? (11 char): "
read LABELNAME
format2usb-exfat-64kbcluster "$LABELNAME" "$DEVICE"
read -rsp $'Press any key to return to main menu\n' -n1 key
;;
x3)
echo -n "Which device do you want to format to exFAT 32KB Cluster MBR? (e.g sdx): "
read DEVICE
echo -n "What label name do you want to assign to $DEVICE ? (11 char): "
read LABELNAME
format2usb-exfat-32kbcluster "$LABELNAME" "$DEVICE"
read -rsp $'Press any key to return to main menu\n' -n1 key
;;
mt)
echo -n "Which device do you want to format to FAT16 MBR? (e.g sdx): "
read DEVICE

Loading…
Cancel
Save