feat(waybar): improve screen recorder module

This commit is contained in:
2025-09-18 11:13:53 +02:00
parent e9b92fcd3c
commit 4df06b6d77
5 changed files with 55 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
#! /usr/bin/env bash
main() {
local data=""
if pgrep -x wf-recorder > /dev/null 2>&1; then
data='{"text": "󰻂", "tooltip": "Stop recording", "class": "active"}'
else
data='{"text": "󰻂", "tooltip": "Start recording", "class": "idle"}'
fi
echo $data | jq --unbuffered --compact-output
}
main $@