aboutsummaryrefslogtreecommitdiff
path: root/i3/blocks/network
diff options
context:
space:
mode:
authorNeodarZ <neodarz@neodarz.ovh>2016-11-03 23:32:29 +0100
committerNeodarZ <neodarz@neodarz.ovh>2016-11-03 23:32:29 +0100
commit85869af083741e8230cf66d1acc4a3b2da21dbd5 (patch)
treef84efd1622d327039e0c0876a39b948469c42388 /i3/blocks/network
parent146b416466cda8fdb6151bf73f99fa65a483fc09 (diff)
downloaddotfiles-85869af083741e8230cf66d1acc4a3b2da21dbd5.tar.xz
dotfiles-85869af083741e8230cf66d1acc4a3b2da21dbd5.zip
Add the new i3 configuration
Diffstat (limited to '')
-rwxr-xr-xi3/blocks/network23
1 files changed, 0 insertions, 23 deletions
diff --git a/i3/blocks/network b/i3/blocks/network
deleted file mode 100755
index cb06e87..0000000
--- a/i3/blocks/network
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-device="${BLOCK_INSTANCE:-wlan0}"
-status=$(cat /sys/class/net/${device}/operstate)
-
-URGENT_VALUE=20
-
-if [[ "${status}" == "up" ]]; then
- if [[ -d "/sys/class/net/${device}/wireless" ]]; then
- quality=$(grep ${device} /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
- echo "${quality}%"
- echo "${quality}%"
- echo ""
-
- if [[ "${quality}" -le "${URGENT_VALUE}" ]]; then
- exit 33
- fi
- else
- echo "on"
- echo "on"
- echo ""
- fi
-fi \ No newline at end of file