bg: add bg_lines option

Tue, 07 Nov 2017 11:07:27 +0100

author
David Demelier <markand@malikania.fr>
date
Tue, 07 Nov 2017 11:07:27 +0100
changeset 6
c92f87d3d3d7
parent 5
1785f86e82cb
child 7
dc00601519cd

bg: add bg_lines option

dmenu_bg file | annotate | diff | comparison | revisions
--- 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}

mercurial