random-scripts/eww/eww-toggle-systray

19 lines
316 B
Plaintext
Raw Normal View History

2024-04-27 14:23:43 -07:00
#!/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}"