adding scripts and such

This commit is contained in:
2025-05-03 13:20:09 -07:00
parent 95c5a519bb
commit 5f9a4b5d0f
5 changed files with 24 additions and 6 deletions

18
.local/bin/manmenu Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
TERMINAL="alacritty"
# Grab man entries
man_entries=$(apropos . | awk -F ' - ' '{print $1}' | sort -u)
# Show in bemenu
selection=$(printf '%s\n' "$man_entries" | \
bemenu -p "man:" -l 10 -c -M 500 \
--fn 'Monospace 14' \
--tb '#1d2021' --tf '#d8a657' --fb '#1d2021' --ff '#d4be98' \
--cb '#7daea3' --cf '#1d2021' --nb '#1d2021' --nf '#d4be98' \
--hb '#7daea3' --hf '#1d2021' --sb '#7daea3' --sf '#1d2021' \
--ab '#1b1b1b' --af '#d4be98' --scb '#1d2021' --scf '#d4be98')
# Open the man page in the terminal
[ -n "$selection" ] && "$TERMINAL" -e man "$(echo "$selection" | awk '{print $1}')"