ark/users/modules/eww/scripts/reveal_toggle
2022-10-04 02:08:44 +03:00

10 lines
123 B
Bash
Executable File

#!/usr/bin/env bash
if [ "$($2 get "$1")" == "true" ]; then
state="false"
else
state="true"
fi
$2 update "$1=$state"