1
0
Fork 0
dotfiles2000/dotfiles/my-binaries/dot-bin/dmenu_dir2menu.sh
2024-10-31 22:09:39 +01:00

12 lines
228 B
Bash
Executable file

#!/bin/bash
directory=$1
## ARG1 needs to be a directory
if [ ! -d $directory ]
then
echo Usage: $0 [Directory with menuitems]
exit 1
fi
$directory/$(ls --color=never -1 $directory | rofi -dmenu -p "Select screen layout")