diff options
Diffstat (limited to 'sway/sway_stats')
| -rwxr-xr-x | sway/sway_stats | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sway/sway_stats b/sway/sway_stats new file mode 100755 index 0000000..96b0923 --- /dev/null +++ b/sway/sway_stats @@ -0,0 +1,12 @@ +#!/bin/sh + +raw_freq=$(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq) +cpu_freq="$(( $raw_freq / 1000 )) MHz" + +name="$(date '+%Hh%M %A %y.%m.%d')" +summary="$(battery) @ $cpu_freq" +body=$(free -h | awk '/Mem:/ { ram=$3 } + /Swap:/ { swap=$3 } + END { printf("Used Ram/Swap: %s/%s",ram,swap) }') + +notify-send -t 10000 --app-name="$name" "$summary" "$body" |
