From d64d2ab3b7c999f5b7292433b039b60bc50a2424 Mon Sep 17 00:00:00 2001 From: Mateja Date: Tue, 25 Aug 2020 22:06:45 +0200 Subject: stopped using rofi --- programs | 1 - stuff/scripts/unmount-usb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/programs b/programs index a878998..cdc57a9 100644 --- a/programs +++ b/programs @@ -9,7 +9,6 @@ picom feh dmenu -rofi termite ttf-inconsolata xorg-xinit diff --git a/stuff/scripts/unmount-usb b/stuff/scripts/unmount-usb index f195317..dfcb078 100755 --- a/stuff/scripts/unmount-usb +++ b/stuff/scripts/unmount-usb @@ -6,6 +6,6 @@ if [ $opt_num == 0 ]; then elif [ $opt_num == 1 ]; then udiskie-umount "$options" else - unmount_device=$(echo "$options" | rofi -dmenu -p "What device you want to unmount?") - udiskie-umount "$unmount_device" + unmount_device=$(echo "$options" | dmenu -p "What device you want to unmount?") + [[ ! -z "$unmount_device" ]] && udiskie-umount "$unmount_device" fi -- cgit v1.2.3