aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGravatar Matheus R <matheusrbarros03@gmail.com> 2021-11-10 13:47:17 +0000
committerGravatar Matheus R <matheusrbarros03@gmail.com> 2021-11-10 13:47:17 +0000
commit4efde2c3298da89d3d2b8d026f581df3341cd8eb (patch)
treeb7804d0ed648cdd7c1f7df3e3d29fda8071d1b46 /bin
parentbbff046c2a5bbbc103a26a9d74c416373fdc1ae2 (diff)
modificada fonte do xterm, retirada verbose do mbsync e adicionada opção de no link ao script wlan
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mbsync.sh2
-rwxr-xr-xbin/wlan2
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/mbsync.sh b/bin/mbsync.sh
index 75ed9a9..363d726 100755
--- a/bin/mbsync.sh
+++ b/bin/mbsync.sh
@@ -6,5 +6,5 @@
#pkill mbsync &>/dev/null
# runs mbsync and writes the output to a file
-mbsync -a
+mbsync -a
exit 0
diff --git a/bin/wlan b/bin/wlan
index d8f3e4e..a5da901 100755
--- a/bin/wlan
+++ b/bin/wlan
@@ -4,6 +4,8 @@
wlan() {
station="$(iwctl device list | grep station | awk ' { print $1 } ')"
essid="$(iwgetid | sed -e 's/ESSID://g' -e 's/\"//g' -e "s:$station::g" -e 's/^\W*/ /g')"
+
+# [ -n "$essid" ] || [ -z "$essid" ] && essid=' no link'
printf "%s" "$essid"
}