From eceb0c921b39bb5ff9fcfcdaa70da3f4eee3e46c Mon Sep 17 00:00:00 2001 From: David Date: Sun, 6 Sep 2020 21:49:21 +0200 Subject: [PATCH] fix: fix dmenu(u)mount emoticons --- .local/bin/dmenumount | 4 ++-- .local/bin/dmenuumount | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount index 8afbd58..10545fc 100755 --- a/.local/bin/dmenumount +++ b/.local/bin/dmenumount @@ -31,13 +31,13 @@ mountusb() { \ *) sudo -A mount "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" "$mp";; esac - notify-send "禍 USB mounting" "$chosen mounted to $mp." + notify-send " USB mounting" "$chosen mounted to $mp." } usbdrives="$(lsblk -rpo "name,type,size,mountpoint" | awk '$2=="part"&&$4==""{printf "%s (%s)\n",$1,$3}')" if [ -z "$usbdrives" ]; then - notify-send -u "critical" -t 3000 "禍 USB ERROR" "No drive to mount." + notify-send -u "critical" -t 3000 " USB ERROR" "No drive to mount." else notify-send "USB drive(s) detected." mountusb diff --git a/.local/bin/dmenuumount b/.local/bin/dmenuumount index 5ad54a9..4262094 100755 --- a/.local/bin/dmenuumount +++ b/.local/bin/dmenuumount @@ -16,9 +16,9 @@ if [ -z "$chosen" ]; then exit else if sudo -A umount "$chosen" ; then - notify-send "禍 USB unmounting" "$chosen unmounted." + notify-send " USB unmounting" "$chosen unmounted." else - notify-send -u "critical" -t 3000 "禍 USB ERROR" "Unmounting failed." + notify-send -u "critical" -t 3000 " USB ERROR" "Unmounting failed." fi fi } @@ -27,7 +27,7 @@ usbdrives=$(lsblk -nrpo "name,type,size,mountpoint" | awk \ '$2=="part"&&$4!~/\/efi|\/home$|SWAP/&&length($4)>1{printf "%s (%s)\n",$4,$3}') if [ -z "$usbdrives" ]; then - notify-send -u "critical" -t 3000 "禍 USB ERROR" "No drive to unmount." + notify-send -u "critical" -t 3000 " USB ERROR" "No drive to unmount." else unmountusb fi