summary refs log tree commit diff
path: root/.config/waybar/module-screenrec.sh
blob: b98733c0722986e941c5c0545658390f6d76d1ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -eu
[ -n "${DEBUG:-}" ] && set -x

update() {
	if ! pgrep -x wl-screenrec >/dev/null; then
		echo '{}'
	else
		echo '{"class":"running","alt":"running"}'
	fi
}

update