changeset 6:c92f87d3d3d7

bg: add bg_lines option
author David Demelier <markand@malikania.fr>
date Tue, 07 Nov 2017 11:07:27 +0100
parents 1785f86e82cb
children dc00601519cd
files dmenu_bg
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dmenu_bg	Tue Nov 07 10:57:30 2017 +0100
+++ b/dmenu_bg	Tue Nov 07 11:07:27 2017 +0100
@@ -53,7 +53,10 @@
     fi
 fi
 
-file=$(./dmenu_filesel ${directory})
+# Optional lines.
+lines=${bg_lines:-16}
+
+file=$(./dmenu_filesel -l ${lines} ${directory})
 
 if [ -n "${file}" ]; then
     ${bg_cmd} ${file}