- moved system scripts to here

- config changes
- fixed my backup scripts. rsync -a
- added dmenu script
- fixed finds in env.sh
This commit is contained in:
2025-06-30 00:05:45 -05:00
parent 22b2eb9a95
commit b95ae4c5c9
8 changed files with 51 additions and 22 deletions

35
env/.local/bin/scripts/dmount vendored Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
sudo="sudo"
[ doas ] && sudo="doas"
umo=0
while getopts "u" opt; do
case "$opt" in
u) umo=1
;;
esac
done
shift $((OPTIND-1))
[ "${1:-}" = "--" ] && shift
if [ $umo == 1 ]; then
nf=4
else
nf=3
fi
parts="$(lsblk -rno path,size,type,mountpoint | grep -e part -e lvm | awk "NF==$nf {print \$1, \$2, \$3, \$4}")"
# choice="$(printf "$parts" | rofi -dmenu "beans" | sed 's/ .*//')"
choice="$(printf "$parts" | fzf | sed 's/ .*//')"
[ "$choice" == "" ] && exit 0
if [ $umo == 1 ]; then
$sudo umount $choice
else
$sudo mount $choice ~/u
fi