summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-09 21:21:48 -0600
committerzachir <zachir@librem.one>2023-02-09 21:21:48 -0600
commit0b921ed49b9f0c170bed444570d91e2d9901483b (patch)
tree6dac5fbe2be0bf88b875a3bc456ff777909fb3ba
parent91e4799fedf9dbff384003b8c2eaea039cb57327 (diff)
fix /sbin/sh to /bin/shHEADmaster
-rwxr-xr-xbattery2
-rwxr-xr-xclock2
-rwxr-xr-xcpu2
-rwxr-xr-xdisk2
-rwxr-xr-xinternet2
-rwxr-xr-xmemory2
-rwxr-xr-xmusic2
-rwxr-xr-xnettraf2
-rwxr-xr-xvolume2
9 files changed, 9 insertions, 9 deletions
diff --git a/battery b/battery
index fb5349c..28c0b36 100755
--- a/battery
+++ b/battery
@@ -1,4 +1,4 @@
-#!/sbin/sh
+#!/bin/sh
case $BLOCK_BUTTON in
2) notify-send "Battery module" "- : discharging
diff --git a/clock b/clock
index 81397af..cc6b0d9 100755
--- a/clock
+++ b/clock
@@ -1,4 +1,4 @@
-#!/sbin/sh
+#!/bin/sh
case $BLOCK_BUTTON in
1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/spawn<\/b>/")" && notify-send "Appointments" "$(calcurse -D ~/.config/calcurse -d3)" ;;
diff --git a/cpu b/cpu
index 283cd40..5bdfd6b 100755
--- a/cpu
+++ b/cpu
@@ -1,4 +1,4 @@
-#!/sbin/sh
+#!/bin/sh
case $BLOCK_BUTTON in
1) notify-send "CPU hogs" "$(ps axch -o comm,%cpu --sort=-%cpu | head)\\n(100% per core)" ;;
diff --git a/disk b/disk
index abfb64d..e71a276 100755
--- a/disk
+++ b/disk
@@ -1,4 +1,4 @@
-#!/sbin/sh
+#!/bin/sh
location=${1:-/}
diff --git a/internet b/internet
index 5850a13..8dfd24f 100755
--- a/internet
+++ b/internet
@@ -1,4 +1,4 @@
-#!/sbin/sh
+#!/bin/sh
case $BLOCK_BUTTON in
1) "$TERMINAL" -e nmtui; pkill -RTMIN+4 dwmblocks ;;
diff --git a/memory b/memory
index e9f8b2b..8b81626 100755
--- a/memory
+++ b/memory
@@ -1,4 +1,4 @@
-#!/sbin/sh
+#!/bin/sh
case $BLOCK_BUTTON in
1) notify-send "Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;
diff --git a/music b/music
index 2ec8aec..22a41c8 100755
--- a/music
+++ b/music
@@ -1,4 +1,4 @@
-#!/sbin/sh
+#!/bin/sh
filter() {
if [ `pgrep -x mpd` ]; then
diff --git a/nettraf b/nettraf
index 4bd0850..ac43416 100755
--- a/nettraf
+++ b/nettraf
@@ -1,4 +1,4 @@
-#!/sbin/sh
+#!/bin/sh
# Module showing network traffic. Shows how much data has been received (RX) or
# transmitted (TX) since the previous time this script ran. So if run every
diff --git a/volume b/volume
index 1c67faf..b2f6e37 100755
--- a/volume
+++ b/volume
@@ -1,4 +1,4 @@
-#!/sbin/sh
+#!/bin/sh
case $BLOCK_BUTTON in
1)