diff options
author | zachir <zachir@librem.one> | 2023-02-09 21:21:48 -0600 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-02-09 21:21:48 -0600 |
commit | 0b921ed49b9f0c170bed444570d91e2d9901483b (patch) | |
tree | 6dac5fbe2be0bf88b875a3bc456ff777909fb3ba | |
parent | 91e4799fedf9dbff384003b8c2eaea039cb57327 (diff) |
-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) |