<commit_before>#!/bin/sh

MEDIA_PLAYER=vlc
# DISPLAY for cron
DISPLAY=${DISPLAY:-$(cat "$HOME/.DISPLAY")}
ALARM_PLAYLIST=${ALARM_PLAYLIST:-"$HOME/Music/Playlists/alarm.m3u"}
GRAPHICAL=1
AUDIO_LEVELS_ADJUSTED=1

show_help() {
cat <<EOF
Usage: ${0##*/} [OPTIONS] 
Starts a media player with a predefined playlist, optionally adjusting volume levels.

OPTIONS
EOF
grep '###' "$0" | grep -v 'grep' | sed 's/^\s*###/   /'
}

# command line options
OPTIND=1
while getopts aeEf:hknp: opt; do
  case $opt in
    ### -p player
    ###    Selects the player to play the alarm with. Legal values are
    ###    audacious, cvlc, nvlc, mplayer, vlc. Defaults to vlc.
    p)
      MEDIA_PLAYER="$OPTARG"
      ;;
    ### -n
    ###    Don't use GUI when possible
    n)
      GRAPHICAL=0
      DISPLAY=
      ;;
    ### -k
    ###    DEPRECATED
    ###    Kill all PulseAudio instances first and restart it
    k)
      killall pulseaudio<commit_msg>[alarm.sh] Restrict documentation regex<commit_after>#!/bin/sh

MEDIA_PLAYER=vlc
# DISPLAY for cron
DISPLAY=${DISPLAY:-$(cat "$HOME/.DISPLAY")}
ALARM_PLAYLIST=${ALARM_PLAYLIST:-"$HOME/Music/Playlists/alarm.m3u"}
GRAPHICAL=1
AUDIO_LEVELS_ADJUSTED=1

show_help() {
cat <<EOF
Usage: ${0##*/} [OPTIONS] 
Starts a media player with a predefined playlist, optionally adjusting volume levels.

OPTIONS
EOF
grep '^\s*###' "$0" | sed 's/^\s*###/   /'
}

# command line options
OPTIND=1
while getopts aeEf:hknp: opt; do
  case $opt in
    ### -p player
    ###    Selects the player to play the alarm with. Legal values are
    ###    audacious, cvlc, nvlc, mplayer, vlc. Defaults to vlc.
    p)
      MEDIA_PLAYER="$OPTARG"
      ;;
    ### -n
    ###    Don't use GUI when possible
    n)
      GRAPHICAL=0
      DISPLAY=
      ;;
    ### -k
    ###    DEPRECATED
    ###    Kill all PulseAudio instances first and restart it
    k)
      killall pulseaudio
{'fraction_non_alphanumeric': 0.14323607427055704, 'fraction_numerical': 0.007427055702917772, 'mean_word_length': 2.9538784067085953, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2901261', 'n_tokens_mistral': 718, 'n_tokens_neox': 683, 'n_words': 188}