list only files

This commit is contained in:
2018-09-11 13:21:34 +03:00
parent c7ef1fac7c
commit 7840e5c9a6

View File

@@ -123,7 +123,7 @@ _list_arandr() {
_arandr_empty
return
}
ls "$ARANDR_FOLDER" | head -n 6 | awk '{printf(" %d %s\n", NR+3, $0) }'
ls -p1 "$ARANDR_FOLDER" | grep -v / | head -n 6 | awk '{printf(" %d %s\n", NR+3, $0) }'
}
_run_arandr_script() {
script_name=$( ls "$ARANDR_FOLDER"| awk 'NR=='$1'-3 {print $0}' )