<commit_before><commit_msg>first commit<commit_after>#!/usr/bin/env bash

main() {
	# Enable status bar
	bind-key b set-option status
	
	tmux set-option -g window-status-format "#I:#W"
	tmux set-option -g window-status-current-format "#I:#W"
	
	tmux set-option -g status-interval 1
	tmux set-option -g status-justify centre # center align window list
	
	# Default statusbar colors
	tmux set-option -g status-fg white
	tmux set-option -g status-bg default
	
	# Default window title colors
	tmux set-window-option -g window-status-fg black
	tmux set-window-option -g window-status-bg default
	tmux set-window-option -g window-status-attr dim
	
	# Active window title colors
	tmux set-window-option -g window-status-current-fg white
	tmux set-window-option -g window-status-current-bg default
	tmux set-window-option -g window-status-current-attr dim
	
	# Set bell colours
	tmux set-option -g window-status-bell-bg default                                                                      
	tmux set-option -g window-status-bell-fg red
	tmux set-option -g window-status-bell-attr bright
	
	# Command/message line colors
	tmux set-option -g message-fg white
	tmux set-option -g message-bg black
	tmux set-option -g message-attr bright
	
	# Statusbar starting in X or not
	if [ -n "$DISPLAY" ]
	then
		# in X
		tmux set-option -g status-attr bright
		tmux set-option -g status-right-length 40
		tmux set-option -g status-left-length 40

		tmux set-option -g status-left "#[fg=blue]#H #[fg=black,bright]• #[default]#[fg=green]#(uname -r)#[default]"
		tmux set-option -g status-right "#[fg=cyan] #(awkuptime) #[fg=black,bright]• #[fg=magenta]#(awk \'{print $1,$2,$3}\' /proc/loadavg)"
	else
		# Statusbar if tmux run in console
		# information normally in dwm bar
		tmux set-option -g status-attr bright
		tmux set-option -g status-right-length 50
		tmux set-option -g status-left-length 50

		# default window title colors
		tmux set-window-option -g window-status-fg black
		tmux set-window-option -g window-status-bg default
		tmux set-window-option -g window-status-attr bright

		# message colours
		tmux set-option -g message-fg black
		tmux set-option -g message-bg green
		tmux set-option -g message-attr bright

		tmux set-option -g status-left "#[fg=blue] #H #[fg=black]• #[fg=green]#(uname -r) #[fg=black]• #[fg=yellow]#(sensors | awk \'\/MB\/ { print +$3\"°C\" }\')"
		tmux set-option -g status-right "#[fg=yellow,nobright]Mail: #(tmuxmail.sh)#[fg=black,bright] • #[fg=magenta]#(awk \'{ print $1,$2,$3 }\' /proc/loadavg)#[fg=black] • #[fg=cyan]%I:%M #[default]"
	fi
}
main
{'fraction_non_alphanumeric': 0.13488372093023257, 'fraction_numerical': 0.006201550387596899, 'mean_word_length': 3.238095238095238, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6472365', 'n_tokens_mistral': 950, 'n_tokens_neox': 901, 'n_words': 262}