Merge
This commit is contained in:
parent
c8436476f5
commit
f5f2fd2fa5
31
apps/htop/rc
31
apps/htop/rc
|
@ -1,32 +1,3 @@
|
||||||
<<<<<<< HEAD
|
|
||||||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
|
||||||
# The parser is also very primitive, and not human-friendly.
|
|
||||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
|
||||||
sort_key=46
|
|
||||||
sort_direction=1
|
|
||||||
hide_threads=0
|
|
||||||
hide_kernel_threads=1
|
|
||||||
hide_userland_threads=1
|
|
||||||
shadow_other_users=0
|
|
||||||
show_thread_names=0
|
|
||||||
show_program_path=1
|
|
||||||
highlight_base_name=0
|
|
||||||
highlight_megabytes=1
|
|
||||||
highlight_threads=1
|
|
||||||
tree_view=0
|
|
||||||
header_margin=1
|
|
||||||
detailed_cpu_time=0
|
|
||||||
cpu_count_from_zero=0
|
|
||||||
update_process_names=0
|
|
||||||
account_guest_in_cpu_meter=0
|
|
||||||
color_scheme=0
|
|
||||||
delay=15
|
|
||||||
left_meters=LeftCPUs2 Memory Swap
|
|
||||||
left_meter_modes=1 1 1
|
|
||||||
right_meters=RightCPUs2 Tasks LoadAverage Uptime
|
|
||||||
right_meter_modes=1 2 2 2
|
|
||||||
vim_mode=1
|
|
||||||
||||||| bc5ce9e
|
|
||||||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||||
# The parser is also very primitive, and not human-friendly.
|
# The parser is also very primitive, and not human-friendly.
|
||||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||||
|
@ -54,5 +25,3 @@ left_meter_modes=1 1 1
|
||||||
right_meters=RightCPUs2 Tasks LoadAverage Uptime
|
right_meters=RightCPUs2 Tasks LoadAverage Uptime
|
||||||
right_meter_modes=1 2 2 2
|
right_meter_modes=1 2 2 2
|
||||||
vim_mode=1
|
vim_mode=1
|
||||||
=======
|
|
||||||
>>>>>>> 0d0e131714c756be933e158919908c19e0c35b2b
|
|
||||||
|
|
|
@ -119,17 +119,9 @@ alias sctlu="systemctl --user"
|
||||||
alias logs="sudo journalctl"
|
alias logs="sudo journalctl"
|
||||||
alias logsr="sudo journalctl -r"
|
alias logsr="sudo journalctl -r"
|
||||||
alias logsf="sudo journalctl -f"
|
alias logsf="sudo journalctl -f"
|
||||||
<<<<<<< HEAD:apps/shell/bash/aliases.bash
|
|
||||||
alias bt="sudo bluetoothctl"
|
alias bt="sudo bluetoothctl"
|
||||||
alias btctl="bt"
|
alias btctl="bt"
|
||||||
alias btctl="sudo bluetoothctl"
|
|
||||||
alias pbcopy="clip"
|
alias pbcopy="clip"
|
||||||
||||||| bc5ce9e:shell/bash/aliases
|
|
||||||
alias btctl="sudo bluetoothctl"
|
|
||||||
=======
|
|
||||||
alias bt="sudo bluetoothctl"
|
|
||||||
alias btctl="bt"
|
|
||||||
>>>>>>> 0d0e131714c756be933e158919908c19e0c35b2b:shell/bash/aliases
|
|
||||||
alias pt="htop -t" # experimental htop tree-view-by-default
|
alias pt="htop -t" # experimental htop tree-view-by-default
|
||||||
alias resrc="source \$HOME/.bashrc"
|
alias resrc="source \$HOME/.bashrc"
|
||||||
alias redshift="redshift -r -l 39.0997:-94.5786 -t 6500K:2500K"
|
alias redshift="redshift -r -l 39.0997:-94.5786 -t 6500K:2500K"
|
||||||
|
|
117
bin/pipeline
117
bin/pipeline
|
@ -1,4 +1,3 @@
|
||||||
<<<<<<< HEAD
|
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
SAVED_PIPELINE_DIR="$DOTFILES_PATH/bin/pipelines"
|
SAVED_PIPELINE_DIR="$DOTFILES_PATH/bin/pipelines"
|
||||||
|
@ -66,73 +65,71 @@ nvim \
|
||||||
--cmd 'set updatetime=250' \
|
--cmd 'set updatetime=250' \
|
||||||
--cmd 'autocmd CursorHold,CursorHoldI <buffer> silent write' \
|
--cmd 'autocmd CursorHold,CursorHoldI <buffer> silent write' \
|
||||||
--cmd "$(<<< "$job" tr "'" '"')"
|
--cmd "$(<<< "$job" tr "'" '"')"
|
||||||
||||||| bc5ce9e
|
|
||||||
=======
|
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
SAVED_PIPELINE_DIR="$EDFP/pipelines"
|
# SAVED_PIPELINE_DIR="$EDFP/pipelines"
|
||||||
mkdir -p "$SAVED_PIPELINE_DIR"
|
# mkdir -p "$SAVED_PIPELINE_DIR"
|
||||||
|
|
||||||
if [[ ! -z "${1+x}" ]]; then
|
# if [[ ! -z "${1+x}" ]]; then
|
||||||
pdir="$SAVED_PIPELINE_DIR/$1"; shift
|
# pdir="$SAVED_PIPELINE_DIR/$1"; shift
|
||||||
mkdir -p "$pdir"
|
# mkdir -p "$pdir"
|
||||||
if [[ -z ${1+x} ]]; then
|
# if [[ -z ${1+x} ]]; then
|
||||||
td="$(mktemp -p "$pdir" -d "tmp_pipeline.XXXXXXXX")"
|
# td="$(mktemp -p "$pdir" -d "tmp_pipeline.XXXXXXXX")"
|
||||||
cleanup_trap="rm -rf \"$td\""
|
# cleanup_trap="rm -rf \"$td\""
|
||||||
else
|
# else
|
||||||
td="$pdir/$1"; shift
|
# td="$pdir/$1"; shift
|
||||||
mkdir -p "$td"
|
# mkdir -p "$td"
|
||||||
fi
|
# fi
|
||||||
transform="$pdir/transform"
|
# transform="$pdir/transform"
|
||||||
else
|
# else
|
||||||
td="$(mktemp --tmpdir -d pipeline.XXXXXXXX)"
|
# td="$(mktemp --tmpdir -d pipeline.XXXXXXXX)"
|
||||||
transform="$td/transform"
|
# transform="$td/transform"
|
||||||
cleanup_trap="rm -rf \"$td\""
|
# cleanup_trap="rm -rf \"$td\""
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
if [[ ! -e "$transform" ]]; then
|
# if [[ ! -e "$transform" ]]; then
|
||||||
echo -e "#!/usr/bin/env bash\n# for ${td}\n\nbase64" > "$transform"
|
# echo -e "#!/usr/bin/env bash\n# for ${td}\n\nbase64" > "$transform"
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
in="$td/in"
|
# in="$td/in"
|
||||||
if [[ ! -z "${1+x}" ]]; then
|
# if [[ ! -z "${1+x}" ]]; then
|
||||||
in="${1}"; shift
|
# in="${1}"; shift
|
||||||
fi
|
# fi
|
||||||
out="$td/out"
|
# out="$td/out"
|
||||||
if [[ ! -z "${1+x}" ]]; then
|
# if [[ ! -z "${1+x}" ]]; then
|
||||||
out="${1}"; shift
|
# out="${1}"; shift
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# TODO: if no logging, log="/dev/null"
|
# # TODO: if no logging, log="/dev/null"
|
||||||
log="$td/log"
|
# log="$td/log"
|
||||||
|
|
||||||
chmod +x "$transform"
|
# chmod +x "$transform"
|
||||||
echo "Hello World" > "$in"
|
# echo "Hello World" > "$in"
|
||||||
touch "$log"
|
# touch "$log"
|
||||||
|
|
||||||
fswi \
|
# fswi \
|
||||||
"bash -c 'cd \"$td\" && < \"$in\" \"$transform\" | tee \"$out\"'" \
|
# "bash -c 'cd \"$td\" && < \"$in\" \"$transform\" | tee \"$out\"'" \
|
||||||
'in$|transform$' \
|
# 'in$|transform$' \
|
||||||
"$td" "$pdir" &> "$log" &
|
# "$td" "$pdir" &> "$log" &
|
||||||
watcher="$!"
|
# watcher="$!"
|
||||||
|
|
||||||
if [[ -z ${cleanup_trap+x} ]]; then
|
# if [[ -z ${cleanup_trap+x} ]]; then
|
||||||
trap "kill \"$watcher\"" EXIT
|
# trap "kill \"$watcher\"" EXIT
|
||||||
else
|
# else
|
||||||
trap "${cleanup_trap}; kill \"$watcher\"" EXIT
|
# trap "${cleanup_trap}; kill \"$watcher\"" EXIT
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
job="call jobstart(['inotifywait', '-m', '-e', 'close_write', '${out}'], {'on_stdout':{j,d,e->execute('checktime')}})"
|
# job="call jobstart(['inotifywait', '-m', '-e', 'close_write', '${out}'], {'on_stdout':{j,d,e->execute('checktime')}})"
|
||||||
|
|
||||||
# this will only autosave (and therefore autoreload) for the out buffer (since
|
# # this will only autosave (and therefore autoreload) for the out buffer (since
|
||||||
# it was opened last) - autosaving (and therefore autorunning) is potentially
|
# # it was opened last) - autosaving (and therefore autorunning) is potentially
|
||||||
# very scary
|
# # very scary
|
||||||
nvim \
|
# nvim \
|
||||||
--cmd 'set shm+=atIWF' \
|
# --cmd 'set shm+=atIWF' \
|
||||||
--cmd 'set shm-=Oo' \
|
# --cmd 'set shm-=Oo' \
|
||||||
-o "$in" "$transform" "$out" \
|
# -o "$in" "$transform" "$out" \
|
||||||
--cmd 'set autoread' \
|
# --cmd 'set autoread' \
|
||||||
--cmd 'set updatetime=250' \
|
# --cmd 'set updatetime=250' \
|
||||||
--cmd 'autocmd CursorHold,CursorHoldI <buffer> silent write' \
|
# --cmd 'autocmd CursorHold,CursorHoldI <buffer> silent write' \
|
||||||
--cmd "$(<<< "$job" tr "'" '"')"
|
# --cmd "$(<<< "$job" tr "'" '"')"
|
||||||
>>>>>>> 0d0e131714c756be933e158919908c19e0c35b2b
|
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
<<<<<<< HEAD:setup.bash
|
|
||||||
# TODO: quiet/auto-agree mode for curl | bash automagic?
|
# TODO: quiet/auto-agree mode for curl | bash automagic?
|
||||||
||||||| bc5ce9e:setup
|
|
||||||
# TODO: ascii art header since I'm a leet haxx0r
|
|
||||||
=======
|
|
||||||
# TODO: ascii art header since I'm a leet haxx0r
|
|
||||||
# TODO: quiet mode?
|
|
||||||
>>>>>>> 0d0e131714c756be933e158919908c19e0c35b2b:setup
|
|
||||||
|
|
||||||
dfp=$(cd "$(dirname "${BASH_SOURCE[0]}" )/" && pwd)
|
dfp=$(cd "$(dirname "${BASH_SOURCE[0]}" )/" && pwd)
|
||||||
source "${dfp}/bin/lib/setup_helpers.bash"
|
source "${dfp}/bin/lib/setup_helpers.bash"
|
||||||
|
|
Reference in a new issue