aboutsummaryrefslogtreecommitdiff
path: root/scripts/unmount-usb
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-02-07 11:45:03 +0100
committerMateja <mail@matejamaric.com>2021-02-07 11:45:03 +0100
commitb477ab4923f88c90c655a9540ddafcc98ebdfd8c (patch)
tree7ced856805bdb1518fb14a43b748ee1f96b3b278 /scripts/unmount-usb
parent5d0c80a46c76dd1712f274ff6ddce05526253983 (diff)
downloaddotfiles-b477ab4923f88c90c655a9540ddafcc98ebdfd8c.tar.gz
dotfiles-b477ab4923f88c90c655a9540ddafcc98ebdfd8c.zip
Move and rename scripts.
Diffstat (limited to 'scripts/unmount-usb')
-rwxr-xr-xscripts/unmount-usb11
1 files changed, 0 insertions, 11 deletions
diff --git a/scripts/unmount-usb b/scripts/unmount-usb
deleted file mode 100755
index c90dde4..0000000
--- a/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