From f832d43206035e4101472a1d07d261952dfdd85d Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Sun, 31 Jul 2022 11:54:40 +0200 Subject: Swapped echo -e for printf in various scripts. --- dmenuTerm.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dmenuTerm.sh') diff --git a/dmenuTerm.sh b/dmenuTerm.sh index b9a6d25..7f4e1f8 100755 --- a/dmenuTerm.sh +++ b/dmenuTerm.sh @@ -1,9 +1,11 @@ #!/bin/sh # dmenu script for opening console programs and scripts directly -options="neofetch\ncmus\ncmus (float)\nweather\nReset NetworkManager\nwifiUp\nwifiDown\nyears\nmonths\nbg selection\nshowColors\npython\nmusicMode\nClose music mode" +options="neofetch\ncmus\ncmus (float)\nweather\nReset NetworkManager\nwifiUp\nwifiDown\nyears\nmonths\nbg selection\nshowColors\npython\nmusicMode\nClose music mode\n" -chosen=$(echo -e "$options" | dmenu -i -p "~$ urxvt -e") +count="$(printf "$options" | wc -l)" + +chosen="$(printf "$options" | dmenu -i -l "$count" -p "~$ urxvt -e")" case "$chosen" in # floating windows -- cgit v1.2.1