aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-01-24 14:24:44 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-01-24 14:24:44 +0100
commitda8c4b7b65235909b7c03da480689d9d871f8d59 (patch)
tree5dbcadd5a70c172eed8300efec727552eae89301 /i3blocks
parent95aa68aeb4b629e9a98a9a480a558b757b2a732e (diff)
downloadscripts-da8c4b7b65235909b7c03da480689d9d871f8d59.tar.gz
scripts-da8c4b7b65235909b7c03da480689d9d871f8d59.zip
Created music mode and added some other little stuff.
Diffstat (limited to 'i3blocks')
-rwxr-xr-xi3blocks/i3date.sh2
-rwxr-xr-xi3blocks/i3internet.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/i3blocks/i3date.sh b/i3blocks/i3date.sh
index d9ea3c8..a54a135 100755
--- a/i3blocks/i3date.sh
+++ b/i3blocks/i3date.sh
@@ -9,4 +9,4 @@ esac
#dayofyear=$(date +%j)
#perc=$(echo "scale=1; ($dayofyear*100)/365" | bc)
#echo $(date +"%A, %y/%m/%d ($perc%) - %T")
-echo $(date +"%y/%m/%d - %H:%M")
+echo $(date +"%y/%m/%d %H:%M")
diff --git a/i3blocks/i3internet.sh b/i3blocks/i3internet.sh
index a148928..ab26611 100755
--- a/i3blocks/i3internet.sh
+++ b/i3blocks/i3internet.sh
@@ -11,9 +11,9 @@ if [ $wstatus = "down" ]; then
wifi="❌"
else
# with IP
- #wifi="$(nmcli | grep "wlp2s0: conectado to " | cut -d' ' -f4-) ($(ip addr show wlp2s0 | grep "inet " | cut -d' ' -f6)) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))"
+ wifi="$(nmcli | grep "wlp2s0: conectado to " | cut -d' ' -f4-) ($(ip addr show wlp2s0 | grep "inet " | cut -d' ' -f6)) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))"
# no IP
- wifi="$(nmcli | grep "wlp2s0: conectado to " | cut -d' ' -f4-) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))"
+ #wifi="$(nmcli | grep "wlp2s0: conectado to " | cut -d' ' -f4-) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))"
fi
if [ $estatus = "down" ]; then
en="❌"