mirror of
https://github.com/HerrCraziDev/dotfiles.git
synced 2025-12-17 03:06:17 +01:00
fucking mess
This commit is contained in:
23
tmux/.tmux/health-indicator.sh
Executable file
23
tmux/.tmux/health-indicator.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
cnormal1='colour31'
|
||||
cnormal2='white'
|
||||
cprefix='colour238'
|
||||
|
||||
bnormal='colour31'
|
||||
bprefix='colour208'
|
||||
normal='●'
|
||||
prefix='▲'
|
||||
|
||||
if [ $1 -eq 1 ]; then
|
||||
printf "#[fg=$cprefix,bg=$bprefix] $prefix "
|
||||
else
|
||||
if [ $(($(date +%s) % 2)) -eq 0 ]; then
|
||||
printf "#[fg=$cnormal1,bg=$bnormal] $normal "
|
||||
else
|
||||
printf "#[fg=$cnormal2,bg=$bnormal] $normal "
|
||||
fi
|
||||
fi
|
||||
|
||||
#printf "#[fg=white,bg=red] $(date +%N) $@"
|
||||
printf "#[fg=white]"
|
||||
Reference in New Issue
Block a user