ark/users/modules/eww/scripts/reveal_toggle

10 lines
123 B
Plaintext
Raw Normal View History

2022-10-04 02:08:44 +03:00
#!/usr/bin/env bash
if [ "$($2 get "$1")" == "true" ]; then
state="false"
else
state="true"
fi
$2 update "$1=$state"