add i3 and polybar conf, add new rofi logout screen
This commit is contained in:
9
polybar/scripts/network_speed.sh
Executable file
9
polybar/scripts/network_speed.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
NETWORK=$(awk '{if(l1){print $2-l1,$10-l2} else{l1=$2; l2=$10;}}' <(grep wlo1 /proc/net/dev) <(sleep 1; grep wlo1 /proc/net/dev))
|
||||
UP=$(echo $NETWORK | awk '{ print $2 }')
|
||||
DOWN=$(echo $NETWORK | awk '{ print $1 }')
|
||||
UP=$(echo "scale=2 ; $UP / 1048576" | bc)
|
||||
DOWN=$(echo "scale=2 ; $DOWN / 1048576" | bc)
|
||||
|
||||
echo " $DOWN MB/s $UP MB/s"
|
||||
Reference in New Issue
Block a user