From 1ffe58f3ee6eeb2d81729eb7c458a8979eb2df68 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Thu, 20 Jan 2022 17:07:39 -0600 Subject: moved many scripts around, small tweaks/rewrites, mounter verify xsudo and xclick scripts --- old/umnt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 old/umnt (limited to 'old/umnt') diff --git a/old/umnt b/old/umnt new file mode 100755 index 0000000..8191047 --- /dev/null +++ b/old/umnt @@ -0,0 +1,8 @@ +#!/bin/sh +exclude='\/efi$|\/boot$|\/home$|tbhdd$|\/$' +if mountedpartition=`lsblk --noheadings --paths --raw | awk "/part .+/ && !/$exclude/ "'{ print $1, "(on", $7 ")" }' | dmenu -p "Unmount Device... "` +then + doas umount -A "`echo $mountedpartition | sed 's/ .*//'`" \ + && notify-send --urgency low "Device Successfully Unmounted" "Partition \"$mountedpartition\" successfully unmounted" --time 120000 \ + || notify-send --urgency low "Error Unmounting Device" "Could not unmount partition \"$mountedpartition\"" +fi -- cgit v1.2.3