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' Message=' Fully Updated'

View File

@ -1,33 +1,32 @@
#!/usr/bin/env bash #!/usr/bin/env bash
network() { network() {
R1=`cat /sys/class/net/wlp0s20f3/statistics/rx_bytes` R1=$(cat /sys/class/net/wlan0/statistics/rx_bytes)
T1=`cat /sys/class/net/wlp0s20f3/statistics/tx_bytes` T1=$(cat /sys/class/net/wlan0/statistics/tx_bytes)
sleep 1 sleep 1
R2=`cat /sys/class/net/wlp0s20f3/statistics/rx_bytes` R2=$(cat /sys/class/net/wlan0/statistics/rx_bytes)
T2=`cat /sys/class/net/wlp0s20f3/statistics/tx_bytes` T2=$(cat /sys/class/net/wlan0/statistics/tx_bytes)
TBPS=`expr $T2 - $T1` TBPS=$(expr $T2 - $T1)
RBPS=`expr $R2 - $R1` RBPS=$(expr $R2 - $R1)
TKBPS=`echo "$TBPS / 1024"| bc` TKBPS=$(echo "$TBPS / 1024" | bc)
RKBPS=`echo "$RBPS / 1024"| bc` RKBPS=$(echo "$RBPS / 1024" | bc)
icon_up=" ﯴ" icon_up=" ﯴ"
icon_down=" ﯲ" icon_down=" ﯲ"
if [ "$RKBPS" -gt "1024" ]; then if [ "$RKBPS" -gt "1024" ]; then
RKBPS=`echo "scale=2; $RKBPS / 1024"| bc` RKBPS=$(echo "scale=2; $RKBPS / 1024" | bc)
RKBPS=" $RKBPS mb" RKBPS=" $RKBPS mb"
else else
RKBPS=" $RKBPS kb" RKBPS=" $RKBPS kb"
fi fi
if [ "$TKBPS" -gt "1024" ]; then if [ "$TKBPS" -gt "1024" ]; then
TKBPS=`echo "scale=2; $TKBPS / 1024"| bc` TKBPS=$(echo "scale=2; $TKBPS / 1024" | bc)
TKBPS=" $TKBPS mb" TKBPS=" $TKBPS mb"
else else
TKBPS=" $TKBPS kb" TKBPS=" $TKBPS kb"
fi 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-}"
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 #!/usr/bin/env bash
updates() { updates() {
configFile=$HOME/.config/repowm/flexiflow_bar/bar_updates.ini configFile=$HOME/.config/flexiflow/flexiflow_bar/bar_updates.ini
timestamp=$(date +%s) timestamp=$(date +%s)
icon=" " icon=" "

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
weather() { weather() {
configFile=$HOME/.config/repowm/flexiflow_bar/bar_weather.ini configFile=$HOME/.config/flexiflow/flexiflow_bar/bar_weather.ini
timestamp=$(date +%s) timestamp=$(date +%s)
icon="" icon=""

View File

@ -195,6 +195,14 @@ keys.extend(
groups = Groups.groups 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 # Define scratchpads
groups.append( groups.append(
ScratchPad( 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 # Scratchpad keybindings
keys.extend( keys.extend(
[ [