config; various functionality fixes
This commit is contained in:
parent
64d1fb5f1e
commit
9853a83329
|
@ -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)"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue