From c5510367db582d1c0683f182dd0e151ea0ab3b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 10 Jun 2022 14:14:22 +0200 Subject: Improvements for NixOS --- config/i3blocks/scripts/allsync | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'config/i3blocks/scripts/allsync') 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" -- cgit v1.2.3