Compare commits

...

2 Commits

Author SHA1 Message Date
Rob Watson 2cb6ab6f37 fix(nvim): load treesitter textobjects
continuous-integration/drone/push Build is passing Details
2023-11-23 07:42:01 +01:00
Rob Watson ed8f5726c8 fix(script): macos support 2023-11-21 09:19:40 +01:00
3 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@
set -e
if [ "$(uname -s)" = "Darwin" ]; then
echo "" # TODO
pmset -g batt | tail -n 1 | grep -Eo "\d+%" | cut -d% -f1
else # Linux
cat /sys/class/power_supply/BAT0/capacity
fi

View File

@ -6,9 +6,9 @@ set -e
pc=$(batinfo)
if [ "$pc" -gt 40 ]; then
if [[ "$pc" -gt 40 ]]; then
echo "#[fg=black, bg=green] $(batinfo)% #[default]"
elif [ "$pc" -gt 10 ]; then
elif [[ "$pc" -gt 10 ]]; then
echo "#[fg=black, bg=yellow] $(batinfo)% #[default]"
else
echo "#[fg=black, bg=red] $(batinfo)% #[default]"

View File

@ -1,3 +1,4 @@
; extends
;; key/value-like types. Works with struct values, struct definitions and parameter value/type pairs:
;;
;; @keyed_element.outer => key and value