aboutsummaryrefslogtreecommitdiff
path: root/dmenuTerm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dmenuTerm.sh')
-rwxr-xr-xdmenuTerm.sh6
1 files changed, 4 insertions, 2 deletions
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