~scripts with better simpler icons

This commit is contained in:
dx
2020-07-07 00:29:44 +01:00
parent 2d7f876c38
commit 2f3ce0ed39
4 changed files with 6 additions and 16 deletions

View File

@@ -3,7 +3,7 @@
internet=$(nmcli g | sed -n 2p | awk '{print $1}')
if [[ $internet == "connected" ]]
then
echo "Connected"
echo "Connected"
else
echo "Not connected"
echo "Not connected"
fi

View File

@@ -1,2 +1,2 @@
#!/usr/bin/env bash
echo $(date +'%a %F %R')
echo $(date +'%a %F %R')

View File

@@ -7,4 +7,4 @@ then
else
name="Playing: $name"
fi
echo $name
echo $name

View File

@@ -3,19 +3,9 @@ sinks="$(pactl list sinks)"
vol="$(echo "$sinks" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")"
mpc_vol="$($HOME/.local/scripts/mpc_volume)"
if [[ $vol -gt 50 ]]
then
icon=""
elif [[ $vol -gt 10 ]]
then
icon=""
else
icon=""
fi
if [[ $mpc_vol == "n/a" ]]
then
echo "$icon $vol%"
echo " $vol%"
else
echo "$icon $vol% $mpc_vol%"
echo " $vol% $mpc_vol%"
fi