<commit_before>#!/bin/mksh
# Script to set a random wallpaper from a directory excluding the current one
# I'd use feh's built in "--randomize" flag if it didn't
# fuck up multi mon wallpapers.
#
# Created by <NAME>
# https://github.com/dylanaraps/dotfiles

# Wallpaper directory
walldir="$HOME/Pictures/wallpaper/wash/*"

changewall () {
    # Current wallpaper
    wall=$(basename $(cat $HOME/.fehbg | awk '/feh/ {printf $3}' | sed -e "s/'//g"))

    # Randomly set the wallpaper excluding the current wallpaper
    find $walldir ! -name "$wall" -type f \( -name '*.jpg' -o -name '*.png' \) -print0 |
    shuf -n1 -z | xargs -0 feh --bg-fill

    # Get wallpaper again
    wall=$(basename $(cat $HOME/.fehbg | awk '/feh/ {printf $3}' | sed -e "s/'//g"))

    # Change openbox titlebar color based on wallpaper
    case $wall in
        1.jpg|3.jpg|4.jpg) gencol.sh openbox 1 7 ;;
        2.jpg|6.jpg|9.jpg) gencol.sh openbox 2 7 ;;
        5.jpg|7.jpg) gencol.sh openbox 4 7 ;;
        8.jpg) gencol.sh openbox  8 7 ;;
        1.png) gencol.sh openbox 6 8 ;;
    esac
}

case $1 in
    --loop|-l) while :; do changewall; sleep $2; done ;;<commit_msg>wall.sh: Change titlebar color<commit_after>#!/bin/mksh
# Script to set a random wallpaper from a directory excluding the current one
# I'd use feh's built in "--randomize" flag if it didn't
# fuck up multi mon wallpapers.
#
# Created by <NAME>
# https://github.com/dylanaraps/dotfiles

# Wallpaper directory
walldir="$HOME/Pictures/wallpaper/wash/*"

changewall () {
    # Current wallpaper
    wall=$(basename $(cat $HOME/.fehbg | awk '/feh/ {printf $3}' | sed -e "s/'//g"))

    # Randomly set the wallpaper excluding the current wallpaper
    find $walldir ! -name "$wall" -type f \( -name '*.jpg' -o -name '*.png' \) -print0 |
    shuf -n1 -z | xargs -0 feh --bg-fill

    # Get wallpaper again
    wall=$(basename $(cat $HOME/.fehbg | awk '/feh/ {printf $3}' | sed -e "s/'//g"))

    # Change openbox titlebar color based on wallpaper
    case $wall in
        1.jpg|3.jpg|4.jpg) gencol.sh openbox 1 7 ;;
        2.jpg|6.jpg|9.jpg) gencol.sh openbox 2 7 ;;
        5.jpg|7.jpg) gencol.sh openbox 4 7 ;;
        8.jpg) gencol.sh openbox  8 7 ;;
        1.png) gencol.sh openbox 6 0 ;;
    esac
}

case $1 in
    --loop|-l) while :; do changewall; sleep $2; done ;;
{'fraction_non_alphanumeric': 0.15510555794915984, 'fraction_numerical': 0.023265833692373977, 'mean_word_length': 2.6111975116640744, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2306083', 'n_tokens_mistral': 896, 'n_tokens_neox': 831, 'n_words': 273}