mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-21 18:12:53 +00:00
Added tor module
This commit is contained in:
parent
8ec45bf4a0
commit
bf7dc6456d
1 changed files with 23 additions and 0 deletions
23
modules/tor
Executable file
23
modules/tor
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/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
|
Loading…
Reference in a new issue