This commit is contained in:
2025-10-26 01:11:17 +00:00
parent 6d5bb72149
commit bfb053a4ef
4 changed files with 9 additions and 7 deletions

View File

@@ -0,0 +1,2 @@
#!/bin/bash
exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "($inp); read -n1";;

View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "$SHELL" -c "($inp)"

View File

@@ -16,7 +16,5 @@ done <<< "$rl"
case "$exectr" in
exec) exec $inp;;
float-sh) exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "$SHELL" -c "($inp)";;
float-sh-keep) exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "($inp); read -n1";;
*) exec bash "$HOME/.local/bin/menu/run-$exectr.sh" "${inp_arr[@]}"
*) bash "$HOME/.local/bin/menu/run-$exectr.sh" "${inp_arr[@]}" || notify-send "Executor error" -a run.sh "exec: $exectr\nargs: ${inp_arr[@]}\ncode: $?"
esac

View File

@@ -2,14 +2,14 @@
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 }} -M {{ .theme.color.bg }}{{ math.Mul .theme.opacity.high 255 | conv.ToInt64 | printf "%02X" }} \
-n {{ .theme.color.fg }} -N {{ .theme.color.bg_accent_dark }}{{ math.Mul .theme.opacity.high 255 | conv.ToInt64 | printf "%02X" }} \
-m {{ .theme.color.fg }} -M {{ .theme.color.bg_accent_dark }}{{ 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 }} -M {{ .theme.color.bg }} \
-n {{ .theme.color.fg }} -N {{ .theme.color.bg_accent_dark }} \
-m {{ .theme.color.fg }} -M {{ .theme.color.bg_accent_dark }} \
-s {{ .theme.color.fg }} -S {{ .theme.color.bg_accent_light }} \
"