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" page="$1"
if [ -z "$page" ]; then if [ -z "$page" ]; then
page="$( page="$(
man -k . | \ apropos -s 1,8 . | \
(bemenu --prompt "man" || exec ~/.local/bin/bemenu/run.sh) | \ (~/.local/bin/menu/vertical.sh -p "man" || exec ~/.local/bin/menu/run.sh) | \
sed ' s/\s\+\-.*//;s/ //g' sed ' s/\s\+\-.*//;s/ //g'
)" )"
fi fi
exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "man '$page' || read -n1" 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" cd "$PASSWORD_STORE_DIR"
pws="$(find -path "*/.*" -prune -o -path "*/cred/*" -name "*.gpg" -printf '%P\n' | sed 's/\.gpg$//')" 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 case "$2" in
info) exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "pass $pw | vim -";; info) exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "pass $pw | vim -";;

View File

@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
sure() { 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 case "$1" in

View File

@@ -3,13 +3,13 @@ export WMENU_VOPTS="\
-i \ -i \
-f '{{ .theme.font.name_mono }} {{ math.Add .theme.font.size_base_pt .theme.font.size_step_pt }}' \ -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" }} \ -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" }} \ -m {{ .theme.color.fg }} -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" }} \ -s {{ .theme.color.fg }} -S {{ .theme.color.bg_accent_light }} \
" "
export WMENU_HOPTS="\ export WMENU_HOPTS="\
-i \ -i \
-f '{{ .theme.font.name_mono }} {{ math.Add .theme.font.size_base_pt .theme.font.size_step_pt }}' \ -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 }} \ -n {{ .theme.color.fg }} -N {{ .theme.color.bg }} \
-m {{ .theme.color.fg_accent }} -M {{ .theme.color.bg }} \ -m {{ .theme.color.fg }} -M {{ .theme.color.bg }} \
-s {{ .theme.color.fg_accent }} -S {{ .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 XF86Calculator exec .local/bin/menu/run-calc.sh calc tui
# basic scripts # basic scripts
$mod+Return exec alacritty msg create-window $mod+Return exec alacritty msg create-window
$altmod+Return exec alacritty
$mod+Colon exec ~/.local/bin/sway/command-mode.sh $mod+Colon exec ~/.local/bin/sway/command-mode.sh
$mod+Space exec ~/.local/bin/menu/run.sh $mod+Space exec ~/.local/bin/menu/run.sh
} }