summaryrefslogtreecommitdiff
path: root/keyboard/mnt
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2022-01-20 17:07:39 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2022-01-20 17:07:39 -0600
commit1ffe58f3ee6eeb2d81729eb7c458a8979eb2df68 (patch)
treeabf5bd1cfa67232bc349174135814e316be3de3b /keyboard/mnt
parent32d34ac9c5e3b682800f65f24743f2f29af04347 (diff)
downloadscripts-1ffe58f3ee6eeb2d81729eb7c458a8979eb2df68.tar.xz
scripts-1ffe58f3ee6eeb2d81729eb7c458a8979eb2df68.zip
moved many scripts around, small tweaks/rewrites, mounter verify xsudo and xclick scripts
Diffstat (limited to 'keyboard/mnt')
-rwxr-xr-xkeyboard/mnt11
1 files changed, 0 insertions, 11 deletions
diff --git a/keyboard/mnt b/keyboard/mnt
deleted file mode 100755
index 7547912..0000000
--- a/keyboard/mnt
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-# '/part\s*$\|rom\s*$/!d; s/\s*[^[:space:]]*\s*$/\)/; s/\s/ \(/' # More correct in my opinion, but slower
-if partition=`lsblk -npro "name,size,type,mountpoint" | sed '/part $\|rom $/!d; s/ [a-z]* $/\)/; s/ / \(/' | dmenu -p "Choose drive to mount: " | cut -d' ' -f1` \
-&& [ -n "$partition" ] \
-&& mountpoint=`ls -d /media/mnt/slot*/ | dmenu -p "Choose mountpoint: "` \
-&& [ -n "$mountpoint" ]
-then
- doas mount "$partition" "$mountpoint"; user="$(whoami)"; ug="$(groups | cut -d' ' -f1)"; doas chown "$user":"$ug" "$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