bemenu -> wmenu

This commit is contained in:
2025-10-26 00:11:49 +00:00
parent dc4de3e6b8
commit f4dd706b6a
5 changed files with 10 additions and 9 deletions

View File

@@ -4,9 +4,9 @@ shift
page="$1"
if [ -z "$page" ]; then
page="$(
man -k . | \
(bemenu --prompt "man" || exec ~/.local/bin/bemenu/run.sh) | \
apropos -s 1,8 . | \
(~/.local/bin/menu/vertical.sh -p "man" || exec ~/.local/bin/menu/run.sh) | \
sed ' s/\s\+\-.*//;s/ //g'
)"
)"
fi
exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "man '$page' || read -n1"

View File

@@ -3,7 +3,7 @@ set -e
cd "$PASSWORD_STORE_DIR"
pws="$(find -path "*/.*" -prune -o -path "*/cred/*" -name "*.gpg" -printf '%P\n' | sed 's/\.gpg$//')"
pw="$(echo "$pws" | bemenu --prompt "pass")"
pw="$(echo "$pws" | ~/.local/bin/menu/vertical.sh -p "pass")"
case "$2" in
info) exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "pass $pw | vim -";;

View File

@@ -1,7 +1,7 @@
#!/bin/sh
sure() {
echo yes | bemenu --prompt "sure?" || exec ~/.local/bin/bemenu/run.sh
echo yes | ~/.local/bin/menu/horizontal.sh -p "sure?" || exec ~/.local/bin/menu/run.sh
}
case "$1" in

View File

@@ -3,13 +3,13 @@ export WMENU_VOPTS="\
-i \
-f '{{ .theme.font.name_mono }} {{ math.Add .theme.font.size_base_pt .theme.font.size_step_pt }}' \
-n {{ .theme.color.fg }} -N {{ .theme.color.bg }}{{ math.Mul .theme.opacity.high 255 | conv.ToInt64 | printf "%02X" }} \
-m {{ .theme.color.fg_accent }} -M {{ .theme.color.bg }}{{ math.Mul .theme.opacity.high 255 | conv.ToInt64 | printf "%02X" }} \
-s {{ .theme.color.fg_accent }} -S {{ .theme.color.bg }}{{ math.Mul .theme.opacity.high 255 | conv.ToInt64 | printf "%02X" }} \
-m {{ .theme.color.fg }} -M {{ .theme.color.bg }}{{ math.Mul .theme.opacity.high 255 | conv.ToInt64 | printf "%02X" }} \
-s {{ .theme.color.fg }} -S {{ .theme.color.bg_accent_light }} \
"
export WMENU_HOPTS="\
-i \
-f '{{ .theme.font.name_mono }} {{ math.Add .theme.font.size_base_pt .theme.font.size_step_pt }}' \
-n {{ .theme.color.fg }} -N {{ .theme.color.bg }} \
-m {{ .theme.color.fg_accent }} -M {{ .theme.color.bg }} \
-s {{ .theme.color.fg_accent }} -S {{ .theme.color.bg }} \
-m {{ .theme.color.fg }} -M {{ .theme.color.bg }} \
-s {{ .theme.color.fg }} -S {{ .theme.color.bg_accent_light }} \
"

View File

@@ -191,6 +191,7 @@ bindsym --to-code {
XF86Calculator exec .local/bin/menu/run-calc.sh calc tui
# basic scripts
$mod+Return exec alacritty msg create-window
$altmod+Return exec alacritty
$mod+Colon exec ~/.local/bin/sway/command-mode.sh
$mod+Space exec ~/.local/bin/menu/run.sh
}