diff options
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/awesome-widgets/widget-RAM | 3 | ||||
| -rwxr-xr-x | .local/bin/awesome-widgets/widget-cpu_usage | 31 | ||||
| -rwxr-xr-x | .local/bin/awesome-widgets/widget-disks | 13 | ||||
| -rwxr-xr-x | .local/bin/awesome-widgets/widget-newsboat | 6 | ||||
| -rwxr-xr-x | .local/bin/awesome-widgets/widget-sensors | 3 | ||||
| -rwxr-xr-x | .local/bin/awesome-widgets/widget-weather | 3 |
6 files changed, 0 insertions, 59 deletions
diff --git a/.local/bin/awesome-widgets/widget-RAM b/.local/bin/awesome-widgets/widget-RAM deleted file mode 100755 index add3ca2..0000000 --- a/.local/bin/awesome-widgets/widget-RAM +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -free --mebi | sed -n '2{p;q}' | awk '{printf (" 🐏 %2.1fG/%2.0fG\n", ( $3 / 1024), ($2 / 1024))}' diff --git a/.local/bin/awesome-widgets/widget-cpu_usage b/.local/bin/awesome-widgets/widget-cpu_usage deleted file mode 100755 index 4be33eb..0000000 --- a/.local/bin/awesome-widgets/widget-cpu_usage +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -# Cache in tmpfs to improve speed and reduce SSD load -cache=/tmp/cpubarscache - -stats=$(awk '/cpu[0-7]+/ {printf "%d %d %d\n", substr($1,4), ($2 + $3 + $4 + $5), $5 }' /proc/stat) -[ ! -f $cache ] && echo "$stats" > "$cache" -old=$(cat "$cache") -printf " 🫀 " -echo "$stats" | while read -r row; do - id=${row%% *} - rest=${row#* } - total=${rest%% *} - idle=${rest##* } - - case "$(echo "$old" | awk '{if ($1 == id) - printf "%d\n", (1 - (idle - $3) / (total - $2))*100 /12.5}' \ - id="$id" total="$total" idle="$idle")" in - - "0") printf "▁";; - "1") printf "▂";; - "2") printf "▃";; - "3") printf "▄";; - "4") printf "▅";; - "5") printf "▆";; - "6") printf "▇";; - "7") printf "█";; - "8") printf "█";; - esac -done; printf "\\n" -echo "$stats" > "$cache" diff --git a/.local/bin/awesome-widgets/widget-disks b/.local/bin/awesome-widgets/widget-disks deleted file mode 100755 index d0fab3c..0000000 --- a/.local/bin/awesome-widgets/widget-disks +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -location=${1:-/} - -[ -d "$location" ] || exit - -case "$location" in - "/home"* ) icon="🏠" ;; - "/run/media"* ) icon="💾" ;; - *) icon="🖥";; -esac - -printf "%s%s" " $icon " "$(df -h "$location" | awk ' /[0-9]/ {print $3 "/" $2 " "} ')" diff --git a/.local/bin/awesome-widgets/widget-newsboat b/.local/bin/awesome-widgets/widget-newsboat deleted file mode 100755 index c8303b7..0000000 --- a/.local/bin/awesome-widgets/widget-newsboat +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -if ! pgrep -x "newsboat" > /dev/null; then - newsboat -x reload - cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ if($1>0) print " 📰 " $1 }')$(cat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsboat/.update 2>/dev/null)" -fi diff --git a/.local/bin/awesome-widgets/widget-sensors b/.local/bin/awesome-widgets/widget-sensors deleted file mode 100755 index 248acc0..0000000 --- a/.local/bin/awesome-widgets/widget-sensors +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -sensors -f | awk '/Core 0/ {print " 🌡" $3}' diff --git a/.local/bin/awesome-widgets/widget-weather b/.local/bin/awesome-widgets/widget-weather deleted file mode 100755 index d48599e..0000000 --- a/.local/bin/awesome-widgets/widget-weather +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -curl -s wttr.in/?format=%c%t |
