<commit_before>#!/bin/mksh
#
# wildefyr & z3bra - 2015 (c) wtfpl
# set or unset a border around a window

source ~/.config/fyre/fyrerc

usage() { 
    printf '%s\n' "usage: $(basename $0) <state> <wid>"
    exit 1
}

# check arguments
if [ -z $1 ]; then usage; fi
wattr $2 || usage

case $1 in
    active)
        chwb -s $BW -c $ACTIVE $2
        ;;
    inactive)
        chwb -s $BW -c $INACTIVE $2
        ;;
    warning)<commit_msg>setborder.sh, don't print usage string<commit_after>#!/bin/mksh
#
# wildefyr & z3bra - 2015 (c) wtfpl
# set or unset a border around a window

source ~/.config/fyre/fyrerc

usage() { 
    printf '%s\n' "usage: $(basename $0) <state> <wid>"
    exit 1
}

# check arguments
if [ -z $1 ]; then usage; fi
wattr $2 || exit 1

case $1 in
    active)
        chwb -s $BW -c $ACTIVE $2
        ;;
    inactive)
        chwb -s $BW -c $INACTIVE $2
        ;;
    warning)
{'fraction_non_alphanumeric': 0.15033407572383073, 'fraction_numerical': 0.02783964365256125, 'mean_word_length': 2.199288256227758, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2520465', 'n_tokens_mistral': 373, 'n_tokens_neox': 353, 'n_words': 114}