config; various functionality fixes

This commit is contained in:
xeruf 2022-01-16 14:14:17 +01:00
parent 64d1fb5f1e
commit 9853a83329
4 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,7 @@ print_info() {
info "Host" model
info "Uptime" uptime
info "Memory" memory
prin "Weather" "$(timeout .2s curl --max-time 0.2 wttr.in/?0?q?T | awk '/°(C|F)/ {printf $(NF-1) $(NF) " ("a")"} /,/ {a=$0}' || echo Timeout)"
prin "Weather" "$(timeout .4s curl --max-time 0.2 'wttr.in/?0?q?T' | awk '/°(C|F)/ {printf $(NF-1) $(NF) " ("a")"} /,/ {a=$0}' || echo Timeout)"
}

View File

@ -1,5 +1,7 @@
command! PU PlugUpdate | PlugUpgrade
" TODO auto-update on start/error
lua require 'colorizer'.setup({ '*'; markdown = { names = false; }; })
let g:strip_whitespace_on_save=1

View File

@ -1,6 +1,7 @@
#!/bin/sh
# Set brightness via xbrightness when redshift status changes
# https://wiki.archlinux.org/title/Redshift#Use_real_screen_brightness
# TODO adapt to machine (laptop/pc)
# Set brightness values for each status.
# Range from 1 to 100 is valid

View File

@ -13,5 +13,6 @@ else repo="$1" && shift
git-get "${3:-github.com}" "$repo" "${2:-$(git config --get user.name)}" "${@:4}"
cd "$(expr "$4" \| "$repo")"
fi
test -n "$1" && git remote add upstream "$(git-repo "${3:-github.com}" "$repo" "$1")"
user="${1:-$repo}"
git remote add upstream "$(git-repo "${3:-github.com}" "$repo" "$user")"
git remote -v