diff --git a/arch-user/bin/menu/exec-float-sh-keep.sh b/arch-user/bin/menu/exec-float-sh-keep.sh new file mode 100644 index 0000000..b349e4d --- /dev/null +++ b/arch-user/bin/menu/exec-float-sh-keep.sh @@ -0,0 +1,2 @@ +#!/bin/bash +exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "($inp); read -n1";; diff --git a/arch-user/bin/menu/exec-float-sh.sh b/arch-user/bin/menu/exec-float-sh.sh new file mode 100644 index 0000000..a4b92c5 --- /dev/null +++ b/arch-user/bin/menu/exec-float-sh.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "$SHELL" -c "($inp)" diff --git a/arch-user/bin/menu/run.sh b/arch-user/bin/menu/run.sh index ae6c616..7c2a6b5 100755 --- a/arch-user/bin/menu/run.sh +++ b/arch-user/bin/menu/run.sh @@ -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 diff --git a/arch-user/config/menu/env.sh.tmpl b/arch-user/config/menu/env.sh.tmpl index 557d0d6..f39766b 100755 --- a/arch-user/config/menu/env.sh.tmpl +++ b/arch-user/config/menu/env.sh.tmpl @@ -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 }} \ "