diff options
author | lxf <sng@luxagraf.net> | 2022-04-29 10:22:31 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-04-29 10:22:31 -0400 |
commit | 16b43b92c15d34caf98d06c8282841c06d7ed45b (patch) | |
tree | a96ecc3e000681887c7fd9043418f5dbbea96238 /.config/waybar/modules | |
parent | 426f8aa8fff9367b02bd01b49c92efb8f52c11ed (diff) |
roled in latest changes to openbox config on Dell XPS 13
Diffstat (limited to '.config/waybar/modules')
-rwxr-xr-x | .config/waybar/modules/storage.sh | 24 | ||||
-rwxr-xr-x | .config/waybar/modules/weather.sh | 6 |
2 files changed, 0 insertions, 30 deletions
diff --git a/.config/waybar/modules/storage.sh b/.config/waybar/modules/storage.sh deleted file mode 100755 index d495da4..0000000 --- a/.config/waybar/modules/storage.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -mount="/" -warning=20 -critical=10 - -df -h -P -l "$mount" | awk -v warning=$warning -v critical=$critical ' -/\/.*/ { - text=$4 - tooltip="Filesystem: "$1"\rSize: "$2"\rUsed: "$3"\rAvail: "$4"\rUse%: "$5"\rMounted on: "$6 - use=$5 - exit 0 -} -END { - class="" - gsub(/%$/,"",use) - if ((100 - use) < critical) { - class="critical" - } else if ((100 - use) < warning) { - class="warning" - } - print "{\"text\":\""text"\", \"percentage\":"use",\"tooltip\":\""tooltip"\", \"class\":\""class"\"}" -} - ' diff --git a/.config/waybar/modules/weather.sh b/.config/waybar/modules/weather.sh deleted file mode 100755 index d64acd0..0000000 --- a/.config/waybar/modules/weather.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -w=$(curl -s wttr.in/ahn?format="%l:+%c+%t+%C+%w+%h+%m") -w=${w:7} -w="$(echo -e "${w}" | sed -e 's/^[[:space:]]*//')" -m=$(python ~/bin/moonphase-waybar.py) -echo "{\"text\":\""$w ""$m"\", \"tooltip\":\""tooltip"\", \"class\":\""lxf-weather"\"}" |