This commit is contained in:
Daniel Flanagan 2020-02-10 21:20:38 -06:00
parent 16de6fba1d
commit 99e4ceb096
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
6 changed files with 24 additions and 90 deletions

View File

@ -63,7 +63,7 @@ padding-right = 0
module-margin-left = 1
module-margin-right = 1
font-0 = iosevka\-lyte:pixelsize=14;1
font-0 = ${xrdb:polybar.primary_font}
font-1 = ${xrdb:polybar.secondary_font}
modules-left = bspwm

View File

@ -1,6 +1,7 @@
! font
#define mono_font iosevka-lyte
#define mono_font_size 14
#define bar_font_size 12
#define mono_font_letterspace 0
#define icon_font Font Awesome 5 Free Solid
#define icon_font_size 12
@ -74,7 +75,7 @@ bspwm.start_compton: false
bspwm.start_bar: true
! polybar
polybar.primary_font: mono_font:pixelsize=mono_font_size;1
polybar.primary_font: mono_font:pixelsize=bar_font_size;1
polybar.secondary_font: icon_font:style=Regular:pixelsize=icon_font_size;1
polybar.display_monitor: HDMI-1
polybar.bottom_of_display: true

View File

@ -1,5 +1,7 @@
#!/usr/bin/env fish
set -Ux GOPATH $HOME/.go
set -U fish_user_paths \
$HOME/.go \
$GOPATH/bin \

View File

@ -1,12 +1,12 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
SAVED_PIPELINE_DIR="$DOTFILES_PATH/bin/pipelines"
mkdir -p "$SAVED_PIPELINE_DIR"
if [[ ! -z "${1+x}" ]]; then
if [ -n "${1+x}" ]; then
pdir="$SAVED_PIPELINE_DIR/$1"; shift
mkdir -p "$pdir"
if [[ -z ${1+x} ]]; then
if [ -z ${1+x} ]; then
td="$(mktemp -p "$pdir" -d "tmp_pipeline.XXXXXXXX")"
cleanup_trap="rm -rf \"$td\""
else
@ -20,18 +20,13 @@ else
cleanup_trap="rm -rf \"$td\""
fi
if [[ ! -e "$transform" ]]; then
echo -e "#!/usr/bin/env bash\n# for ${td}\n\nbase64" > "$transform"
fi
[ ! -e "$transform" ] && \
printf "#!/usr/bin/env bash\n# for %s\n\nbase64" "${td}" > "$transform"
in="$td/in"
if [[ ! -z "${1+x}" ]]; then
in="${1}"; shift
fi
[ -n "${1+x}" ] && in="${1}" && shift
out="$td/out"
if [[ ! -z "${1+x}" ]]; then
out="${1}"; shift
fi
[ -n "${1+x}" ] && out="${1}" && shift
# TODO: if no logging, log="/dev/null"
log="$td/log"
@ -43,10 +38,11 @@ touch "$log"
fswi \
"bash -c 'cd \"$td\" && < \"$in\" \"$transform\" | tee \"$out\"'" \
'in$|transform$' \
"$td" "$pdir" &> "$log" &
"$td" "$pdir" > "$log" 2>&1 &
watcher="$!"
if [[ -z ${cleanup_trap+x} ]]; then
if [ -z "${cleanup_trap+x}" ]; then
trap "kill \"$watcher\"" EXIT
else
trap "${cleanup_trap}; kill \"$watcher\"" EXIT
@ -58,78 +54,7 @@ job="call jobstart(['inotifywait', '-m', '-e', 'close_write', '${out}'], {'on_st
# it was opened last) - autosaving (and therefore autorunning) is potentially
# very scary
nvim \
--cmd 'set shm+=atIWF' \
--cmd 'set shm-=Oo' \
-o "$in" "$transform" "$out" \
--cmd 'set autoread' \
--cmd "$(echo "$job" | tr "'" '"')" \
--cmd 'set updatetime=250' \
--cmd 'autocmd CursorHold,CursorHoldI <buffer> silent write' \
--cmd "$(<<< "$job" tr "'" '"')"
#!/usr/bin/env bash
# SAVED_PIPELINE_DIR="$EDFP/pipelines"
# mkdir -p "$SAVED_PIPELINE_DIR"
# if [[ ! -z "${1+x}" ]]; then
# pdir="$SAVED_PIPELINE_DIR/$1"; shift
# mkdir -p "$pdir"
# if [[ -z ${1+x} ]]; then
# td="$(mktemp -p "$pdir" -d "tmp_pipeline.XXXXXXXX")"
# cleanup_trap="rm -rf \"$td\""
# else
# td="$pdir/$1"; shift
# mkdir -p "$td"
# fi
# transform="$pdir/transform"
# else
# td="$(mktemp --tmpdir -d pipeline.XXXXXXXX)"
# transform="$td/transform"
# cleanup_trap="rm -rf \"$td\""
# fi
# if [[ ! -e "$transform" ]]; then
# echo -e "#!/usr/bin/env bash\n# for ${td}\n\nbase64" > "$transform"
# fi
# in="$td/in"
# if [[ ! -z "${1+x}" ]]; then
# in="${1}"; shift
# fi
# out="$td/out"
# if [[ ! -z "${1+x}" ]]; then
# out="${1}"; shift
# fi
# # TODO: if no logging, log="/dev/null"
# log="$td/log"
# chmod +x "$transform"
# echo "Hello World" > "$in"
# touch "$log"
# fswi \
# "bash -c 'cd \"$td\" && < \"$in\" \"$transform\" | tee \"$out\"'" \
# 'in$|transform$' \
# "$td" "$pdir" &> "$log" &
# watcher="$!"
# if [[ -z ${cleanup_trap+x} ]]; then
# trap "kill \"$watcher\"" EXIT
# else
# trap "${cleanup_trap}; kill \"$watcher\"" EXIT
# fi
# 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
# # it was opened last) - autosaving (and therefore autorunning) is potentially
# # very scary
# nvim \
# --cmd 'set shm+=atIWF' \
# --cmd 'set shm-=Oo' \
# -o "$in" "$transform" "$out" \
# --cmd 'set autoread' \
# --cmd 'set updatetime=250' \
# --cmd 'autocmd CursorHold,CursorHoldI <buffer> silent write' \
# --cmd "$(<<< "$job" tr "'" '"')"
--cmd 'autocmd CursorHold,CursorHoldI <buffer> silent write'

3
bin/reload-xresources Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
"$DOTFILES_PATH/apps/de/x/loadresources"

View File

@ -1,3 +1,5 @@
#define bar_font_size 12
*.font: xft:Iosevka Nerd Font Mono:pixelsize=12,xft:Noto Emoji,xft:Font Awesome 5 Free:pixelsize=14,xft:FreeSans:pixelsize=14
*.boldFont: xft:Iosevka Nerd Font Mono:style=bold:pixelsize=12,xft:Font Awesome 5 Free:pixelsize=14,xft:FreeSans:pixelsize=14
@ -9,5 +11,6 @@ dpi: 190
*dpi: 190
Xft.dpi: 190
polybar.height: 80
polybar.height: 70
polybar.display_monitor: eDP1
polybar.primary_font: iosevka-lyte:pixelsize=bar_font_size;1