Skip to content

Instantly share code, notes, and snippets.

Camil Staps camilstaps

Block or report user

Report or block camilstaps

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@camilstaps
camilstaps / wireless.sh
Last active Mar 2, 2016 — forked from pimeys/wireless.sh
Wireless plugin for xmobar
View wireless.sh
#!/bin/bash
INTF=$1
iwconfig "$INTF" 2>&1 | grep -q no\ wireless\ extensions\. && {
echo wired
exit 0
}
essid=`iwconfig "$INTF" | grep 'ESSID:' | cut -d' ' -f 2- | sed 's/^ *//g' | cut -d' ' -f 4- | sed 's/ *$//g'`
essid="${essid:7:(-1)}"
quality=`iwconfig "$INTF" | grep 'Link Quality' | sed 's/^ *//g' | cut -d'=' -f2 | cut -d' ' -f1`
You can’t perform that action at this time.