From 0a9053c2902adab8b94eaacdb15390441143078c Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 11 Sep 2021 00:36:13 -0500 Subject: redid repo cus of fucking chromium rip old commit messages --- keyboard/mnt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 keyboard/mnt (limited to 'keyboard/mnt') diff --git a/keyboard/mnt b/keyboard/mnt new file mode 100755 index 0000000..5f82aa4 --- /dev/null +++ b/keyboard/mnt @@ -0,0 +1,10 @@ +#!/bin/sh +if partition=`lsblk --noheadings --paths --raw | awk '/part $/ { print $1, "(" $4 ")" }' | dmenu -p "Choose drive to mount: " | sed 's/ .*//'` \ +&& [ -n "$partition" ] \ +&& mountpoint=`ls --directory /media/mnt/*/ | dmenu -p "Choose mountpoint: "` \ +&& [ -n "$mountpoint" ] +then + doas mount "$partition" "$mountpoint" \ + && notify-send --urgency low "Device Successfully Mounted" "Successfully Mounted partition \"$partition\" to mountpoint \"$mountpoint\"" \ + || notify-send --urgency low "Error Mounting Device" "Could not mount partition \"$partition\" to mountpoint \"$mountpoint\"" +fi -- cgit v1.2.3