This commit is contained in:
The-Repo-Club 2023-08-19 22:32:45 +01:00
parent ab2bc8572a
commit d234b7fe51
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
6 changed files with 35 additions and 36 deletions

Binary file not shown.

View File

@ -1,2 +1,2 @@
LastUsed=1692294424
LastUsed=1692476923
Message=' Fully Updated'

View File

@ -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-}"
}

View File

@ -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=" "

View File

@ -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=""

View File

@ -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(
[