diff --git a/i3/.config/i3/i3blocks/archupdates b/i3/.config/i3/i3blocks/archupdates deleted file mode 100755 index b6ceee1..0000000 --- a/i3/.config/i3/i3blocks/archupdates +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -# Arch upgradeable packages - -list=`pacman -Sup 2> /dev/null` - -if [ "$list" == ":: Starting full system upgrade..." ]; then - count="" -else - count=`echo "$list" | wc -l` -fi - -echo "$count" diff --git a/i3/.config/i3/i3blocks/container b/i3/.config/i3/i3blocks/container deleted file mode 100755 index fd54121..0000000 --- a/i3/.config/i3/i3blocks/container +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -docker ps -q | wc -l | sed -r 's/^0$//g' diff --git a/i3/.config/i3/i3blocks/gmail b/i3/.config/i3/i3blocks/gmail deleted file mode 100755 index ddeabde..0000000 --- a/i3/.config/i3/i3blocks/gmail +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# Requires https://www.google.com/settings/security/lesssecureapps for gmail. - -CONFIG_FILE="${BLOCK_INSTANCE}" -CONFIG_FILE=${CONFIG_FILE/\~/$HOME} - -# Config file needs the following settings: -#MAIL_USER="user@domain.tld" -#MAIL_PASSWORD="secret" - -if [[ ! -f "${CONFIG_FILE}" ]]; then - echo "${CONFIG_FILE}" - exit 33 -fi - -source "${CONFIG_FILE}" - -COUNT=`curl -su $MAIL_USER:$MAIL_PASSWORD https://mail.google.com/mail/feed/atom || echo "unknown number of"` -COUNT=`echo "$COUNT" | grep -oPm1 "(?<=)[^<]+" ` -if [ "$COUNT" = "0" ]; then - echo "" -else - echo $COUNT -fi diff --git a/i3/.config/i3/i3blocks/whatismyip b/i3/.config/i3/i3blocks/whatismyip deleted file mode 100755 index ffcb0bb..0000000 --- a/i3/.config/i3/i3blocks/whatismyip +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -ip=$(curl -s icanhazip.com); - -if [[ "$BLOCK_BUTTON" -eq 1 ]]; -then - netname=$(whois $ip | grep '^netname:' | awk '{print $2}' | tail -1); - echo "$netname" -else - echo "$ip" -fi