Skip to content

Commit

Permalink
removing emojis from argos scripts due to display problems (not neces…
Browse files Browse the repository at this point in the history
…sary space)
  • Loading branch information
pwittchen committed Jul 29, 2019
1 parent a9ca493 commit 9b9b05c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .argos/00_aqi.300s.sh
Expand Up @@ -22,16 +22,16 @@ if [ "$AQI" == "" ] ; then
fi

case 1 in
$(($AQI <= 50))) EMOJI="🌀";;
$(($AQI <= 75))) EMOJI="😕";;
$(($AQI <= 100))) EMOJI="😷";;
$(($AQI >= 101))) EMOJI="😱";;
$(($AQI <= 50))) EMOJI="great!";;
$(($AQI <= 75))) EMOJI="medium";;
$(($AQI <= 100))) EMOJI="bad";;
$(($AQI >= 101))) EMOJI="very bad";;
esac

if [ "$AQI" == "null" ]; then
echo ""
echo "?"
else
echo "$EMOJI $AQI"
echo "AQI: $AQI ($EMOJI)"
fi

echo "---"
Expand Down
4 changes: 2 additions & 2 deletions .argos/01_gml.300s.sh
Expand Up @@ -15,10 +15,10 @@ msg_count=$(echo $mail_feed | xmllint --format - | grep fullcount | sed -e 's/<[
tmp_file="/tmp/email_notification_sent"

if [ "$msg_count" == "0" ] ; then
echo "📪 $msg_count"
echo "email: $msg_count"
rm -f "$tmp_file" || true
else
echo "📫 $msg_count"
echo "email: $msg_count"
if [ ! -f "$tmp_file" ] ; then
notify-send "e-mail" "you have $msg_count new message(s)"
touch "$tmp_file"
Expand Down
2 changes: 1 addition & 1 deletion .argos/02_pkg.60s.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

pkgs_count=$(pacman -Qu | wc -l)
echo "📦 $pkgs_count"
echo "updates: $pkgs_count"

echo "---"

Expand Down
4 changes: 2 additions & 2 deletions .argos/03_rss.300s.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
no_of_unread_arts=$(newsboat -x print-unread | awk '{print $1}')
if [ "$no_of_unread_arts" == "" ] ; then
echo " "
echo "RSS: 0"
else
echo "📶 $no_of_unread_arts"
echo "RSS: $no_of_unread_arts"
fi
4 changes: 2 additions & 2 deletions .argos/04_cpu.60s.sh
Expand Up @@ -6,9 +6,9 @@ if [ ! -z $(command -v sensors) ]; then
cpu_temp=$(sensors | awk '/^Package/ {print $4}')
fi
if [ ! -z $cpu_temp ]; then
echo "💻 $cpu_usage (🌡️$cpu_temp)"
echo "CPU: $cpu_usage ($cpu_temp)"
else
echo "💻 $cpu_usage"
echo "CPU: $cpu_usage"
fi
echo "---"
echo "use most of CPU:"
Expand Down
2 changes: 1 addition & 1 deletion .argos/05_ram.60s.sh
Expand Up @@ -12,7 +12,7 @@ if [ -z "$ramUsage" ]; then
getRamUsage
fi

echo "📟 $ramUsage%"
echo "RAM: $ramUsage%"
echo "---"
echo "use most of RAM:"
ps axch -o cmd:15,%mem --sort=-%mem | head
2 changes: 1 addition & 1 deletion .argos/06_dsk.300s.sh
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
used=$(df -hT -BG -t ext4 -t vfat | sed "1 d" | awk '{print $4}' | rev | cut -c2- | rev | paste -sd+ - | bc)
size=$(df -hT -BG -t ext4 -t vfat | sed "1 d" | awk '{print $3}' | rev | cut -c2- | rev | paste -sd+ - | bc)
echo "$used / $size" | bc -l | colrm 4 | sed 's/\.//g' | awk '{print "💽 " $1"%"}'
echo "$used / $size" | bc -l | colrm 4 | sed 's/\.//g' | awk '{print "SSD: " $1"%"}'

0 comments on commit 9b9b05c

Please sign in to comment.