summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2022-06-16 21:09:27 -0400
committerSam Chudnick <sam@chudnick.com>2022-06-16 21:09:27 -0400
commit6b0dadd3b736655836a40fe458268c615020f5bb (patch)
tree2542c726381ce56f451b808ad2d4470129701c5a
parent04e21f7a1d0f699e4e16fa4cfde04076520e2ff4 (diff)
Fixed statusbar script right-click actions
Fixed right-click actions in all scripts that had paths pointing to old script location.
-rwxr-xr-x.local/bin/statusbar/bar-cpu4
-rwxr-xr-x.local/bin/statusbar/bar-ipv42
-rwxr-xr-x.local/bin/statusbar/bar-memory2
-rwxr-xr-x.local/bin/statusbar/bar-storage4
-rwxr-xr-x.local/bin/statusbar/bar-time2
-rwxr-xr-x.local/bin/statusbar/bar-volume2
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 @@
1#!/bin/sh 1#!/bin/sh
2case $BUTTON in 2case $BUTTON in
3 1) notify-send "$(ps axc -o cmd:15,%cpu --sort=-%cpu | head -6)";; 3 1) notify-send "$(ps axc -o cmd:15,%cpu --sort=-%cpu | head -6)";;
4 3) urxvt -e vim ~/.local/bin/statusbar/cpu 4 3) urxvt -e vim ~/.local/bin/statusbar/bar-cpu
5esac 5esac
6mpstat 1 1 | awk '/Average/ { printf "%.2f% ",100-$12 }' 6mpstat 1 1 | awk '/Average/ { printf "%.2f ",100-$12 }'
7temp="$(sensors | awk '/Tctl/ { print $2 } ')"; echo -n ${temp#+} 7temp="$(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 @@
2 2
3case $BUTTON in 3case $BUTTON in
4 1)notify-send --expire-time=60000 "IP Addresses" "$(ip a | awk '/\/24|\/64/ {if($5=="temporary")print $2 " " $5;else print $2;}')";; 4 1)notify-send --expire-time=60000 "IP Addresses" "$(ip a | awk '/\/24|\/64/ {if($5=="temporary")print $2 " " $5;else print $2;}')";;
5 3)urxvt -e ~/.local/bin/statusbar/ipv4 5 3)urxvt -e ~/.local/bin/statusbar/bar-ipv4
6esac 6esac
7ip a | awk '/\/24/ { print $2 }' | cut -d '/' -f 1 7ip a | awk '/\/24/ { print $2 }' | cut -d '/' -f 1
8 8
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 @@
2 2
3case $BUTTON in 3case $BUTTON in
4 1)notify-send "$(ps axc -o cmd:15,%mem --sort=-%mem | head -6)";; 4 1)notify-send "$(ps axc -o cmd:15,%mem --sort=-%mem | head -6)";;
5 3)urxvt -e vim ~/.local/bin/statusbar/memory 5 3)urxvt -e vim ~/.local/bin/statusbar/bar-memory
6esac 6esac
7free --si -h | grep Mem | awk '{ print $3 "/" $2 }' 7free --si -h | grep Mem | awk '{ print $3 "/" $2 }'
8 8
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 @@
1#!/bin/sh 1#!/bin/sh
2 2
3case $BUTTON in 3case $BUTTON in
4 1)notify-send "$(df -H | grep "Filesystem\|/dev/sd")";; 4 1)notify-send "$(df -H | grep "Filesystem\|/dev/sd\|/dev/mapper")";;
5 3)urxvt -e vim ~/.local/bin/statusbar/storage 5 3)urxvt -e vim ~/.local/bin/statusbar/storage
6esac 6esac
7df -H | awk '/\/home/ { print $4 }' 7df -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 @@
2 2
3case $BUTTON in 3case $BUTTON in
4 1)notify-send "$(ncal -hb)";; 4 1)notify-send "$(ncal -hb)";;
5 3)urxvt -e vim ~/.local/bin/statusbar/time 5 3)urxvt -e vim ~/.local/bin/statusbar/bar-time
6esac 6esac
7date +"%r %A %D" 7date +"%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 @@
3 3
4case $BUTTON in 4case $BUTTON in
5 1)urxvt -e alsamixer;; 5 1)urxvt -e alsamixer;;
6 3)urxvt -e vim ~/.local/bin/statusbar/volume;; 6 3)urxvt -e vim ~/.local/bin/statusbar/bar-volume;;
7 4)amixer -q sset Master 1%+ unmute;; 7 4)amixer -q sset Master 1%+ unmute;;
8 5)amixer -q sset Master 1%- unmute;; 8 5)amixer -q sset Master 1%- unmute;;
9esac 9esac