aboutsummaryrefslogtreecommitdiff
path: root/i3blocks/i3internet.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2018-12-16 19:24:40 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2018-12-16 19:24:40 +0100
commit590e1b8feeab5949cc94dbfb7237676186fc0527 (patch)
treeea544eddf85dc10a0b6a57ef4713561c48c2e7b5 /i3blocks/i3internet.sh
parentb022a45f840b0b8d12e7e6cddd0b49fd0317afa7 (diff)
downloadscripts-590e1b8feeab5949cc94dbfb7237676186fc0527.tar.gz
scripts-590e1b8feeab5949cc94dbfb7237676186fc0527.zip
Several changes.
Diffstat (limited to 'i3blocks/i3internet.sh')
-rwxr-xr-xi3blocks/i3internet.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/i3blocks/i3internet.sh b/i3blocks/i3internet.sh
index 536b242..049a479 100755
--- a/i3blocks/i3internet.sh
+++ b/i3blocks/i3internet.sh
@@ -1,15 +1,15 @@
#!/bin/sh
-#case $BLOCK_BUTTON in
-# 1) $TERMINAL -e nmtui ;;
-# 3) pgrep -x dunst >/dev/null && notify-send "<b>🌐 Internet module:</b>
-#- Click for \`nmtui\` for wifi access
-#📡: no wifi connection
-#📶: wifi connection with quality
-#❎: no ethernet
-#🌐: ethernet working
-#" ;;
-#esac
+case $BLOCK_BUTTON in
+ 1) i3-msg "exec urxvt -e nmtui" >/dev/null ;;
+ 3) pgrep -x dunst >/dev/null && notify-send "<b>🌐 Internet module:</b>
+- Click for 'nmtui' for wifi access
+📡: no wifi connection
+📶: wifi connection with quality
+❎: no ethernet
+🌐: ethernet working
+" ;;
+esac
#
#[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="📡"
#
@@ -23,4 +23,4 @@ wifi="$(nmcli | grep "wlp2s0: conectado to " | cut -d' ' -f4-) ($(ip addr show w
en=$(ip addr show enp3s0 | grep "inet " | cut -d' ' -f6)
[ $wstatus = "down" ] && wifi="down"
[ $estatus = "down" ] && en="down"
-echo "W: 📶 $wifi - E: 🌐 $en"
+echo "📶 $wifi | 🌐 $en"