<commit_before>#!/bin/bash
. $HOME/dotfiles/WM/dzen/common.sh

Exec() {
  read prog
  case $prog in
    Term)         exec urxvt & ;;
    Float*Term)   exec urxvt -name 'URxvtFloating' & ;;
    Web)          exec firefox & ;;

    Run)          dmenu_run -nb "#262626" -nf "#7d7d7d" -sb "#87af00" -sf "#262626" -p "Exec:" -fn "DejaVu Sans" ;;
    # Logout)       ;;
    # Reboot)       ;;
    # Shutdown)     ;;
  esac
}

(echo
echo '   Term'
echo '   Float Term'
echo '   Web'
echo ──────────────────────────
echo '   Run'
echo 'X Logout'
echo 'X Reboot'
echo 'X Shutdown'
) | dzen2 -m -p -l 8 -tw 1 -w 100 -sa l -e 'onstart=uncollapse;button2=exit;button1=menuprint,exit;button3=exit' | Exec<commit_msg>Add reboot and shutdown actions<commit_after>#!/bin/bash
. $HOME/dotfiles/WM/dzen/common.sh

Exec() {
  read prog
  case $prog in
    Term)         exec urxvt & ;;
    Float*Term)   exec urxvt -name 'URxvtFloating' & ;;
    Web)          exec firefox & ;;

    Run)          dmenu_run -nb "#262626" -nf "#7d7d7d" -sb "#87af00" -sf "#262626" -p "Exec:" -fn "DejaVu Sans" ;;
    # Logout)       ;;
    Reboot)       exec urxvt -geometry 50x1 -name 'URxvtFloating' -e sudo shutdown -r now & ;;
    Shutdown)     exec urxvt -geometry 50x1 -name 'URxvtFloating' -e sudo shutdown -h now & ;;
  esac
}

(echo
echo '   Term'
echo '   Float Term'
echo '   Web'
echo ──────────────────────────
echo '   Run'
echo 'X Logout'
echo '   Reboot'
echo '   Shutdown'
) | dzen2 -m -p -l 8 -tw 1 -w 100 -sa l -e 'onstart=uncollapse;button2=exit;button1=menuprint,exit;button3=exit' | Exec
{'fraction_non_alphanumeric': 0.17789072426937738, 'fraction_numerical': 0.03939008894536213, 'mean_word_length': 2.492239467849224, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4689818', 'n_tokens_mistral': 707, 'n_tokens_neox': 622, 'n_words': 169}