run.sh
This commit is contained in:
		
							
								
								
									
										2
									
								
								arch-user/bin/menu/exec-float-sh-keep.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								arch-user/bin/menu/exec-float-sh-keep.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | |||||||
|  | #!/bin/bash | ||||||
|  | exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "($inp); read -n1";; | ||||||
							
								
								
									
										2
									
								
								arch-user/bin/menu/exec-float-sh.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								arch-user/bin/menu/exec-float-sh.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | |||||||
|  | #!/bin/sh | ||||||
|  | exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "$SHELL" -c "($inp)" | ||||||
| @@ -16,7 +16,5 @@ done <<< "$rl" | |||||||
|  |  | ||||||
| case "$exectr" in | case "$exectr" in | ||||||
| 	exec) exec $inp;; | 	exec) exec $inp;; | ||||||
| 	float-sh) exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "$SHELL" -c "($inp)";; | 	*) bash "$HOME/.local/bin/menu/run-$exectr.sh" "${inp_arr[@]}" || notify-send "Executor error" -a run.sh "exec: $exectr\nargs: ${inp_arr[@]}\ncode: $?" | ||||||
| 	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[@]}" |  | ||||||
| esac | esac | ||||||
|   | |||||||
| @@ -2,14 +2,14 @@ | |||||||
| export WMENU_VOPTS="\ | 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_accent_dark }}{{ 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" }} \ | -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 }} \ | -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_accent_dark }} \ | ||||||
| -m {{ .theme.color.fg }} -M {{ .theme.color.bg }} \ | -m {{ .theme.color.fg }} -M {{ .theme.color.bg_accent_dark }} \ | ||||||
| -s {{ .theme.color.fg }} -S {{ .theme.color.bg_accent_light }} \ | -s {{ .theme.color.fg }} -S {{ .theme.color.bg_accent_light }} \ | ||||||
| " | " | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user