diff options
-rwxr-xr-x | battery | 2 | ||||
-rwxr-xr-x | clock | 2 | ||||
-rwxr-xr-x | cpu | 2 | ||||
-rwxr-xr-x | disk | 2 | ||||
-rwxr-xr-x | internet | 2 | ||||
-rwxr-xr-x | memory | 2 | ||||
-rwxr-xr-x | music | 2 | ||||
-rwxr-xr-x | nettraf | 2 | ||||
-rwxr-xr-x | volume | 2 |
9 files changed, 9 insertions, 9 deletions
@@ -1,4 +1,4 @@ -#!/sbin/sh +#!/bin/sh case $BLOCK_BUTTON in 2) notify-send "Battery module" "- : discharging @@ -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)" ;; @@ -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)" ;; @@ -1,4 +1,4 @@ -#!/sbin/sh +#!/bin/sh location=${1:-/} @@ -1,4 +1,4 @@ -#!/sbin/sh +#!/bin/sh case $BLOCK_BUTTON in 1) "$TERMINAL" -e nmtui; pkill -RTMIN+4 dwmblocks ;; @@ -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)" ;; @@ -1,4 +1,4 @@ -#!/sbin/sh +#!/bin/sh filter() { if [ `pgrep -x mpd` ]; then @@ -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 @@ -1,4 +1,4 @@ -#!/sbin/sh +#!/bin/sh case $BLOCK_BUTTON in 1) |