aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-04-22 18:27:40 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-04-22 18:27:40 +0200
commitc1243cf0fc63425ebc600f15509b93be71a389d9 (patch)
tree18faa49d08b23758a21d55df284e47d07d6e6267 /i3blocks
parentb2bdbb94e5171133853e80de6af5b6605477ce4c (diff)
downloadscripts-c1243cf0fc63425ebc600f15509b93be71a389d9.tar.gz
scripts-c1243cf0fc63425ebc600f15509b93be71a389d9.zip
Minor updates.
Diffstat (limited to 'i3blocks')
-rwxr-xr-xi3blocks/i3internet.sh2
-rwxr-xr-xi3blocks/i3vol.sh4
2 files changed, 3 insertions, 3 deletions
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)"