fixing script errors

nvim
KeeganForelight 2 years ago
parent 6a67b47397
commit ba1fb93ba1

@ -23,14 +23,15 @@ EOF
timeout=60 # interval we request bike information at
WORKINGDIR="$HOME/.dotfiles/bin/bluebikes"
LOG=$(printf '%s/%s.log' "$WORKINGDIR/data" $(date +%m-%d))
if [[ ! -f $LOG ]] ; then
touch $LOG
fi
# create directory on fresh installs
if [[ ! -d "$WORKINGDIR/data/status" ]] ; then
mkdir -p "$WORKINGDIR/data/status"
fi
# create log
if [[ ! -f $LOG ]] ; then
touch $LOG
fi
if [[ ! -e "$WORKINGDIR/data/alias.json" ]] ; then
starter_json=$(printf '{ "stations": [] }' | gojq '.')

@ -25,7 +25,7 @@ format_doormat() {
tmux select-window -t "$SESSION:0"
# creating a weather view on right quater
tmux split-window -h -p 25
tmux split-window -h -p 40
# creating quote area
tmux split-window -v -p 20
# weather
@ -35,12 +35,10 @@ format_doormat() {
tmux select-pane -t 2
tmux send-keys 'c && quote.sh' C-m
# creating a central vim pane taking up half the screen and a little box on the top left
tmux select-pane -t 0
tmux split-window -h -p 66
# opening vim
tmux select-pane -t 1
tmux select-pane -t 0
tmux send-keys 'c && vim' C-m
# renaming based on TOD
tmux rename-window -t "$SESSION:0" "$window"
tmux set-hook -u -t $SESSION client-attached

@ -1,10 +1,10 @@
#!/usr/bin/env bash
get_qotd() {
# needs $quotes_json to be set
len=$(echo "$quotes_json" | jq '. | length ')
len=$(echo "$quotes_json" | gojq '. | length ')
qotd=$(( $RANDOM % $len ))
quote=$(echo "$quotes_json" | jq -r ".[$qotd].q")
author=$(echo "$quotes_json" | jq -r ".[$qotd].a")
quote=$(echo "$quotes_json" | gojq -r ".[$qotd].q")
author=$(echo "$quotes_json" | gojq -r ".[$qotd].a")
}
cur_date=$(date +%m-%d)

@ -1,4 +1,6 @@
#!/bin/bash
set -e
cd $HOME/.dotfiles/tmux/plugins/tmux-mem-cpu-load
cmake .
make

@ -22,7 +22,7 @@ set -g clock-mode-colour white
# status config
set -g status-interval 5
set -g status-style "bg=black, fg=white"
set -g status-style "bg=black, fg=brightWhite"
set -g status-right "#(~/.dotfiles/bin/docker.sh) | #(~/.tmux/plugins/tmux-mem-cpu-load/tmux-mem-cpu-load -p -i 1 -a 1)|#[default] %a %l:%M "
set -g status-right-length 100
set -g status-left "#(~/.dotfiles/bin/weather/weather) | #(~/.dotfiles/bin/bluebikes/bb) | #(~/.dotfiles/bin/water/water.sh) |"

Loading…
Cancel
Save