mirror of
https://github.com/samjage/weather-and-stats.git
synced 2026-06-06 08:30:43 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 277cd6915b | |||
| f98cd558cc | |||
| 79abd20615 | |||
| 74c4882ec7 |
@@ -6,12 +6,7 @@
|
|||||||
|
|
||||||
> A KDE Plasma 6 **panel/taskbar widget** displaying live weather and system stats in a single compact bar. Designed to sit in your top or bottom panel — not a desktop widget.
|
> A KDE Plasma 6 **panel/taskbar widget** displaying live weather and system stats in a single compact bar. Designed to sit in your top or bottom panel — not a desktop widget.
|
||||||
|
|
||||||
  
|
  [](https://github.com/samjage/weather-and-stats/releases/latest) [](https://github.com/samjage/Weather-and-Stats/releases/latest) [](https://github.com/samjage/Uplink-Manager/stargazers)
|
||||||
|
|
||||||
|
|
||||||
[](https://github.com/samjage/weather-and-stats/releases/tag/stats)
|
|
||||||
[](https://github.com/samjage/Weather-and-Stats/releases/latest)
|
|
||||||
[](https://github.com/samjage/Uplink-Manager/stargazers)
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ IFACE=$(awk 'NR>2{gsub(/:$/,"",$1); if($1!="lo") print $1, ($2+0)+($10+0)}' /pro
|
|||||||
[ -z "$IFACE" ] && IFACE="lo"
|
[ -z "$IFACE" ] && IFACE="lo"
|
||||||
|
|
||||||
# Helper functions for sampling
|
# Helper functions for sampling
|
||||||
get_cpu() { awk 'NR==1{t=0; for(i=2;i<=NF;i++) t+=$i; print t, $6}' /proc/stat; }
|
get_cpu() { awk 'NR==1{t=0; for(i=2;i<=NF;i++) t+=$i; print t, $5+$6}' /proc/stat; }
|
||||||
get_net() { awk -v d="$IFACE:" '$1==d{print $2, $10}' /proc/net/dev; }
|
get_net() { awk -v d="$IFACE:" '$1==d{print $2, $10}' /proc/net/dev; }
|
||||||
|
|
||||||
# First samples
|
# First samples
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"Description": "Live weather and system stats for the KDE panel",
|
"Description": "Live weather and system stats for the KDE panel",
|
||||||
"Icon": "weather-and-stats",
|
"Icon": "weather-and-stats",
|
||||||
"Id": "com.github.samjage.weatherstats",
|
"Id": "com.github.samjage.weatherstats",
|
||||||
"Version": "1.2",
|
"Version": "1.3",
|
||||||
"License": "GPL-2.0",
|
"License": "GPL-2.0",
|
||||||
"Category": "System Information",
|
"Category": "System Information",
|
||||||
"Authors": [
|
"Authors": [
|
||||||
|
|||||||
Reference in New Issue
Block a user