From c1243cf0fc63425ebc600f15509b93be71a389d9 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Mon, 22 Apr 2019 18:27:40 +0200 Subject: Minor updates. --- i3blocks/i3internet.sh | 2 +- i3blocks/i3vol.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'i3blocks') diff --git a/i3blocks/i3internet.sh b/i3blocks/i3internet.sh index a5b507e..55f5a5d 100755 --- a/i3blocks/i3internet.sh +++ b/i3blocks/i3internet.sh @@ -24,7 +24,7 @@ else wifi="✔️ $(nmcli | grep "$wifiDev: connected to " | cut -d' ' -f4-) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))" fi if [ -z "$(nmcli | grep $ethDev)" ]; then - en="❌❗ No $ethDev device found" + en="❌❗ No $ethDev" elif [ "$estatus" = "down" ]; then en="❌" else diff --git a/i3blocks/i3vol.sh b/i3blocks/i3vol.sh index f3a0745..4a3121f 100755 --- a/i3blocks/i3vol.sh +++ b/i3blocks/i3vol.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh case $BLOCK_BUTTON in 1) i3-msg "exec urxvt -e alsamixer" >/dev/null ;; @@ -7,7 +7,7 @@ esac vol=$(pactl list sinks | grep "Volume:" | sed 1q | awk '{print $5}') mute=$(pactl list sinks | grep "Mute:" | cut -d' ' -f2) -if [ $mute = "no" ]; then +if [ "$mute" = "no" ]; then echo "🔊 $vol" else echo "🔇($vol)" -- cgit v1.2.1