ztatus

Status bar for dwm, and simple notification daemon.
git clone git://git.noxz.tech/ztatus
Log | Files | Refs | LICENSE

commit 38372f03d7ddbf387af88741ab00a090da3c8ed1
parent 8212082542cf4f90ab5aa4e20d46f48a20d42fd7
Author: Chris Noxz <chris@noxz.tech>
Date:   Mon, 30 Mar 2020 17:58:53 +0200

remove obsolete script

Diffstat:
Dztatusc | 50--------------------------------------------------
1 file changed, 0 insertions(+), 50 deletions(-)

diff --git a/ztatusc b/ztatusc @@ -1,50 +0,0 @@ -#!/bin/sh - -ztatusfifo="/tmp/ztatus.fifo" - -send_toggle() { - send_command "toggle $1" -} - -send_update() { - send_command "update $1" -} - -send_notification() { - send_command "notify $1" -} - -send_command() { - printf '%s' "$1" > "$ztatusfifo" -} - -case "$1" in -toggle) - elements="$(ztatus -l | grep "^toggle " | awk '{ print $2 }')" - case "$2" in - datetime) - send_command "$(printf 'toggle date\ntoggle time')" ;; - *) - if [ "$(echo "$elements" | grep "^$2$")" ]; then - send_toggle "$2" - else - echo "Unknown element: $2" - fi ;; - esac ;; -update) - elements="$(ztatus -l | grep "^update " | awk '{ print $2 }')" - case "$2" in - mail) - send_command "$(printf 'update mail0\nupdate mail1')" ;; - *) - if [ "$(echo "$elements" | grep "^$2$")" ]; then - send_update "$2" - else - echo "Unknown element: $2" - fi ;; - esac ;; -notify) - shift; send_notification "$*" ;; -*) - echo "Unknown option: $*" ;; -esac