first collection of useful scripts

This commit is contained in:
shockrahwow committed 2019-05-15 01:51:58 -07:00
commit 57dfb50219
13 files changed
+51

No files matched your search

Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
# Mounting script for usb drives for use in dmenu
mountable=$(lsblk -lp | grep "part $" | awk '{print $1, $4 }')
[ -z "$mountable" ] && exit 0
usb=$(echo "$mountable" |\
dmenu -i -l 5 -p "Which usb drive should we mount?" |\
awk '{print $1}')
mount $(basename $usb) ~/.mntpts/$(basename $usb)