diff options
| author | Blista Kanjo | 2023-07-19 13:51:07 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2023-07-19 13:51:07 -0400 |
| commit | 5f171c1a6e480ea051b5abb9dc312096ede23b81 (patch) | |
| tree | e542f51d8101cec8aff93f7b442304649050b456 /.local/bin/awesome-widgets/widget-disks | |
| parent | 820a3081360cdc33122a0b7b952bff7482af9b59 (diff) | |
refactor: removing `awesome-widgets` from the repo
Diffstat (limited to '.local/bin/awesome-widgets/widget-disks')
| -rwxr-xr-x | .local/bin/awesome-widgets/widget-disks | 13 |
1 files changed, 0 insertions, 13 deletions
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 " "} ')" |
