From 85ae438fbc238fe56bcb1c10a12ec52365053cb6 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Sat, 26 Feb 2022 20:31:12 +0530 Subject: dwmbar dotfiles --- modules/tor | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 modules/tor (limited to 'modules/tor') diff --git a/modules/tor b/modules/tor new file mode 100755 index 0000000..74ff5b1 --- /dev/null +++ b/modules/tor @@ -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 -- cgit v1.2.3-59-g8ed1b