Add dotfiles
This commit is contained in:
parent
49bfe1a4d3
commit
b6e01a720b
52 changed files with 4701 additions and 0 deletions
23
dwmbar/modules/tor
Executable file
23
dwmbar/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…
Add table
Add a link
Reference in a new issue