commit 9341f42cafa459401ad9f2842db2ad715d385b22 parent ec000a8f1421f0e044dcd90bda70371c5a824fef Author: awy <awy@awy.one> Date: Tue, 6 Jan 2026 23:19:54 +0300 notification icon Diffstat:
| M | .config/i3blocks/config | | | 6 | ++++++ |
| A | .local/bin/statusbar/sb-notif | | | 8 | ++++++++ |
| A | .local/bin/tgntf | | | 3 | +++ |
3 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/.config/i3blocks/config b/.config/i3blocks/config @@ -1,3 +1,9 @@ +[notifications] +command=sb-notif +interval=30 +signal=22 +label= + [recordingicon] command=cat /tmp/recordingicon interval=once diff --git a/.local/bin/statusbar/sb-notif b/.local/bin/statusbar/sb-notif @@ -0,0 +1,8 @@ +#!/bin/sh + +case $BLOCK_BUTTON in +1) dunstctl set-paused toggle >/dev/null 2>&1 && pkill -RTMIN+22 "$STATUSBAR" ;; +8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;; +esac + +[ "$(dunstctl is-paused)" = true ] && echo '' diff --git a/.local/bin/tgntf b/.local/bin/tgntf @@ -0,0 +1,3 @@ +#!/bin/sh + +BLOCK_BUTTON=1 sb-notif