From dd11cd9253eefd36caab69a34d76acec10c8452b Mon Sep 17 00:00:00 2001 From: Yuri Zamyatin Date: Sun, 26 Oct 2025 02:28:38 +0000 Subject: [PATCH] exec, colors --- arch-user/bin/menu/exec-float-sh-keep.sh | 2 -- arch-user/bin/menu/run-float-sh-keep.sh | 3 +++ arch-user/bin/menu/{exec-float-sh.sh => run-float-sh.sh} | 2 +- arch-user/config/menu/env.sh.tmpl | 8 ++++---- arch-user/config/sway/config.tmpl | 2 +- arch-user/install.sh | 1 - 6 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 arch-user/bin/menu/exec-float-sh-keep.sh create mode 100755 arch-user/bin/menu/run-float-sh-keep.sh rename arch-user/bin/menu/{exec-float-sh.sh => run-float-sh.sh} (57%) mode change 100644 => 100755 diff --git a/arch-user/bin/menu/exec-float-sh-keep.sh b/arch-user/bin/menu/exec-float-sh-keep.sh deleted file mode 100644 index b349e4d..0000000 --- a/arch-user/bin/menu/exec-float-sh-keep.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "($inp); read -n1";; diff --git a/arch-user/bin/menu/run-float-sh-keep.sh b/arch-user/bin/menu/run-float-sh-keep.sh new file mode 100755 index 0000000..b8d88be --- /dev/null +++ b/arch-user/bin/menu/run-float-sh-keep.sh @@ -0,0 +1,3 @@ +#!/bin/bash +exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "$SHELL" -c '"$@"; { echo "[exited with code $?]"; read -n1; }' -- "$@" + diff --git a/arch-user/bin/menu/exec-float-sh.sh b/arch-user/bin/menu/run-float-sh.sh old mode 100644 new mode 100755 similarity index 57% rename from arch-user/bin/menu/exec-float-sh.sh rename to arch-user/bin/menu/run-float-sh.sh index a4b92c5..456a858 --- a/arch-user/bin/menu/exec-float-sh.sh +++ b/arch-user/bin/menu/run-float-sh.sh @@ -1,2 +1,2 @@ #!/bin/sh -exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "$SHELL" -c "($inp)" +exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "$SHELL" -c '"$@"' -- "$@" diff --git a/arch-user/config/menu/env.sh.tmpl b/arch-user/config/menu/env.sh.tmpl index f39766b..e388886 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_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 }} \ +-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" }} \ +-s {{ .theme.color.fg_accent }} -S {{ .theme.color.bg }}{{ math.Mul .theme.opacity.high 255 | conv.ToInt64 | printf "%02X" }} \ " 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_accent_dark }} \ -m {{ .theme.color.fg }} -M {{ .theme.color.bg_accent_dark }} \ --s {{ .theme.color.fg }} -S {{ .theme.color.bg_accent_light }} \ +-s {{ .theme.color.bg_accent_dark }} -S {{ .theme.color.fg_accent }} \ " diff --git a/arch-user/config/sway/config.tmpl b/arch-user/config/sway/config.tmpl index 0a44e79..ea42c69 100644 --- a/arch-user/config/sway/config.tmpl +++ b/arch-user/config/sway/config.tmpl @@ -39,7 +39,7 @@ bar { separator #{{ .theme.color.fg_dark }} focused_workspace #{{ .theme.color.bg_accent_light }} #{{ .theme.color.bg_accent_light }} #{{ .theme.color.fg }} inactive_workspace #{{ .theme.color.bg_accent_dark }} #{{ .theme.color.bg_accent_dark }} #{{ .theme.color.fg }} - urgent_workspace #{{ .theme.color.fg_accent }} #{{ .theme.color.fg_accent }} #{{ .theme.color.fg }} + urgent_workspace #{{ .theme.color.fg_accent }} #{{ .theme.color.fg_accent }} #{{ .theme.color.bg_accent_dark }} binding_mode #{{ .theme.color.fg_accent }} #{{ .theme.color.fg_accent }} #{{ .theme.color.fg }} } } diff --git a/arch-user/install.sh b/arch-user/install.sh index 7b17019..1d2b2ba 100755 --- a/arch-user/install.sh +++ b/arch-user/install.sh @@ -93,6 +93,5 @@ export IS_COMPAT=0 ############################### swaymsg reload || true -. ~/.profile echo ok