fix: automated tmux statusbar color now works as it should (only tested
on linux)
This commit is contained in:
parent
3e1993efbd
commit
aba6414706
8 changed files with 90 additions and 9 deletions
|
|
@ -1,4 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
watchman watch-project "$HOME/.local/state/colorsync"
|
||||
watchman -- trigger "$HOME/.local/state/colorsync" tmux_statusbar_color 'current' -- bash "$HOME/.config/tmux/tmux-statusbar-color.sh"
|
||||
ROOT="$HOME/.local/state/colorsync"
|
||||
TRIGGER_NAME="tmux_statusbar_color"
|
||||
SCRIPT="$HOME/.config/tmux/tmux-statusbar-color.sh"
|
||||
WATCHMAN="watchman"
|
||||
|
||||
"$WATCHMAN" watch-project "$ROOT" >/dev/null
|
||||
"$WATCHMAN" -- trigger-del "$ROOT" "$TRIGGER_NAME" >/dev/null 2>&1 || true
|
||||
"$WATCHMAN" -- trigger "$ROOT" "$TRIGGER_NAME" 'current' -- bash "$SCRIPT"
|
||||
# watchman -- trigger "$HOME/.local/state/colorsync" tmux_statusbar_color 'current' -- bash "$HOME/.config/tmux/tmux-statusbar-color.sh"
|
||||
|
||||
# watchman watch-project "$HOME/.local/state/colorsync"
|
||||
|
|
|
|||
|
|
@ -124,13 +124,11 @@ set-hook -g pane-focus-in "run-shell '~/.config/tmux/tmux-rename-window.sh | xar
|
|||
# Set the right status: Battery, date and time, session name
|
||||
set -g status-right "#($HOME/.config/tmux/tmux-status-right.sh)"
|
||||
run-shell '~/.config/tmux/tmux-statusbar-color.sh'
|
||||
run-shell '~/.config/tmux/tmux-watchman-statuscolor.sh'
|
||||
|
||||
set -g status-style bold
|
||||
|
||||
# SSH agent forwarding
|
||||
set-option -g update-environment "SSH_AUTH_SOCK SSH_CONNECTION"
|
||||
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
|
||||
|
||||
set -g @plugin "tmux-plugins/tpm"
|
||||
run "~/dev/git/tpm/tpm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue