mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-24 16:28:41 -05:00
Updates
This commit is contained in:
parent
ab2bc8572a
commit
d234b7fe51
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
LastUsed=1692294424
|
||||
LastUsed=1692476923
|
||||
Message=' Fully Updated'
|
||||
|
@ -1,33 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
network() {
|
||||
R1=`cat /sys/class/net/wlp0s20f3/statistics/rx_bytes`
|
||||
T1=`cat /sys/class/net/wlp0s20f3/statistics/tx_bytes`
|
||||
sleep 1
|
||||
R2=`cat /sys/class/net/wlp0s20f3/statistics/rx_bytes`
|
||||
T2=`cat /sys/class/net/wlp0s20f3/statistics/tx_bytes`
|
||||
TBPS=`expr $T2 - $T1`
|
||||
RBPS=`expr $R2 - $R1`
|
||||
TKBPS=`echo "$TBPS / 1024"| bc`
|
||||
RKBPS=`echo "$RBPS / 1024"| bc`
|
||||
icon_up=" ﯴ"
|
||||
icon_down=" ﯲ"
|
||||
if [ "$RKBPS" -gt "1024" ]; then
|
||||
RKBPS=`echo "scale=2; $RKBPS / 1024"| bc`
|
||||
RKBPS=" $RKBPS mb"
|
||||
else
|
||||
RKBPS=" $RKBPS kb"
|
||||
fi
|
||||
R1=$(cat /sys/class/net/wlan0/statistics/rx_bytes)
|
||||
T1=$(cat /sys/class/net/wlan0/statistics/tx_bytes)
|
||||
sleep 1
|
||||
R2=$(cat /sys/class/net/wlan0/statistics/rx_bytes)
|
||||
T2=$(cat /sys/class/net/wlan0/statistics/tx_bytes)
|
||||
TBPS=$(expr $T2 - $T1)
|
||||
RBPS=$(expr $R2 - $R1)
|
||||
TKBPS=$(echo "$TBPS / 1024" | bc)
|
||||
RKBPS=$(echo "$RBPS / 1024" | bc)
|
||||
icon_up=" ﯴ"
|
||||
icon_down=" ﯲ"
|
||||
if [ "$RKBPS" -gt "1024" ]; then
|
||||
RKBPS=$(echo "scale=2; $RKBPS / 1024" | bc)
|
||||
RKBPS=" $RKBPS mb"
|
||||
else
|
||||
RKBPS=" $RKBPS kb"
|
||||
fi
|
||||
|
||||
if [ "$TKBPS" -gt "1024" ]; then
|
||||
TKBPS=`echo "scale=2; $TKBPS / 1024"| bc`
|
||||
TKBPS=" $TKBPS mb"
|
||||
else
|
||||
TKBPS=" $TKBPS kb"
|
||||
fi
|
||||
|
||||
printf "%s%s%s%s\n" "%{F#1e222a}%{B#BE78D1}$icon_down %{F-}%{B-}" "%{F#1e222a}%{B#C4C7C5}${RKBPS} %{F-}%{B-}" "%{F#1e222a}%{B#BE78D1}$icon_up %{F-}%{B-}" "%{F#1e222a}%{B#C4C7C5}${TKBPS} %{F-}%{B-}"
|
||||
if [ "$TKBPS" -gt "1024" ]; then
|
||||
TKBPS=$(echo "scale=2; $TKBPS / 1024" | bc)
|
||||
TKBPS=" $TKBPS mb"
|
||||
else
|
||||
TKBPS=" $TKBPS kb"
|
||||
fi
|
||||
|
||||
printf "%s%s%s%s\n" "%{F#1e222a}%{B#BE78D1}$icon_down %{F-}%{B-}" "%{F#1e222a}%{B#C4C7C5}${RKBPS} %{F-}%{B-}" "%{F#1e222a}%{B#BE78D1}$icon_up %{F-}%{B-}" "%{F#1e222a}%{B#C4C7C5}${TKBPS} %{F-}%{B-}"
|
||||
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
updates() {
|
||||
configFile=$HOME/.config/repowm/flexiflow_bar/bar_updates.ini
|
||||
configFile=$HOME/.config/flexiflow/flexiflow_bar/bar_updates.ini
|
||||
|
||||
timestamp=$(date +%s)
|
||||
icon=" "
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
weather() {
|
||||
configFile=$HOME/.config/repowm/flexiflow_bar/bar_weather.ini
|
||||
configFile=$HOME/.config/flexiflow/flexiflow_bar/bar_weather.ini
|
||||
|
||||
timestamp=$(date +%s)
|
||||
icon=""
|
||||
|
@ -195,6 +195,14 @@ keys.extend(
|
||||
|
||||
groups = Groups.groups
|
||||
|
||||
for i in groups:
|
||||
keys.extend(
|
||||
[
|
||||
Key([MOD], i.name, lazy.function(go_to_group(i.name))),
|
||||
Key([MOD, "shift"], i.name, lazy.window.togroup(i.name)),
|
||||
]
|
||||
)
|
||||
|
||||
# Define scratchpads
|
||||
groups.append(
|
||||
ScratchPad(
|
||||
@ -240,14 +248,6 @@ groups.append(
|
||||
)
|
||||
)
|
||||
|
||||
for i in groups:
|
||||
keys.extend(
|
||||
[
|
||||
Key([MOD], i.name, lazy.function(go_to_group(i.name))),
|
||||
Key([MOD, "shift"], i.name, lazy.window.togroup(i.name)),
|
||||
]
|
||||
)
|
||||
|
||||
# Scratchpad keybindings
|
||||
keys.extend(
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user