ztatus[discontinued] Status bar for dwm, and simple notification daemon. |
|
git clone https://noxz.tech/git/ztatus.git | |
ztatus |
commit: 38372f03d7ddbf387af88741ab00a090da3c8ed1 parent: 8212082542cf4f90ab5aa4e20d46f48a20d42fd7 author: Chris Noxz <chris@noxz.tech> date: Mon, 30 Mar 2020 17:58:53 +0200
remove obsolete script
D | ztatusc | 50 | -------------------- |
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