Dotfiles-dwm/dwmbar/modules/tor

24 lines
333 B
Plaintext
Raw Normal View History

2024-06-02 11:02:06 +00:00
#!/bin/bash
# Prints if the tor service is enabled or not
# Requires tor
TOR_ENABLED='ﴣ'
TOR_DISABLED=''
get_tor()
{
status=$(systemctl is-active tor.service)
if [ "$status" == "active" ]
then
echo "$TOR_ENABLED"
else
:
#echo "$TOR_DISABLED"
fi
}
get_tor