From b95adef425e3dab8abd0f9cff73dca1eb049b075 Mon Sep 17 00:00:00 2001 From: Mateja Date: Wed, 25 Nov 2020 23:06:42 +0100 Subject: programs now managed by debian-setup --- stuff/scripts/unmount-usb | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100755 stuff/scripts/unmount-usb (limited to 'stuff/scripts/unmount-usb') diff --git a/stuff/scripts/unmount-usb b/stuff/scripts/unmount-usb deleted file mode 100755 index c90dde4..0000000 --- a/stuff/scripts/unmount-usb +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -options=$(lsblk | grep /media/$USER | rev | cut -d ' ' -f 1 | rev) -[ -n "$options" ] && opt_num=$(echo "$options" | wc -l) || opt_num=0 -if [ $opt_num == 0 ]; then - notify-send "Nothing mounted!" -elif [ $opt_num == 1 ]; then - udiskie-umount "$options" -else - unmount_device=$(echo "$options" | dmenu -p "What device you want to unmount?") - [[ ! -z "$unmount_device" ]] && udiskie-umount "$unmount_device" -fi -- cgit v1.2.3