From 36609eee67c26c908f2b81fa7b9b4923887aaf56 Mon Sep 17 00:00:00 2001 From: farkadi Date: Tue, 27 Aug 2024 22:57:55 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=83=D1=82=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bin/rofi-usb-mount.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bin/rofi-usb-mount.sh b/.bin/rofi-usb-mount.sh index c006a30..f1853e6 100755 --- a/.bin/rofi-usb-mount.sh +++ b/.bin/rofi-usb-mount.sh @@ -16,13 +16,13 @@ usbcheck(){ \ } mountusb(){ \ - chosen=$(echo "$usbdrives" | rofi -dmenu -theme ~/.config/bspwm/themes/mytheme/rofi/menu.rasi -show run -lines 5 -opacity "85" -bw 0 -width 30 -padding 20 -i -p "Mount which drive?" | awk '{print $1}') + chosen=$(echo "$usbdrives" | rofi -dmenu -theme ~/.config/rofi/menu.rasi -show run -lines 5 -opacity "85" -bw 0 -width 30 -padding 20 -i -p "Mount which drive?" | awk '{print $1}') mountpoint=$(udisksctl mount --no-user-interaction -b "$chosen" 2>/dev/null) && notify-send "💻 USB mounting" "$chosen mounted to $mountpoint" && exit 0 } umountusb(){ \ - chosen=$(echo "$mounteddrives" | rofi -dmenu -theme ~/.config/bspwm/themes/mytheme/rofi/menu.rasi -show run -lines 5 -opacity "85" -bw 0 -width 30 -padding 20 -i -p "Unmount which drive?" | awk '{print $1}') + chosen=$(echo "$mounteddrives" | rofi -dmenu -theme ~/.config/rofi/menu.rasi -show run -lines 5 -opacity "85" -bw 0 -width 30 -padding 20 -i -p "Unmount which drive?" | awk '{print $1}') mountpoint=$(udisksctl unmount --no-user-interaction -b "$chosen" 2>/dev/null) && notify-send "💻 USB unmounting" "$chosen mounted" && exit 0 udisksctl power-off --no-user-interaction -b "$chosen" }