testing more beautiful approach

This commit is contained in:
pika 2025-05-21 18:21:23 +02:00
parent e73cb59941
commit 8d8eed5de3

View file

@ -61,7 +61,7 @@ checkEnv() {
askThings() { askThings() {
# if ! command_exists waybar && ! command_exists hyprpanel && ! command_exists gBar; then # if ! command_exists waybar && ! command_exists hyprpanel && ! command_exists gBar; then
choose bar "Choose a bar.." waybar hyprpanel gBar choose bar "Choose a bar.." waybar hyprpanel gBar </dev/tty
# read -r askBar </dev/tty # read -r askBar </dev/tty
# case "$askBar" in # case "$askBar" in
# [Ww] | waybar) # [Ww] | waybar)
@ -84,7 +84,7 @@ askThings() {
# fi # fi
# if ! command_exists rofi && ! command_exists tofi; then # if ! command_exists rofi && ! command_exists tofi; then
choose menu "Choose a menu.." rofi tofi choose menu "Choose a menu.." rofi tofi </dev/tty
# read -r askRofi </dev/tty # read -r askRofi </dev/tty
# case "$askRofi" in # case "$askRofi" in
# [tT] | tofi) # [tT] | tofi)
@ -101,7 +101,7 @@ askThings() {
# fi # fi
# echo_note "What terminal to you want to install? [a]lacritty, [f]oot, [k]itty, [w]ezterm" # echo_note "What terminal to you want to install? [a]lacritty, [f]oot, [k]itty, [w]ezterm"
choose terminal "Choose a menu.." alacritty foot kitty wezterm choose terminal "Choose a menu.." alacritty foot kitty wezterm </dev/tty
# read -r askTerminal </dev/tty # read -r askTerminal </dev/tty
# case "$askTerminal" in # case "$askTerminal" in
# [aA] | alacritty) # [aA] | alacritty)
@ -163,7 +163,7 @@ instCustom() {
cloneDotfiles() { cloneDotfiles() {
echo_info "Which dotfiles do you want to clone? ([p]ika's config, or just type the link to your own repo)" echo_info "Which dotfiles do you want to clone? ([p]ika's config, or just type the link to your own repo)"
choose askDotfiles2 "What dotfiles do you want to choose?" "pika's" own none choose askDotfiles2 "What dotfiles do you want to choose?" "pika's" own none </dev/tty
# read -r askDotfiles2 </dev/tty # read -r askDotfiles2 </dev/tty
case "$askDotfiles2" in case "$askDotfiles2" in
"pika's") "pika's")