aboutsummaryrefslogtreecommitdiff
path: root/config/i3blocks/scripts/allsync
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-06-10 14:14:22 +0200
committerKarel Kočí <cynerd@email.cz>2022-06-10 14:14:22 +0200
commitc5510367db582d1c0683f182dd0e151ea0ab3b5f (patch)
treee43d7d6a4eae8d586ac8b43ef436ae178465bcfe /config/i3blocks/scripts/allsync
parent3c905d717a331b9be6d7036624378d0617234a82 (diff)
downloadmyconfigs-c5510367db582d1c0683f182dd0e151ea0ab3b5f.tar.gz
myconfigs-c5510367db582d1c0683f182dd0e151ea0ab3b5f.tar.bz2
myconfigs-c5510367db582d1c0683f182dd0e151ea0ab3b5f.zip
Improvements for NixOS
Diffstat (limited to 'config/i3blocks/scripts/allsync')
-rwxr-xr-xconfig/i3blocks/scripts/allsync9
1 files changed, 6 insertions, 3 deletions
diff --git a/config/i3blocks/scripts/allsync b/config/i3blocks/scripts/allsync
index 211799d..472954f 100755
--- a/config/i3blocks/scripts/allsync
+++ b/config/i3blocks/scripts/allsync
@@ -1,6 +1,9 @@
-#!/bin/bash
-if allsync enabled; then
+#!/usr/bin/env bash
+if allsync enabled 2>/dev/null; then
echo "sync"
+else
echo
- echo "#ffff00"
fi
+
+echo
+echo "#ffff00"