aboutsummaryrefslogtreecommitdiff
path: root/des/i3/i3blocks/scripts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdes/i3/i3blocks/scripts/calendar4
-rwxr-xr-xdes/i3/i3blocks/scripts/xray10
2 files changed, 12 insertions, 2 deletions
diff --git a/des/i3/i3blocks/scripts/calendar b/des/i3/i3blocks/scripts/calendar
index 27653a5..a530869 100755
--- a/des/i3/i3blocks/scripts/calendar
+++ b/des/i3/i3blocks/scripts/calendar
@@ -36,5 +36,5 @@ case "$BLOCK_BUTTON" in
--posx=$posX --posy=$posY \
> /dev/null"
esac
-echo "$LABEL$(date "$DATEFMT") "
-echo "$LABEL$(date "$SHORTFMT") "
+echo "$LABEL$(date "$DATEFMT")"
+echo "$LABEL$(date "$SHORTFMT")"
diff --git a/des/i3/i3blocks/scripts/xray b/des/i3/i3blocks/scripts/xray
new file mode 100755
index 0000000..04070b1
--- /dev/null
+++ b/des/i3/i3blocks/scripts/xray
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+ICON_VPN_ON=󰦝
+ICON_VPN_OFF=󰦞
+
+if systemctl is-active --quiet xray; then
+ echo "<span color='#49e20e'>$ICON_VPN_ON </span>"
+else
+ echo "<span color='#cb4b16'>$ICON_VPN_OFF </span>"
+fi \ No newline at end of file