From 6b0dadd3b736655836a40fe458268c615020f5bb Mon Sep 17 00:00:00 2001
From: Sam Chudnick <sam@chudnick.com>
Date: Thu, 16 Jun 2022 21:09:27 -0400
Subject: Fixed statusbar script right-click actions

Fixed right-click actions in all scripts that had paths pointing to old
script location.
---
 .local/bin/statusbar/bar-cpu     | 4 ++--
 .local/bin/statusbar/bar-ipv4    | 2 +-
 .local/bin/statusbar/bar-memory  | 2 +-
 .local/bin/statusbar/bar-storage | 4 ++--
 .local/bin/statusbar/bar-time    | 2 +-
 .local/bin/statusbar/bar-volume  | 2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.local/bin/statusbar/bar-cpu b/.local/bin/statusbar/bar-cpu
index c21fe20..46f832b 100755
--- a/.local/bin/statusbar/bar-cpu
+++ b/.local/bin/statusbar/bar-cpu
@@ -1,7 +1,7 @@
 #!/bin/sh
 case $BUTTON in
 	1) notify-send "$(ps axc -o cmd:15,%cpu --sort=-%cpu | head -6)";;
-	3) urxvt -e vim ~/.local/bin/statusbar/cpu
+	3) urxvt -e vim ~/.local/bin/statusbar/bar-cpu
 esac
-mpstat 1 1 | awk '/Average/ { printf "%.2f% ",100-$12 }' 
+mpstat 1 1 | awk '/Average/ { printf "%.2f ",100-$12 }' 
 temp="$(sensors | awk '/Tctl/ { print $2 } ')"; echo -n ${temp#+}
diff --git a/.local/bin/statusbar/bar-ipv4 b/.local/bin/statusbar/bar-ipv4
index 4e51eca..85999bc 100755
--- a/.local/bin/statusbar/bar-ipv4
+++ b/.local/bin/statusbar/bar-ipv4
@@ -2,7 +2,7 @@
 
 case $BUTTON in
 	1)notify-send --expire-time=60000 "IP Addresses" "$(ip a | awk '/\/24|\/64/ {if($5=="temporary")print $2 " " $5;else print $2;}')";;
-	3)urxvt -e ~/.local/bin/statusbar/ipv4
+	3)urxvt -e ~/.local/bin/statusbar/bar-ipv4
 esac
 ip a | awk '/\/24/ { print $2 }' | cut -d '/' -f 1
 
diff --git a/.local/bin/statusbar/bar-memory b/.local/bin/statusbar/bar-memory
index 1e98cca..44a8ed3 100755
--- a/.local/bin/statusbar/bar-memory
+++ b/.local/bin/statusbar/bar-memory
@@ -2,7 +2,7 @@
 
 case $BUTTON in
 	1)notify-send "$(ps axc -o cmd:15,%mem --sort=-%mem | head -6)";;
-	3)urxvt -e vim ~/.local/bin/statusbar/memory 
+	3)urxvt -e vim ~/.local/bin/statusbar/bar-memory 
 esac
 free --si -h | grep Mem | awk '{ print $3 "/" $2 }'
 
diff --git a/.local/bin/statusbar/bar-storage b/.local/bin/statusbar/bar-storage
index d7b5fcf..a162834 100755
--- a/.local/bin/statusbar/bar-storage
+++ b/.local/bin/statusbar/bar-storage
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 case $BUTTON in
-	1)notify-send "$(df -H  | grep "Filesystem\|/dev/sd")";;
+	1)notify-send "$(df -H  | grep "Filesystem\|/dev/sd\|/dev/mapper")";;
 	3)urxvt -e vim ~/.local/bin/statusbar/storage
 esac
-df -H | awk '/\/home/ { print $4 }'
+df -H | awk '/\/$/ { print $4 }'
diff --git a/.local/bin/statusbar/bar-time b/.local/bin/statusbar/bar-time
index f61a268..781ba8f 100755
--- a/.local/bin/statusbar/bar-time
+++ b/.local/bin/statusbar/bar-time
@@ -2,6 +2,6 @@
 
 case $BUTTON in
 	1)notify-send "$(ncal -hb)";;
-	3)urxvt -e vim ~/.local/bin/statusbar/time
+	3)urxvt -e vim ~/.local/bin/statusbar/bar-time
 esac
 date +"%r %A %D"
diff --git a/.local/bin/statusbar/bar-volume b/.local/bin/statusbar/bar-volume
index d9bcc9d..b67c6ca 100755
--- a/.local/bin/statusbar/bar-volume
+++ b/.local/bin/statusbar/bar-volume
@@ -3,7 +3,7 @@
 
 case $BUTTON in
 	1)urxvt -e alsamixer;;
-	3)urxvt -e vim ~/.local/bin/statusbar/volume;;
+	3)urxvt -e vim ~/.local/bin/statusbar/bar-volume;;
 	4)amixer -q sset Master 1%+ unmute;;
 	5)amixer -q sset Master 1%- unmute;;
 esac
-- 
cgit v1.2.3