From c8e1e71eb526475dd431443345262c2e5a627831 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sat, 23 Oct 2021 11:17:25 -0700 Subject: chore(rename): libn -> base --- bin/status | 4 ++-- bin/tmux-send | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/status b/bin/status index 9dfce79..bca791a 100755 --- a/bin/status +++ b/bin/status @@ -70,8 +70,8 @@ ipaddr() { } dostatus() { - xsetroot -name "$VOL│$MEM│$IP│$CPU│$NML│$WTR│$TIM" - # xsetroot -name "$VOL│$BAT│$MEM│$IP│$CPU│$NML│$WTR│$TIM" + # xsetroot -name "$VOL│$MEM│$IP│$CPU│$NML│$WTR│$TIM" + xsetroot -name "$VOL│$BAT│$MEM│$IP│$CPU│$NML│$WTR│$TIM" # echo "$VOL│$BAT│$MEM│$IP│$CPU│$NML│$WTR│$TIM" } diff --git a/bin/tmux-send b/bin/tmux-send index a1911f3..040ea7a 100755 --- a/bin/tmux-send +++ b/bin/tmux-send @@ -1,8 +1,7 @@ #!/bin/sh dir=$1 -tty=$(tmux list-panes -F "#{pane_active}#{pane_tty}" | grep '^1' | cut -c2-) -vim=$(ps -o stat=,command= -t $tty | awk 'BEGIN{flag=0} {if($1 ~ /S[a-z]*+/ && $2 ~ /nvim/){flag +=1}}; END {print flag}') +vim=$(tmux display-message -p '#{pane_current_command} #{pane_title}' | grep -iq vim && echo 1) if [ $vim -gt 0 ]; then case $dir in -- cgit v1.2.1