#!/usr/bin/env zsh local config_flags=() if ((${#} >= 1)); then config_flags+=("-c" "${1}") fi local value="$(eww ${config_flags} get show-systray)" case "${value}" in 'false') value='true' ;; *) value='false' ;; esac eww ${config_flags} update show-systray="${value}"